Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Enable]
- Alloc(LootPacket,20)
- LootPacket:
- dw 0250
- db 01//PortalCount or something
- dd 00000000//Time
- dd 00000000//XY
- dd 00000000//Count
- dd 00000000//CRC
- db 01
- Alloc(TimeStamp,4)
- TimeStamp:
- ReadMem([019C22C4]+20, 4)
- Alloc(RecvHook,512)
- Label(SendLootPacket_Send)
- Label(SendLootPacket)
- Label(Ending)
- RecvHook:
- mov eax,[esp+4]
- cmp word ptr [eax+C],6
- jb Ending
- mov eax,[eax+8]
- add eax,4
- cmp word ptr [eax],02E3
- jne Ending
- cmp [eax+8],0
- je Ending
- cmp [eax+B],0
- je Ending
- cmp byte ptr [eax+2],00
- je SendLootPacket
- jmp Ending
- SendLootPacket:
- push ecx
- mov ecx,eax
- mov [LootPacket+3],0//Time
- mov [LootPacket+7],0//XY
- mov [LootPacket+B],0//Count
- mov [LootPacket+F],0//CRC
- mov eax,[TimeStamp]
- add eax,23587764
- xor eax,12414577
- mov [TimeStamp],eax
- mov [LootPacket+3],eax
- mov ebx,[ecx+3]
- mov [LootPacket+B],ebx
- mov ebx,[ecx+11]
- mov [LootPacket+7],ebx
- cmp [ecx+B],0
- je SendLootPacket_Send
- push [ecx+8]
- mov ecx,[019BD8F4]
- call 00873A70
- mov [LootPacket+F],eax
- SendLootPacket_Send:
- xor eax,eax
- mov ebx,14
- push eax
- push ebx
- push LootPacket
- push eax
- push esp
- call 00487290
- add esp,10
- add esp,4
- pop ecx
- Ending:
- jmp 005CAED0
- 005CB3BC:
- call RecvHook
- [Disable]
- DeAlloc(LootPacket)
- DeAlloc(RecvHook)
- DeAlloc(TimeStamp)
- 005CB3BC:
- call 005CAED0
Advertisement
Add Comment
Please, Sign In to add comment