View previous topic :: View next topic |
Author |
Message |
NoNickssWoTB How do I cheat?
Reputation: 0
Joined: 25 Jul 2021 Posts: 2
|
Posted: Sun Jul 25, 2021 6:32 am Post subject: Call some assembly in CE |
|
|
Hello everyone, today i was searching a function in cheat engine for a program named ResourceEditor
My main goal is to save the 3d scene like calling the function only in CE (File->Save Scene)
In fact i used Code Filter to find out when the memory is saving the files
And i finally with a long research find a call assembly which actually saves the file (I also nop and then it does not save)
I use auto assemble and i need to call this assembly line
disclaimer i'm a newbie ))
Thanks for any replys![/img] |
|
Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1066 Location: 0x90
|
Posted: Sun Jul 25, 2021 9:53 am Post subject: |
|
|
You located the address responsible for calling the save function, but prior to the program executing said function it will have pushed parameters onto the stack, dealt with those parameters before returning back to the location that pointed to that location.
It's not as simple as just saying "call [address]". I would recommend you study what the program is doing, line-by-line as it saves something. Analyse it and understand what is happening. |
|
Back to top |
|
 |
NoNickssWoTB How do I cheat?
Reputation: 0
Joined: 25 Jul 2021 Posts: 2
|
Posted: Sun Jul 25, 2021 10:43 am Post subject: |
|
|
LeFiXER wrote: | You located the address responsible for calling the save function, but prior to the program executing said function it will have pushed parameters onto the stack, dealt with those parameters before returning back to the location that pointed to that location.
It's not as simple as just saying "call [address]". I would recommend you study what the program is doing, line-by-line as it saves something. Analyse it and understand what is happening. |
Thanks for replying
Yes, it's difficult for me to understand the majority since i'm french baguette.. I don't see a lot of tutorials in french so..
In fact i have the piece of code about this saving function
Even i didn't understood eveything about stack and registers but it seems like it's assembly variables ? |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 204
Joined: 25 Jan 2006 Posts: 8580 Location: 127.0.0.1
|
Posted: Sun Jul 25, 2021 10:43 pm Post subject: |
|
|
Your target is 64bit, so you need to follow the 64bit calling convention:
https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-160
You need to handle the arguments the call expects properly based on what is being passed to it. Check the page I linked to understand what registers are used for what types and when the stack is used after registers etc. _________________
- Retired. |
|
Back to top |
|
 |
|