Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ENABLE]
- //code from here to '[DISABLE]' will be used to enable the cheat
- alloc(newmem,2048)
- alloc(crashcount,4)
- registersymbol(crashcount)
- label(returnhere)
- label(originalcode)
- label(exit)
- newmem: //this is allocated memory, you have read,write,execute access
- //place your code here
- push eax
- {$try}
- mov eax,[esi+95c]
- cmp [eax+10],0
- jmp ok
- {$except}
- pop eax
- add [crashcount],1
- jmp originalcode
- ok:
- pop eax
- je aftersub //it is 0
- originalcode:
- subss xmm0,xmm3
- aftersub:
- movss [esi+00000164],xmm0
- exit:
- jmp returnhere
- "HomeworldRM.exe"+22AEEA:
- jmp newmem
- nop
- nop
- nop
- nop
- nop
- nop
- nop
- returnhere:
- [DISABLE]
- //code from here till the end of the code will be used to disable the cheat
- dealloc(newmem)
- "HomeworldRM.exe"+22AEEA:
- subss xmm0,xmm3
- movss [esi+00000164],xmm0
- //Alt: db F3 0F 5C C3 F3 0F 11 86 64 01 00 00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement