assembly error

07/14/2016 12:36 Yu-Haxx..#1
how do i call this command
Code:
lea rdx,[game.dll+11CEB58] { ["show_all"] }
 cmp rbx,rdx
je game.BinaryGetValue+164982
mov rcx,rbx
call game.dll+ED85D0
test eax,eax
je game.BinaryGetValue+164982

in the game when i type it it work.
but when i call it from cheat engine:not work
Code:
alloc(temp,2000)
createthread(temp)
temp:
lea rdx,[game.dll+11CEB58] { ["show_all"] }
call game.dll+ED85D0
its not working what should i do
07/14/2016 12:48 Jeoni#2
First of all, "not working" does not match the common criteria to describe a problem. So you implicitly expect us to take guesses which is something very few people want to waste time with.
On your approach I see two main reasons why it's "not working":
1) After you called the game function and it got executed, the thread will return to the caller and try to execute further instructions. Since you got no further instruction specified after the call, the behaviour is not well defined and quite likely to produce a crash. Solution: "ret 4" after your call, so the function the thread got started with ends properly.
2) In the upper example, the function got passed an argument (via rcx; comes from rbx) which is not done in the CE version. Depending on the function and what rcx is at the time of the call, it may also produce a crash. So make sure you know what to pass to the function.
With best regards
Jeoni