Riremito

Untitled

Nov 19th, 2014
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. [Enable]
  2. Alloc(LootPacket,20)
  3.  
  4. LootPacket:
  5. dw 0250
  6. db 01//PortalCount or something
  7. dd 00000000//Time
  8. dd 00000000//XY
  9. dd 00000000//Count
  10. dd 00000000//CRC
  11. db 01
  12.  
  13. Alloc(TimeStamp,4)
  14. TimeStamp:
  15. ReadMem([019C22C4]+20, 4)
  16.  
  17. Alloc(RecvHook,512)
  18. Label(SendLootPacket_Send)
  19. Label(SendLootPacket)
  20. Label(Ending)
  21.  
  22. RecvHook:
  23. mov eax,[esp+4]
  24. cmp word ptr [eax+C],6
  25. jb Ending
  26. mov eax,[eax+8]
  27. add eax,4
  28. cmp word ptr [eax],02E3
  29. jne Ending
  30. cmp [eax+8],0
  31. je Ending
  32. cmp [eax+B],0
  33. je Ending
  34. cmp byte ptr [eax+2],00
  35. je SendLootPacket
  36. jmp Ending
  37. SendLootPacket:
  38. push ecx
  39. mov ecx,eax
  40. mov [LootPacket+3],0//Time
  41. mov [LootPacket+7],0//XY
  42. mov [LootPacket+B],0//Count
  43. mov [LootPacket+F],0//CRC
  44. mov eax,[TimeStamp]
  45. add eax,23587764
  46. xor eax,12414577
  47. mov [TimeStamp],eax
  48. mov [LootPacket+3],eax
  49. mov ebx,[ecx+3]
  50. mov [LootPacket+B],ebx
  51. mov ebx,[ecx+11]
  52. mov [LootPacket+7],ebx
  53. cmp [ecx+B],0
  54. je SendLootPacket_Send
  55. push [ecx+8]
  56. mov ecx,[019BD8F4]
  57. call 00873A70
  58. mov [LootPacket+F],eax
  59. SendLootPacket_Send:
  60. xor eax,eax
  61. mov ebx,14
  62. push eax
  63. push ebx
  64. push LootPacket
  65. push eax
  66. push esp
  67. call 00487290
  68. add esp,10
  69. add esp,4
  70. pop ecx
  71. Ending:
  72. jmp 005CAED0
  73.  
  74.  
  75. 005CB3BC:
  76. call RecvHook
  77.  
  78.  
  79. [Disable]
  80. DeAlloc(LootPacket)
  81. DeAlloc(RecvHook)
  82. DeAlloc(TimeStamp)
  83.  
  84. 005CB3BC:
  85. call 005CAED0
Advertisement
Add Comment
Please, Sign In to add comment