Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Call function without parameters or with

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 511

PostPosted: Sun Feb 06, 2022 11:22 am    Post subject: Call function without parameters or with Reply with quote

How to call it in AA, i tried but it crashing the game (i made couple in c code,or in aa its the same as c code?)
Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 511

PostPosted: Mon Feb 07, 2022 2:43 am    Post subject: Reply with quote

huh?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 07, 2022 3:57 am    Post subject: Reply with quote

I would gladly help you with this, if I could, as this is something that I still struggle with.

Most responses to this question will be very generalized, with the rest being 'it just depends'.

There are not any good tutorials on how to do this in assembly. I found a total of 1 video on youtube, with no audio, but it appears to be a one-time usage.

So far, I am able to call a function but it typically breaks on the next run, because I have not figured out how to handle the dynamic values. Maybe it is something simple that I am overlooking. Maybe I am totally clueless.

The basic idea is:

1. Examine target. x86 or x64?
2. Examine routine to determine calling convention and requirements for such.
3. Set a breakpoint at the start of the routine and examine code before and after instruction, (can also check stack and registers) to determine what data will need to be passed in order for the call to be successful.
4. Use createthread or hook an active location in memory to call your function, while making sure that all necessary parameters are passed, including any required cleanup (if applicable).

Since there are a few things that I am still missing, I sometimes try to incorporate terribly dirty workarounds that are very noobish but sometimes work. I am at the point now that I have decided to just start learning C++. I will just use dll injection and do everything outside of CE, since many people seem to be doing things in a similar fashion and getting proper help with something like this can be difficult, for understandable reasons.

Either way, I am going to keep trying and keep learning.

Good luck and please keep me posted if you find something. Mr. Green
Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 511

PostPosted: Mon Feb 07, 2022 4:08 am    Post subject: Reply with quote

Oh okay men
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites