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 


What can you do with Pointer when dissecting a structure?

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

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Sun May 08, 2016 3:54 pm    Post subject: What can you do with Pointer when dissecting a structure? Reply with quote

As the subject says that is what I am asking.

if a pointer is on the offset of 24
and in the pointer the value I found is at 14 then how would a compare be written? Is it like this:
Code:
cmp [eax+00000024*14],00
je example


I have never dealt with pointers in a data structure so I don't know how to do it.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun May 08, 2016 4:16 pm    Post subject: Reply with quote

x86:

Code:
newmem:
push edi             //or whatever register
mov edi,[eax+24]
mov edi,[edi+14]
cmp edi,1234ABCD     //or whatever value
pop edi
je cheat
jmp originalcode


You may also need to include a check to see if the pointer data is valid in order to avoid crashes.
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Sun May 08, 2016 5:45 pm    Post subject: Reply with quote

++METHOS Thanks a lot. Actually what does the "*" mean? like in:
Code:
mov eax,[ebx+00002214*4]
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun May 08, 2016 6:25 pm    Post subject: Reply with quote

It means multiply. 2214*4=‭8850‬ (hex)
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun May 08, 2016 6:50 pm    Post subject: Reply with quote

And math rules still apply (i.e. multiplication performed before addition).
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Mon May 09, 2016 12:35 am    Post subject: Reply with quote

Oh ok. Just had to confirm it. I thought it could have been something else Sad
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