<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="19">
  <Forms>
    <UDF1 Class="TCEForm" Encoding="Ascii85">Gh{372nldAU:MM2b.}cxWeIh0Gi32eO*FuRVPx{2%{mcIVeVvL4#[WI-p0Tho_#gT!OX[U=wnXql9]^!23F7GoRgWFR^}ef4dKHThh-LLCgr4ZGJtGxP01][hfolUm^g$lFo{b#VKRc*!W6({l9:RQl#+J,#K01gT2aErWNgY2oSG9^l2{y2#KZ_=]lRNi1C:r]FmM8mb{B6=$/O12F]*kFV{O{2iDJGt,!LI_sU-=!i8-aI=EZN]w/l,[@T7:P@ASz}h8F[;</UDF1>
  </Forms>
  <CheatEntries>
    <CheatEntry>
      <ID>0</ID>
      <Description>"Infinite Stats"</Description>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
  alloc(newmem,4096)
  label(returnhere)
  label(exit)

  label(userInputStat)
  registersymbol(userInputStat)

  newmem:
  mov al,[userInputStat]
  cmp byte ptr [ebx+19],al
  jge exit

  mov byte ptr [ebx+19],al

  exit:
  movzx eax,byte ptr [ebx+19] //originalcode
  cmp eax,ecx                 //originalcode
  jmp returnhere

  userInputStat:
  dd #35

  "game.exe"+5A7E3A:
  jmp newmem
  nop
  returnhere:

[DISABLE]
  "game.exe"+5A7E3A:
  movzx eax,byte ptr [ebx+19]
  cmp eax,ecx

  unregistersymbol(userInputStat)
  dealloc(newmem)

</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>1</ID>
          <Description>"user input stat"</Description>
          <VariableType>4 Bytes</VariableType>
          <Address>userInputStat</Address>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <LuaScript>function CEButton1Click(sender)
  local number = tonumber(UDF1.CEEdit1.Text)
  if number then

    -- in case it is not enabled, activate/enable it
    getAddressList().getMemoryRecordByDescription('Infinite Stats').Active = true

    -- update
    writeInteger('userInputStat',number)
  end
end

</LuaScript>
</CheatTable>
