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 


Trouble with tracing back a constant

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
daru
How do I cheat?
Reputation: 0

Joined: 06 Jan 2019
Posts: 3

PostPosted: Sun Jan 06, 2019 8:33 am    Post subject: Trouble with tracing back a constant Reply with quote

I want to create a list of certain objects in a game. I believe I have found the game's code which iterates through a list of those objects and I want to replicate it. However, one of the constants used in the function I traced back lead to this instruction:
Code:

lea rsi, [rsp+30]

Which to my understanding is the same thing as saying rsi = rsp + 30.
I do not know where to go with this as I was expecting to eventually trace rsi back to some simple constant value. Is there anything I should look out for, or perhaps a different approach I should take? I apologize if this is extremely vague; I am new to cheating.

Thank you!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4293

PostPosted: Sun Jan 06, 2019 9:52 am    Post subject: Reply with quote

Look for a push or a mov that writes to rsp+30.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
daru
How do I cheat?
Reputation: 0

Joined: 06 Jan 2019
Posts: 3

PostPosted: Sun Jan 06, 2019 10:45 am    Post subject: Reply with quote

ParkourPenguin wrote:
Look for a push or a mov that writes to rsp+30.


Thank you for your reply. How come [rsp+30] matters when rsi is being set to rsp+30?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4293

PostPosted: Sun Jan 06, 2019 11:31 am    Post subject: Reply with quote

A write to rsp+30 (e.g. mov [rsp+30],5) will change the value read from rsi later on (e.g. mov eax,[rsi]).
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
daru
How do I cheat?
Reputation: 0

Joined: 06 Jan 2019
Posts: 3

PostPosted: Mon Jan 07, 2019 1:48 am    Post subject: Reply with quote

ParkourPenguin wrote:
A write to rsp+30 (e.g. mov [rsp+30],5) will change the value read from rsi later on (e.g. mov eax,[rsi]).


Ah, I see what you mean now, thanks.
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