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 


Is there any way to find out what CALLED a piece of code?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
UnknownXYZ
Newbie cheater
Reputation: 0

Joined: 13 Jun 2006
Posts: 22

PostPosted: Mon Jan 08, 2007 5:29 pm    Post subject: Is there any way to find out what CALLED a piece of code? Reply with quote

As the title said, is there any way to find out where a particular piece of code is called from?

I mean, you could search your HP in-game for example, and then go to 'find what accesses this address', which would end up leading you to a piece of assembly, that causes damage on your character. But if you scroll up (say, to find what causes the game to think you've been hit in the first place, for example), you usually end up just running into a dead end - a return from a previous procedure. Or maybe I'm just doing something wrong. How can I find out what assembly was run before that?

hanks.
Back to top
View user's profile Send private message
dezuzi
Expert Cheater
Reputation: 0

Joined: 09 Aug 2006
Posts: 146
Location: In your washing machine

PostPosted: Tue Jan 09, 2007 2:37 am    Post subject: Reply with quote

yea its possible, you'll need to find the RETURN address Wink
_________________
Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime.
Dynamic memory is my playground..
Back to top
View user's profile Send private message
g3nuin3
Cheater
Reputation: 0

Joined: 08 Jan 2007
Posts: 28

PostPosted: Tue Jan 09, 2007 9:57 am    Post subject: Reply with quote

Yep if you set a breakpoint on the ret. in the stack the caller functions address is saved there. i cant remember exactly which offset, but its there, thats how RET knows where to return to Wink
Back to top
View user's profile Send private message
dezuzi
Expert Cheater
Reputation: 0

Joined: 09 Aug 2006
Posts: 146
Location: In your washing machine

PostPosted: Tue Jan 09, 2007 10:44 am    Post subject: Reply with quote

i believe this thread has been answered already...
_________________
Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime.
Dynamic memory is my playground..
Back to top
View user's profile Send private message
UnknownXYZ
Newbie cheater
Reputation: 0

Joined: 13 Jun 2006
Posts: 22

PostPosted: Wed Jan 10, 2007 3:36 am    Post subject: Reply with quote

I see. But the game I want to do this with, uses GameGuard, and I thought it was semi-impossible to use the debugger with the latest versions of GameGuard?
Back to top
View user's profile Send private message
dezuzi
Expert Cheater
Reputation: 0

Joined: 09 Aug 2006
Posts: 146
Location: In your washing machine

PostPosted: Wed Jan 10, 2007 9:25 am    Post subject: Reply with quote

i dont mess around with games that use gameguard, theyr too simple to hack and theyr too boring and theyr all the same
_________________
Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime.
Dynamic memory is my playground..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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