Trouble Making A Pointer

Want Cheat Engine to do something specific and no idea how to do that, ask here. (From simple scripts to full trainers and extensions)
Post Reply
zachillios
Table Makers
Table Makers
Posts: 396
Joined: Fri Mar 03, 2017 9:05 am
Reputation: 162

Trouble Making A Pointer

Post by zachillios » Thu Mar 28, 2019 11:35 pm

So I'm usually able to make pointers just fine, but this time I'm having quite a bit of trouble. After properly checking to see what accessed the item addresses (I tried like 10 different ones) only one code came up and the code in question is:

Code: Select all

movsx eax,word ptr [rcx+rax*2+10]
So normally I would just try:

Code: Select all

mov {Pointername],rcx


But that's not properly updating when I attempt to use it, it only shows the first item on the list and then doesn't update it further. So how would I go about making a pointer out of this? Here's the code and its surroundings:
Image

Thank you for any help in advance.

User avatar
TheyCallMeTim13
Administration
Administration
Posts: 1558
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 540

Re: Trouble Making A Pointer

Post by TheyCallMeTim13 » Thu Mar 28, 2019 11:59 pm

zachillios wrote:
Thu Mar 28, 2019 11:35 pm
...
I'd use the base the for the memory records and just make your offsets 0*2+10, 1*2+10, 2*2+10, etc.

But you could also just use a registry and LEA (load effective address).

Code: Select all

push rbx
lea rbx,[rcx+rax*2+10]
mov [Pointername],rbx
pop rbx
Last edited by TheyCallMeTim13 on Fri Mar 29, 2019 1:25 am, edited 1 time in total.
Reason: spelling
CE wiki - Tutorials CE wiki - Auto Assembler Basics - CE wiki - Lua Basics If it's not a Personal Message don't PM me, use the forum. I ignore PMs that should be asked on the forum.

zachillios
Table Makers
Table Makers
Posts: 396
Joined: Fri Mar 03, 2017 9:05 am
Reputation: 162

Re: Trouble Making A Pointer

Post by zachillios » Fri Mar 29, 2019 12:12 am

TheyCallMeTim13 wrote:
Thu Mar 28, 2019 11:59 pm
zachillios wrote:
Thu Mar 28, 2019 11:35 pm
...
I'd use the base the for the memory records and just make your offsets 0*2+10, 1*2+10, 2*2+10, etc.

But you could also just use a registry and LEA (load defective address).

Code: Select all

push rbx
lea rbx,[rcx+rax*2+10]
mov [Pointername],rbx
pop rbx
Thank you so much! That worked perfectly.

Post Reply

Who is online

Users browsing this forum: No registered users