冰楓論壇

標題: TwMS v238.3 滑鼠移動 [打印本頁]

作者: prt    時間: 2021-10-29 01:39
標題: TwMS v238.3 滑鼠移動
  1. // TwMS v238.3 CRC 滑鼠移動
  2. [Enable]
  3. Alloc(KamiVac,128)
  4. Label(teleport)
  5. Label(KamiVac_Ret)

  6. KamiVac:
  7. pushad
  8. mov eax,[04627928]
  9. cmp [eax+00000974],0C //<--- 判斷按下滑鼠左鍵
  10. jne KamiVac_Ret
  11. mov eax,[04627928]
  12. mov eax,[eax+0000097C]
  13. mov edx,[eax+000000B0]//X
  14. mov ebx,[eax+000000B4]//Y
  15. call teleport
  16. jmp KamiVac_Ret

  17. teleport:
  18. mov esi,[04387158]
  19. lea ecx,[esi+04]
  20. mov eax,[esi+04]
  21. mov eax,[eax+24]
  22. call eax
  23. test eax,eax
  24. je KamiVac_Ret
  25. push ebx // Y
  26. push edx // X
  27. push 01
  28. mov ecx,eax
  29. call 00C44A60
  30. ret

  31. KamiVac_Ret:
  32. popad
  33. DB 8b 81 74 09 00 00
  34. jmp 01AFC100+6

  35. 01AFC100:
  36. jmp KamiVac
  37. nop

  38. [Disable]
  39. 01AFC100:
  40. DB 8b 81 74 09 00 00

  41. DeAlloc(KamiVac)
複製代碼





歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓