Function at 0x4b51d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a1644
mov eax, dword fs:[0]
push eax
sub esp, 0x3e4
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x3f8]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], ebp
call fcn.00521330
xor ebx, ebx
push ebx
push 0x5af344
push str.Resource_ItemList.bin
lea ecx, [esp + 0x64]
mov dword [esp + 0x40c], ebx
call fcn.00521580
lea ecx, [esp + 0x58]
test eax, eax
je 0x4b5bf5
call fcn.00521290
test eax, eax
jne 0x4b5657
lea edi, [ebp + 0x2c]
push 0xd4
call fcn.00599902
add esp, 4
cmp eax, ebx
je 0x4b5273
fldz
mov esi, eax
fst dword [eax + 0x64]
fstp dword [eax + 0xa0]
jmp 0x4b5275
xor esi, esi
lea ecx, [esp + 0x58]
call fcn.00521820
push 0x21
lea ecx, [esp + 0x5c]
mov word [esi], ax
call fcn.00521780
push eax
lea eax, [esi + 2]
push eax
call fcn.00526160
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x24], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x26], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x28], ax
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi + 0x2c], eax
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi + 0x30], eax
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi + 0x34], eax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x38], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x3a], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x3c], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x3e], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x40], ax
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi + 0x44], eax
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi + 0x48], eax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x4c], ax
call fcn.005217d0
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
lea ecx, [esp + 0x58]
fstp dword [esi + 0x50]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x54]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x58]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x5c]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x60]
call fcn.00521820
mov word [esi + 0x68], ax
lea ecx, [esp + 0x58]
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x6a], ax
call fcn.00521980
lea ecx, [esp + 0x58]
mov word [esi + 0x6c], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x6e], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x70], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x72], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x74], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x76], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x78], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x7a], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x7c], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x7e], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x80], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x82], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x84], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x86], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0x88], ax
call fcn.005217d0
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
lea ecx, [esp + 0x58]
fstp dword [esi + 0x8c]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x90]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x94]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x98]
call fcn.005217d0
fstp dword [esp + 0x14]
lea ecx, [esp + 0x58]
fld dword [esp + 0x14]
fstp dword [esi + 0x9c]
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xa4], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xa6], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xa8], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xaa], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xac], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xae], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xb0], ax
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xb2], ax
call fcn.005217d0
fstp dword [esi + 0xb4]
lea ecx, [esp + 0x58]
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xb8], ax
call fcn.005217d0
fstp dword [esi + 0xbc]
lea ecx, [esp + 0x58]
call fcn.00521820
lea ecx, [esp + 0x58]
mov word [esi + 0xc0], ax
call fcn.00521820
movzx ecx, word [esi]
mov word [esi + 0xca], ax
xor edx, edx
mov eax, ecx
div dword [edi + 4]
mov eax, dword [edi + 8]
mov eax, dword [eax + edx*4]
cmp eax, ebx
je 0x4b5615
nop
cmp dword [eax], ecx
je 0x4b55fd
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x4b55f0
jmp 0x4b5615
cmp dword [eax + 4], ebx
je 0x4b5615
push ebx
push 0x22b2
push str..ItemManager.cpp
call fcn.00527110
add esp, 0xc
movzx eax, word [esi + 0x28]
mov ecx, 0x80
cmp ax, cx
jb 0x4b563a
mov edx, 0x87
cmp ax, dx
ja 0x4b563a
mov eax, dword [esi + 0x44]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esi + 0x44], eax
movzx ecx, word [esi]
push ecx
push esi
mov ecx, edi
call fcn.004b09c0
lea ecx, [esp + 0x58]
call fcn.00521290
test eax, eax
je 0x4b5253
lea ecx, [esp + 0x58]
call fcn.00520350
push ebx
push 0x5af344
push str.Resource_ItemRareColor.bin
lea ecx, [esp + 0x64]
call fcn.00521580
lea ecx, [esp + 0x58]
test eax, eax
je 0x4b5bf5
call fcn.00521290
test eax, eax
jne 0x4b572e
lea edi, [ebp + 0x98]
push 0x10
call fcn.00599902
add esp, 4
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.00521820
movzx edx, ax
lea ecx, [esp + 0x58]
mov dword [esi], edx
call fcn.00521820
movzx eax, ax
lea ecx, [esp + 0x58]
mov dword [esi + 4], eax
call fcn.00521820
movzx ecx, ax
mov dword [esi + 8], ecx
lea ecx, [esp + 0x58]
call fcn.00521820
movzx edx, ax
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], edx
call fcn.00521820
movzx eax, ax
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.00521820
movzx edx, byte [esp + 0x14]
movzx eax, ax
movzx ecx, al
movzx eax, byte [esp + 0x20]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 4]
push ecx
push esi
mov ecx, edi
call fcn.004b0c30
lea ecx, [esp + 0x58]
call fcn.00521290
test eax, eax
je 0x4b5693
lea ecx, [esp + 0x58]
call fcn.00520350
push ebx
push 0x5af344
push str.Resource_WingList.bin
lea ecx, [esp + 0x64]
call fcn.00521580
lea ecx, [esp + 0x58]
test eax, eax
je 0x4b5bf5
call fcn.00521290
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
test eax, eax
jne 0x4b57e7
mov edi, dword [esp + 0x24]
add edi, 0x50
push 0x44
call fcn.00599902
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4b578f
push 0x44
push ebx
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x4b5791
xor esi, esi
lea ecx, [esp + 0x58]
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi], eax
call fcn.00521780
push eax
lea edx, [esi + 4]
push edx
call ebp
mov ecx, dword [esi]
xor edx, edx
mov eax, ecx
div dword [edi + 4]
mov eax, dword [edi + 8]
add esp, 8
mov eax, dword [eax + edx*4]
cmp eax, ebx
je 0x4b57d1
cmp dword [eax], ecx
je 0x4b5848
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x4b57c2
push ecx
push esi
mov ecx, edi
call fcn.004b0a70
lea ecx, [esp + 0x58]
call fcn.00521290
test eax, eax
je 0x4b5771
lea ecx, [esp + 0x58]
call fcn.00520350
push ebx
push 0x5af344
push str.Resource_Sticker.bin
lea ecx, [esp + 0x64]
call fcn.00521580
lea ecx, [esp + 0x58]
test eax, eax
je 0x4b5bf5
call fcn.00521290
test eax, eax
jne 0x4b58f9
mov edi, dword [esp + 0x24]
add edi, 0x74
push 0x94
call fcn.00599902
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4b5858
push 0x94
push ebx
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x4b585a
cmp dword [eax + 4], ebx
je 0x4b57d1
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4b57da
xor esi, esi
lea ecx, [esp + 0x58]
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi], eax
call fcn.00521780
push eax
lea ecx, [esi + 4]
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x58]
call fcn.00521780
push eax
lea edx, [esi + 0x44]
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x58]
call fcn.00521790
lea ecx, [esp + 0x58]
mov dword [esi + 0x84], eax
call fcn.00521790
lea ecx, [esp + 0x58]
mov dword [esi + 0x88], eax
call fcn.00521790
mov ecx, dword [esi]
mov dword [esi + 0x8c], eax
xor edx, edx
mov eax, ecx
div dword [edi + 4]
mov eax, dword [edi + 8]
mov eax, dword [eax + edx*4]
cmp eax, ebx
je 0x4b58df
jmp 0x4b58d0
cmp dword [eax], ecx
je 0x4b5959
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x4b58d0
push ecx
push esi
mov ecx, edi
call fcn.004b0b50
lea ecx, [esp + 0x58]
call fcn.00521290
test eax, eax
je 0x4b5824
lea ecx, [esp + 0x58]
call fcn.00520350
push ebx
push 0x5af344
push str.Image_stickerdukdik.bin
lea ecx, [esp + 0x64]
call fcn.00521580
lea ecx, [esp + 0x58]
test eax, eax
je 0x4b5bf5
call fcn.00521290
test eax, eax
jne 0x4b5b45
nop
push 0x10
call fcn.00599902
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x400], 1
cmp eax, ebx
je 0x4b596c
mov ecx, eax
call fcn.004a9070
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x4b5972
cmp dword [eax + 4], ebx
je 0x4b58df
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4b58e8
xor esi, esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x400], bl
call fcn.00521800
lea ecx, [esp + 0x58]
mov dword [esi], eax
call fcn.00521790
lea ecx, [esp + 0x58]
mov dword [esi + 8], eax
call fcn.00521790
mov dword [esi + 0xc], eax
mov esi, dword [esi + 4]
lea ecx, [esp + 0x58]
call fcn.00521790
mov edi, eax
push edi
mov ecx, esi
call fcn.00421d20
cmp edi, ebx
jle 0x4b5acc
mov dword [esp + 0x20], edi
mov edi, edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00521790
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.00521790
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], eax
call fcn.00521790
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], eax
call fcn.00521790
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], eax
call fcn.00521790
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], eax
call fcn.00521790
lea ecx, [esp + 0x38]
movzx ebp, ax
call fcn.00429880
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
mov ecx, 0x69d200
mov byte [esp + 0x40c], 2
call fcn.0042f640
push ebp
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00422060
fld dword [esp + 0x54]
fnstcw word [esp + 0x1a]
mov edx, dword [esi]
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x1c], eax
mov edx, dword [edx + 0x10]
fldcw word [esp + 0x1c]
push ebx
push ebx
fistp dword [esp + 0x24]
movzx eax, word [esp + 0x24]
movzx ecx, ax
fldcw word [esp + 0x22]
push ecx
fld dword [esp + 0x5c]
fnstcw word [esp + 0x26]
movzx eax, word [esp + 0x26]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp dword [esp + 0x28]
movzx eax, word [esp + 0x28]
movzx ecx, ax
fldcw word [esp + 0x26]
push ecx
push ebx
push ebx
mov ecx, esi
call edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x400], bl
call fcn.00429890
sub dword [esp + 0x20], 1
jne 0x4b59c0
mov eax, dword [esi]
mov edx, dword [eax + 8]
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
mov ecx, esi
mov dword [esi + 0x280], 1
mov dword [esi + 0x290], ebx
call edx
mov edi, dword [esp + 0x24]
mov dword [esi + 0x280], ebx
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
xor edx, edx
mov eax, ecx
div dword [edi + 0xc0]
mov eax, dword [edi + 0xc4]
mov eax, dword [eax + edx*4]
cmp eax, ebx
je 0x4b5b27
cmp dword [eax], ecx
je 0x4b5bad
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x4b5b18
push ecx
push esi
lea ecx, [edi + 0xbc]
call fcn.004b0d10
lea ecx, [esp + 0x58]
call fcn.00521290
test eax, eax
je 0x4b5930
lea ecx, [esp + 0x58]
call fcn.00520350
push ebx
push 0x5af344
push str.Resource_HideItemLock.bin
lea ecx, [esp + 0x64]
call fcn.00521580
lea ecx, [esp + 0x58]
test eax, eax
je 0x4b5bf5
call fcn.00521290
test eax, eax
jne 0x4b5be8
mov esi, dword [esp + 0x24]
jmp 0x4b5b80
lea ecx, [esp + 0x58]
call fcn.00521820
movzx eax, ax
movzx ecx, ax
xor edx, edx
mov eax, ecx
div dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edx*4]
cmp eax, ebx
je 0x4b5bdb
cmp dword [eax], ecx
je 0x4b5bc4
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x4b5ba0
jmp 0x4b5bdb
cmp dword [eax + 4], ebx
je 0x4b5b27
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4b5b34
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4b5bdb
movzx ecx, word [eax]
push ecx
push eax
lea ecx, [esi + 0x1c0]
call fcn.004b09c0
lea ecx, [esp + 0x58]
call fcn.00521290
test eax, eax
je 0x4b5b80
lea ecx, [esp + 0x58]
call fcn.00520350
lea ecx, [esp + 0x58]
mov dword [esp + 0x400], 0xffffffff
call fcn.005207d0
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.005997a8
add esp, 0x3f0
ret