- //TWMS091 滑鼠移動(右趴左趴板)
- //EIP=CSX
- //address:0088A0BA
- //熱鍵控制: 右趴下=開 左趴下=關
- [Enable]
- alloc(MouserX,512)
- alloc(MouserY,512)
- alloc(CSX,128)
- registersymbol(CSX)
- alloc(OnOff,128)
- registersymbol(OnOff)
- label(normal)
- label(normalx)
- label(normaly)
- label(back)
- label(return)
- label(On)
- label(Off)
- OnOff:
- dd 0
- CSX:
- push eax
- mov eax,[00A326E4]
- cmp [eax+0378],a
- je On
- cmp [eax+0378],b
- je Off
- pop eax
- jmp MouserX
- normal:
- pop eax
- mov [ebx], eax
- mov edi,[ebp+10]
- jmp back
- back:
- jmp 0088A0BF
- return:
- jmp 0088A124
- 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,[00A326E4]
- mov eax,[eax+0C00]
- cmp esi,eax
- pop eax
- jne normalx
-
- mov eax, [00A32850]
- mov eax, [eax+0978]
- mov eax, [eax+84]
- mov [ebx], eax
- mov edi,[ebp+10]
- test edi, edi
- jne MouserY
- jmp 0088A121
-
- normalx:
- mov [ebx], eax
- mov edi,[ebp+10]
- jmp back
-
- MouserY:
- push eax
- mov eax,[00A326E4]
- mov eax,[eax+0C00]
- cmp esi,eax
- pop eax
- jne normaly
-
- mov eax, [00A32850]
- 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
- [Disable]
- dealloc(MouserX)
- dealloc(MouserY)
- dealloc(CSX)
- unregistersymbol(CSX)
- dealloc(OnOff)
- unregistersymbol(OnOff)
複製代碼 |