I tried this:
Spoiler
Code: Select all
aobscanmodule(BuildArrivePointConstructionTimeZa,JWE2.exe,F3 0F 10 45 04 48 8D 44 24 60) // should be unique
alloc(newmem,$1000,BuildArrivePointConstructionTimeZa)
label(code)
label(return)
newmem:
mov [rbp+04],(float)0
code:
movss xmm0,[rbp+04]
jmp return
BuildArrivePointConstructionTimeZa:
jmp newmem
return:
registersymbol(BuildArrivePointConstructionTimeZa)
[DISABLE]
BuildArrivePointConstructionTimeZa:
db F3 0F 10 45 04
unregistersymbol(BuildArrivePointConstructionTimeZa)
But bugs the audio
.
Then I tried these codes to disable the comparator once the counter is set to 1
Spoiler
Code: Select all
[ENABLE]
aobscanmodule(BuildArrivePointConstructionTimeZa,JWE2.exe,F3 0F 10 45 04 48 8D 44 24 60) // should be unique
alloc(newmem,$1000,BuildArrivePointConstructionTimeZa)
label(code)
label(return)
newmem:
mov [rbp+04],(float)1
jmp @f
@@:
cmp [rbp+04],(float)1
jne code
movss xmm0,[rbp+04]
jmp return
code:
movss xmm0,[rbp+04]
jmp return
BuildArrivePointConstructionTimeZa:
jmp newmem
return:
registersymbol(BuildArrivePointConstructionTimeZa)
[DISABLE]
BuildArrivePointConstructionTimeZa:
db F3 0F 10 45 04
unregistersymbol(BuildArrivePointConstructionTimeZa)
Spoiler
Code: Select all
[ENABLE]
aobscanmodule(BuildArrivePointConstructionTimeZa,JWE2.exe,F3 0F 10 45 04 48 8D 44 24 60) // should be unique
alloc(newmem,$1000,BuildArrivePointConstructionTimeZa)
label(code)
label(return)
newmem:
mov [rbp+04],(float)1
cmp [rbp+04],(float)1
je code
code:
movss xmm0,[rbp+04]
jmp return
BuildArrivePointConstructionTimeZa:
jmp newmem
return:
registersymbol(BuildArrivePointConstructionTimeZa)
[DISABLE]
BuildArrivePointConstructionTimeZa:
db F3 0F 10 45 04
unregistersymbol(BuildArrivePointConstructionTimeZa)
dealloc(newmem)
But neither of the two scripts works; the value remains stuck at one when it should execute the normal code (to count down in 1 second).
I need help Thx