script Cheat Engine to c++

Posts 1–4 of 4 · Page 1 of 1
script Cheat Engine to c++
Help Us to rewrite the script in c++ dll

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
alloc(freeze,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(exit1)

freeze: //this is allocated memory, you have read,write,execute access
//place your code here
popfd

exit1:
jmp returnhere

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
pushfd
cmp [esi+43C],0
je freeze
popfd

originalcode:
movaps [esi+000000D0],xmm0

exit:
jmp returnhere

floataob:
float:
jmp newmem
nop
nop
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(freeze)
float:
movaps [esi+000000D0],xmm0
unregistersymbol(float)
Scrach that I had a mistake
This script rewrites opcode, this address 0x506548 changes movaps [esi+000000D0],xmm0 on cmp [esi+43C],0
You can do something like this in с++?
Your program's flow logic is confusing so this is all I could manage:
Code:
__declspec naked void OkThen()
{
	__asm
	{
		movaps [esi+0xD0],xmm0
		pushad
		cmp [esi+0x43C],0
		je freeze
		popfd
	freeze:
		popfd
	}
}
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us