Code: Select all
push ebx
lea ebx,[eax+74]
mov [CoreTempValue],ebx
pop ebx
fstp dword ptr [eax+74]
jmp 28229A60
jmp return
Code: Select all
alloc(CoreTempValue,8)
registersymbol(CoreTempValue)
unregistersymbol(CoreTempValue)
dealloc(CoreTempValue)
The code itself looks like that:
Code: Select all
[ENABLE]
aobscan(aobCoreTemp,D9 58 74 E9 70 00 00 00)
alloc(newmem,$100,aobCoreTemp)
alloc(CoreTempValue,8)
label(code)
label(return)
registersymbol(CoreTempValue)
newmem:
code:
push ebx
lea ebx,[eax+74]
mov [CoreTempValue],ebx
pop ebx
fstp dword ptr [eax+74]
jmp 28229A60
jmp return
aobCoreTemp:
jmp newmem
nop
nop
nop
return:
registersymbol(aobCoreTemp)
[DISABLE]
aobCoreTemp:
db D9 58 74 E9 70 00 00 00
unregistersymbol(aobCoreTemp)
unregistersymbol(CoreTempValue)
dealloc(newmem)
dealloc(CoreTempValue)
The issue here is that, after adding address manually the value will just display as ?? rather then show my current stat, what could be the issue in my code?
PS: Is there any other way of doing what I'm trying in this code, Like more smaller then using lea like that.?