Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [enable]
- alloc(hook,150)
- label(org)
- label(fLoop)
- label(incCount)
- 004B81B4: //CharacterData::Decode
- jmp hook
- nop
- hook:
- mov eax,[ebp-38]
- and eax,00010000
- xor ecx,ecx
- or eax,ecx
- je org
- //hacky
- mov [ebp+0C],00
- lea eax,[ebp+0C]
- push eax
- push [ebp+08]
- call 004B6DB0 //GW_MonsterBookCode::Decode
- pop ecx
- pop ecx
- push esi
- xor esi,esi
- fLoop:
- mov eax,[ebp+0C]
- cmp eax,eax
- je org
- cmp esi,[eax-04]
- jae org
- lea eax,[eax+esi*8]
- mov eax,[eax+04]
- lea ecx,[ebp-24]
- mov [ebp-20],eax
- call 004B8B3D //InterlockedIncrement_1
- mov eax,[ebp-20]
- movzx eax,word ptr [eax]
- movzx eax,word ptr [eax]
- add eax,002450E0
- mov [ebp-28],eax
- lea eax,[ebp-24]
- push eax
- lea eax,[ebp-28]
- push eax
- lea ecx,[edi+00000573]
- mov byte ptr [ebp-04],11
- call 007B445D //ZMap<long,ZRef<GW_MonsterBookCard>,long>::Insert
- cmp [ebp-20],ebx
- mov byte ptr [ebp-04],10
- je incCount
- push ebx
- lea ecx,[ebp-24]
- call 004B8BA3 //ZRef<GW_MonsterBookCard>::~ZRef<GW_MonsterBookCard>
- mov [ebp-20],ebx
- incCount:
- inc esi
- jmp fLoop
- org:
- pop esi
- mov esi,[ebp-38]
- mov edi,[ebp-34]
- jmp 004B81BA
- [disable]
- 004B81B4:
- mov esi,[ebp-38]
- mov edi,[ebp-34]
- dealloc(hook)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement