Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. //pVac Char Spot
  2. DWORD pVacAoE = 0x00958DA7;
  3. DWORD AoERet = pVacAoE + 6;
  4. int Time = 0;
  5.  
  6. void __declspec(naked) _stdcall AoEAsm()
  7. {
  8. __asm
  9. {
  10. mov eax,[esi+0x110]
  11. cmp dword ptr [Time],0x007F0
  12. jnl [ResetAll]
  13.  
  14. push ecx
  15. push edx
  16. inc [Time]
  17. mov edx,0
  18. mov edx, dword ptr ds:[edx+0x00B2E26C]
  19. mov edx, dword ptr ds:[edx+0x5F4]
  20. mov ecx, dword ptr ds:[eax+0x0C]
  21. cmp ecx,edx
  22. jg Next
  23. jl Prev
  24.  
  25. EndPVac:
  26. pop ecx
  27. pop edx
  28. jmp [AoERet]
  29.  
  30. Next:
  31. mov dword ptr [eax+0x50],00
  32. jmp EndPVac
  33.  
  34. Prev:
  35. mov dword ptr [eax+0x4C],00
  36. jmp EndPVac
  37.  
  38. ResetAll:
  39. jmp [AoERet]
  40. }
  41. }
  42.  
  43. void Form1::checkBox14_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  44. {
  45. if(this->checkBox14->Checked)
  46. {
  47. DWORD dwProtect;
  48. VirtualProtect((LPVOID)pVacAoE, 6, PAGE_EXECUTE_READWRITE, &dwProtect);
  49. Jump(pVacAoE, AoEAsm, 1);
  50. }
  51. else
  52. {
  53. Time = 0;
  54. memcpy((void*)pVacAoE, "\x8B\x86\x10\x01\x00\x00", 6);
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement