<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="46">
  <CheatEntries>
    <CheatEntry>
      <ID>11</ID>
      <Description>"Costume Quest 2"</Description>
      <Options moHideChildren="1" moActivateChildrenAsWell="1" moDeactivateChildrenAsWell="1"/>
      <Color>C08000</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]

aobscanmodule(One,CostumeQuest2_DX9.exe,8B 88 60 02 00 00 33)
aobscanmodule(Two,CostumeQuest2_DX9.exe,8B 88 A4 01 00 00 8B 90)

alloc(newmemOne,$1000)
alloc(newmemTwo,$1000)
alloc(Three,4)
alloc(Four,1)
alloc(Five,1)

registersymbol(One)
registersymbol(Two)
registersymbol(Three)
registersymbol(Four)
registersymbol(Five)

label(codeOne)
label(codeTwo)
label(codeThree)
label(codeFour)
label(returnOne)
label(returnTwo)

Three:
  dd 0

Four:
  db 0

Five:
  db 0

newmemOne:

codeOne:
  mov dword ptr [Three],eax
  mov ecx,[eax+00000260]
  jmp returnOne

One:
  jmp newmemOne
  nop

returnOne:

newmemTwo:
  cmp dword ptr [Four],1
  je codeTwo
  cmp dword ptr [Five],1
  je codeThree
  jmp codeFour

codeTwo:
  xor ecx,ecx
  mov [eax+000001A4],ecx
  jmp returnTwo

codeThree:
  cmp dword ptr [eax+000001A4],1
  jbe codeFour
  mov dword ptr [eax+000001A4],1

codeFour:
  mov ecx,[eax+000001A4]
  jmp returnTwo

Two:
  jmp newmemTwo
  nop

returnTwo:

[DISABLE]

One:
  db 8B 88 60 02 00 00

Two:
  db 8B 88 A4 01 00 00

unregistersymbol(One)
unregistersymbol(Two)
unregistersymbol(Three)
unregistersymbol(Four)
unregistersymbol(Five)

dealloc(newmemOne)
dealloc(newmemTwo)
dealloc(Three)
dealloc(Four)
dealloc(Five)
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>16</ID>
          <Description>"==== General ===="</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C080FF</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>2</ID>
              <Description>"Infinite Health"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

aobscanmodule(Two,CostumeQuest2_DX9.exe,DB 80 A4 01 00 00 51)
alloc(newmem,$1000)

label(code)
label(return)

newmem:
  fld dword ptr [eax+130]
  fstp dword ptr [eax+1A4]
  fild dword ptr [eax+1A4]
  jmp return

code:
  fild dword ptr [eax+1A4]
  jmp return

Two:
  jmp newmem
  nop

return:
registersymbol(Two)

[DISABLE]

Two:
  db DB 80 A4 01 00 00

unregistersymbol(Two)
dealloc(newmem)
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2233</ID>
              <Description>"Infinite Focus"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

aobscanmodule(Six,CostumeQuest2_DX9.exe,D9 01 51 D9 1C 24)
aobscanmodule(Seven,CostumeQuest2_DX9.exe,D9 40 04 51 D9 1C 24)
aobscanmodule(Eight,CostumeQuest2_DX9.exe,D9 42 08 51 D9 1C 24)

alloc(newmemOne,$1000)
alloc(newmemTwo,$1000)
alloc(newmemThree,$1000)

registersymbol(Six)
registersymbol(Seven)
registersymbol(Eight)

label(codeOne)
label(codeTwo)
label(codeThree)
label(returnOne)
label(returnTwo)
label(returnThree)
label(Nine)
label(Ten)
label(Eleven)

newmemOne:

codeOne:
  fld dword ptr [Nine]
  fstp dword ptr [ecx]
  fld dword ptr [ecx]
  push ecx
  fstp dword ptr [esp]
  jmp returnOne

Nine:
  dd (float)1

Six:
  jmp newmemOne
  nop

returnOne:

newmemTwo:

codeTwo:
  fld dword ptr [Ten]
  fstp dword ptr [eax+04]
  fld dword ptr [eax+04]
  push ecx
  fstp dword ptr [esp]
  jmp returnTwo

Ten:
  dd (float)1

Seven:
  jmp newmemTwo
  nop 2

returnTwo:

newmemThree:

codeThree:
  fld dword ptr [Eleven]
  fstp dword ptr [edx+08]
  fld dword ptr [edx+08]
  push ecx
  fstp dword ptr [esp]
  jmp returnThree

Eleven:
  dd (float)1

Eight:
  jmp newmemThree
  nop 2

returnThree:

[DISABLE]

Six:
  db D9 01 51 D9 1C 24

Seven:
  db D9 40 04 51 D9 1C 24

Eight:
  db D9 42 08 51 D9 1C 24

unregistersymbol(Six)
unregistersymbol(Seven)
unregistersymbol(Eight)

dealloc(newmemOne)
dealloc(newmemTwo)
dealloc(newmemThree)
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2225</ID>
              <Description>"Instant Victory"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Four:
  db 1

[DISABLE]

Four:
  db 0
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>2232</ID>
              <Description>"⬆You need to click “Attack” to achieve victory; otherwise, the characters will stand there indefinitely."</Description>
              <Color>C0C0C0</Color>
              <GroupHeader>1</GroupHeader>
            </CheatEntry>
            <CheatEntry>
              <ID>2226</ID>
              <Description>"Quick Victory"</Description>
              <Color>C08000</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]

Five:
  db 1

[DISABLE]

Five:
  db 0
</AssemblerScript>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>17</ID>
          <Description>"==== Extras ====="</Description>
          <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
          <Color>C080FF</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>12</ID>
              <Description>"Experience"</Description>
              <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
              <ShowAsSigned>0</ShowAsSigned>
              <Color>C08000</Color>
              <VariableType>4 Bytes</VariableType>
              <Address>[Three]+260</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>15</ID>
              <Description>"Candy"</Description>
              <Options moDeactivateChildrenAsWell="1"/>
              <Color>C08000</Color>
              <GroupHeader>1</GroupHeader>
              <CheatEntries>
                <CheatEntry>
                  <ID>14</ID>
                  <Description>"Total"</Description>
                  <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
                  <ShowAsSigned>0</ShowAsSigned>
                  <Color>808080</Color>
                  <VariableType>4 Bytes</VariableType>
                  <Address>[Three]+264</Address>
                </CheatEntry>
                <CheatEntry>
                  <ID>13</ID>
                  <Description>"Current"</Description>
                  <DropDownList DescriptionOnly="1" DisplayValueAsItem="1">??:Waiting
</DropDownList>
                  <ShowAsSigned>0</ShowAsSigned>
                  <Color>808080</Color>
                  <VariableType>4 Bytes</VariableType>
                  <Address>[Three]+268</Address>
                </CheatEntry>
              </CheatEntries>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
  <Comments>Created by: Outrun
https://opencheattables.com
</Comments>
</CheatTable>
