<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="16">
  <CheatEntries>
    <CheatEntry>
      <ID>10</ID>
      <Description>"SCRIPT"</Description>
      <Options moHideChildren="1" moAllowManualCollapseAndExpand="1"/>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
stealthedit(Map,008B401B,5)
alloc(newmem,2048)
label(originalcode)
label(returnhere)

registersymbol(staddy)
label(staddy)

registersymbol(value)
label(value)

newmem:
cmp [value],0
je originalcode
push edi
mov edi,[value]
mov [eax],edi
pop edi
mov ecx,[ebp-04]
jmp returnhere

originalcode:
mov [eax],ecx
mov ecx,[ebp-04]
jmp returnhere

value:
dd 0

Map:
staddy:
jmp newmem
returnhere:

[DISABLE]
dealloc(newmem)
staddy:
mov [eax],ecx
mov ecx,[ebp-04]

unregistersymbol(value)
unregistersymbol(staddy)
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>11</ID>
          <Description>"VALUE"</Description>
          <Color>80000008</Color>
          <VariableType>4 Bytes</VariableType>
          <Address>value</Address>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols>
    <SymbolEntry>
      <Name>energypointer</Name>
      <Address>158E002E</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>aob1</Name>
      <Address>0044DFA0</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>aob2</Name>
      <Address>004A5CD7</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>shieldcap</Name>
      <Address>00AA004C</Address>
    </SymbolEntry>
  </UserdefinedSymbols>
</CheatTable>
