[Enable]
alloc(MouserX,512)
alloc(MouserY,512)
alloc(CSX,128)
alloc(OnOff,128)
label(normal)
label(normalx)
label(normaly)
label(back)
label(return)
label(On)
label(Off)
registersymbol(CSX)
registersymbol(OnOff)
OnOff:
dd 0
CSX:
push eax
mov eax,[00b94658]
cmp [eax+0398],a
je On
cmp [eax+0398],b
je Off
pop eax
jmp MouserX
normal:
pop eax
mov [ebx], eax
mov edi,[ebp+10]
jmp back
back:
jmp 0098c914
return:
jmp 0098C979
On:
pop eax
mov [OnOff],1
jmp MouserX
Off:
pop eax
mov [OnOff],0
jmp MouserX
MouserX:
cmp [OnOff],0
je normalx
push eax
mov eax,[00b94658]
mov eax,[eax+0f00]
cmp esi,eax
pop eax
jne normalx
mov eax,[00b947bc]
mov eax, [eax+0978]
mov eax, [eax+84]
mov [ebx], eax
mov edi,[ebp+10]
test edi, edi
jne MouserY
jmp 0098c976
normalx:
mov [ebx], eax
mov edi,[ebp+10]
jmp back
MouserY:
push eax
mov eax,[00b94658]
mov eax,[eax+0f00]
cmp esi,eax
pop eax
jne normaly
mov eax, [00b947bc]
mov eax, [eax+0978]
mov eax, [eax+88]
mov [edi], eax
mov ebx,[ebp+14]
jmp return
normaly:
mov [edi], eax
mov ebx,[ebp+14]
jmp return
0098C90F:
JMP CSX
[Disable]
0098C90F:
DB 89 03 8B 7D 10 85 FF
dealloc(MouserX)
dealloc(MouserY)
dealloc(CSX)
dealloc(OnOff)
unregistersymbol(CSX)
unregistersymbol(OnOff) |