<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="45">
  <CheatEntries>
    <CheatEntry>
      <ID>20</ID>
      <Description>"[$ASM] Get Money (instance)"</Description>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
aobscanregion(i,Game.Simulation.CitySystem:OnUpdate,Game.Simulation.CitySystem:OnUpdate+157,48 8B ? ? ? ? 49 BB)
alloc(newmem,2048,i)
label(returnhere originalcode exit Q)
registersymbol(Q)
newmem:

//cmp [Q],0
//jne originalcode


//{$try}


push RDX
push RCX
push RAX

mov RCX,[RCX]
mov RAX,[RCX+10] // PT.1

mov rdx,[rbp-18] // same as originalcode
and rdx,00FFFFFF
shl RDX,04 // PT.2

add RAX,RDX // PT.F

mov RAX,[RAX] // get to the point
lea RAX,[RAX+40]

add rax,200 // also

mov [Q],RAX

pop RAX
pop RCX
pop RDX

//{$except}
originalcode:
mov rdx,[rbp-18]
exit:
nop 2
jmp returnhere

Q:
dq 00

i:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(*)
i:
db 48 8B 55 E8 66 90
//mov rdx,[rbp-18]
//nop 2
unregistersymbol(*)
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>21</ID>
          <Description>"Game.CityPlayerMoney {BASE}"</Description>
          <ShowAsSigned>1</ShowAsSigned>
          <VariableType>Array of byte</VariableType>
          <ByteLength>0</ByteLength>
          <Address>Q</Address>
          <Offsets>
            <Offset>-10</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>22</ID>
          <Description>"m_Money"</Description>
          <ShowAsSigned>1</ShowAsSigned>
          <VariableType>4 Bytes</VariableType>
          <Address>Q</Address>
          <Offsets>
            <Offset>0</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>23</ID>
          <Description>"m_Unlimited"</Description>
          <ShowAsSigned>1</ShowAsSigned>
          <VariableType>Byte</VariableType>
          <Address>Q</Address>
          <Offsets>
            <Offset>4</Offset>
          </Offsets>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
