<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="52">
  <CheatEntries>
    <CheatEntry>
      <ID>12</ID>
      <Description>"Kingdom Rush"</Description>
      <Options moHideChildren="1" moActivateChildrenAsWell="1" moDeactivateChildrenAsWell="1"/>
      <Color>C08000</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]

aobscanmodule(One,lua51.dll,48 8B 29 48 89 2C C2 8B 06 0F B6 CC 0F B6 E8)

alloc(newmem,$1000,One)

label(codeOne)
label(codeTwo)
label(codeThree)
label(codeFour)
label(return)
label(Two)
label(Three)
label(Four)
label(Five)
label(Six)
label(Seven)

registersymbol(One)
registersymbol(Two)
registersymbol(Three)
registersymbol(Four)
registersymbol(Five)

newmem:
  cmp dword ptr [rcx+0C],FFFFFFFB
  jne codeFour
  mov ebp,[rcx+08]
  cmp ebp,10000
  jb codeFour
  cmp dword ptr [rbp+10],79616C70
  jne codeTwo
  cmp dword ptr [rbp+14],675F7265
  jne codeTwo
  cmp rcx,[Two]
  mov [Two],rcx
  jne codeOne
  cmp byte ptr [Four],1
  jne codeOne
  mov rbp,[rcx]
  cmp rbp,[Six]
  jae codeOne
  mov rbp,[Six]
  mov [rcx],rbp
  jmp codeFour

codeOne:
  mov rbp,[rcx]
  mov [Six],rbp
  jmp codeFour

codeTwo:
  cmp dword ptr [rbp+10],6576696C
  jne codeFour
  cmp word ptr [rbp+14],73
  jne codeFour
  cmp rcx,[Three]
  mov [Three],rcx
  jne codeThree
  cmp byte ptr [Five],1
  jne codeThree
  mov rbp,[rcx]
  cmp rbp,[Seven]
  jae codeThree
  mov rbp,[Seven]
  mov [rcx],rbp
  jmp codeFour

codeThree:
  mov rbp,[rcx]
  mov [Seven],rbp

codeFour:
  mov rbp,[rcx]
  mov [rdx+rax*8],rbp
  jmp return

Two:
  dq 0

Three:
  dq 0

Four:
  db 0

Five:
  db 0

Six:
  dq 0

Seven:
  dq 0

One:
  jmp newmem
  nop 2

return:

[DISABLE]

One:
  db 48 8B 29 48 89 2C C2

unregistersymbol(One)
unregistersymbol(Two)
unregistersymbol(Three)
unregistersymbol(Four)
unregistersymbol(Five)

dealloc(newmem)
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>13</ID>
          <Description>"==== General ===="</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C080FF</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>11</ID>
              <Description>"Infinite Hearts"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Five:
  db 1

[DISABLE]

Five:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>10</ID>
              <Description>"Infinite Money"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Four:
  db 1

[DISABLE]

Four:
  db 0
</AssemblerScript>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>14</ID>
          <Description>"==== Extras ====="</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C080FF</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>9</ID>
              <Description>"Hearts"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <ShowAsSigned>0</ShowAsSigned>
              <Color>C08000</Color>
              <VariableType>Double</VariableType>
              <Address>[Three]</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>8</ID>
              <Description>"Money"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <ShowAsSigned>0</ShowAsSigned>
              <Color>C08000</Color>
              <VariableType>Double</VariableType>
              <Address>[Two]</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
  <Comments>Created by: Outrun
https://opencheattables.com</Comments>
</CheatTable>
