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 


Save all addresses which are currently read by a function

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Aug 21, 2012 2:00 am    Post subject: Save all addresses which are currently read by a function Reply with quote

Hi,

I've a function reading several addresses. Now i want to save all addresses which are currently READ by the function.

I tried something like:

Code:
mov dword ptr[00510408],(int)0
mov dword ptr[0051040C],(int)0
mov dword ptr[00510410],(int)0
mov dword ptr[00510414],(int)0

one:
cmp [00510408],ecx
jg two
mov [00510408],ecx
jmp originalcode

two:
cmp [0051040c],ecx
jg three
mov [0051040c],ecx
jmp originalcode


However, the problem is that if ECX is saved to 00510408, the code injection will exit and the value will be reset on next load. So no matter of how many addresses are read, only 00510408 will be written.

But if i don't reset the value, i've several addresses which aren't used by the function anymore. So what i want is: Load all currently read addresses into some pointers, if the value isn't hooked anymore it should be reset. I guess i made a serious logic mistake over here.
Back to top
View user's profile Send private message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Wed Sep 05, 2012 7:25 am    Post subject: Reply with quote

Any idea?
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