冰楓論壇

標題: TwMS v240.2 登記找路Thread [打印本頁]

作者: prt    時間: 2022-1-19 23:37
標題: TwMS v240.2 登記找路Thread
  1. //TwMS v240.2 登記找路Thread
  2. [ENABLE]
  3. RegisterSymbol(AutoFindway)
  4. Alloc(AutoFindway,512)
  5. RegisterSymbol(delay)
  6. Alloc(delay,04)
  7. Alloc(timer,04)
  8. Label(do)
  9. CreateThread(AutoFindway)

  10. //換圖毫秒間隔,默認為1000毫秒,十六進制,切勿太低避免掉線問題。
  11. delay:
  12. dd 000003E8

  13. timer:
  14. dd 0

  15. AutoFindway:
  16. call 02FC37B0
  17. mov edx,eax
  18. sub edx,[timer]
  19. cmp edx,[delay]
  20. jl AutoFindway
  21. mov [timer],eax

  22. mov eax,[044365A4]
  23. mov eax,[eax+00000160]
  24. cmp eax,1
  25. jne AutoFindway

  26. mov eax,[04436898]
  27. mov eax,[eax+00012BC4]
  28. cmp eax,0
  29. je AutoFindway

  30. mov eax,[04436898]
  31. mov eax,[eax+00012BC4]
  32. cmp eax,000F423F
  33. je AutoFindway

  34. call do
  35. jmp AutoFindway

  36. do:
  37. mov eax,[04436898]
  38. mov ebx,[eax+00012BC4]
  39. mov edx,[eax+00012BC8]
  40. sub edx,4 //adjust Y
  41. mov esi,[04436898]
  42. lea ecx,[esi+04]
  43. mov eax,[esi+04]
  44. mov eax,[eax+24]
  45. call eax
  46. test eax,eax
  47. je AutoFindway
  48. push edx
  49. push ebx
  50. push 00
  51. mov ecx,eax
  52. call 00C76000
  53. mov eax,[04436898]
  54. mov [eax+00013B24],01
  55. ret

  56. [DISABLE]
  57. AutoFindway:
  58. ret
複製代碼





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