Sayd How do I cheat?
Reputation: 0
Joined: 21 Jul 2019 Posts: 1
|
Posted: Sun Jul 21, 2019 5:04 am Post subject: Call funtion crash my game |
|
|
I'm creating a dll and I'm doing and I'm doing some testing on IDA and the cheat engine before implementing it in C ++.
When calling the function below in cheat engine:
int __stdcall sub_8D3EF0 (int, char *, size_t, int, int)
with the following code:
[ENABLE]
globalalloc (drop, 2000)
createthread (drop)
drop:
push 0x00
push 0x00
push 0x01
push 0x2D
push 0x10
call "Ragexe.exe" + 4D3EF0
[DISABLE]
My stack looks like the image below and the game closes:
My adress EDI is 0
And when I call in IDA, my stack looks like the image below and the action executes successfully:
sub_8D3EF0(0x10,0x2D,1,0,0)
My adress EDI is 093F18C0
The main difference between the two stacks is that in executing the IDA the recorder edited with a memory address that is used inside my function, already in the cheat engine, this value is zero.
How can I do to pass this value on the cheat engine? I imagine that I will need to work with a pointer, considering that this value is changed every time the game is restarted.
|
|