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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5920f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc0]
mov dword [esp + 0x24], esi
call fcn.004b1a90
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x74]
push eax
push ebx
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [0x5f2040]
xor edi, edi
mov dword [esp + 0x218], edi
call fcn.004e6360
test al, al
lea ecx, [esp + 0xc0]
je 0x4f5ab1
push 4
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.004b1c60
mov eax, dword [esp + 0x48]
cmp eax, 0x5850494d
jne 0x4f5a00
push 4
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xc8]
call fcn.004b1c60
push 4
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xc8]
call fcn.004b1c60
mov eax, dword [esp + 0x2c]
cmp eax, 1
je 0x4f59dc
push eax
push ebx
push str.CPythonItem::LoadItemTable:_invalid_item_proto__s__VERSION__d_
call fcn.004b01a0
add esp, 0xc
jmp 0x4f5aaa
mov eax, dword [esp + 0x30]
cmp eax, 0x98
je 0x4f5a1a
push 0x98
push eax
push ebx
push str.CPythonItem::LoadItemTable:_invalid_item_proto__s__STRIDE__d____sizeof_SItemTable_
call fcn.004b01a0
add esp, 0x10
jmp 0x4f5aaa
cmp eax, 0x5450494d
je 0x4f5a1a
push ebx
push str.CPythonItem::LoadItemTable:_invalid_item_proto_type__s
call fcn.004b01a0
add esp, 8
jmp 0x4f5aaa
push 4
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0xc8]
call fcn.004b1c60
push 4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xc8]
call fcn.004b1c60
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0047a448
mov edx, dword [esp + 0x3c]
add esp, 4
mov edi, eax
push edx
push edi
lea ecx, [esp + 0xc8]
mov dword [esp + 0x48], edi
call fcn.004b1c60
lea ecx, [esp + 0x60]
call fcn.004b2520
mov ecx, dword [0x5f2204]
push 0x5e18ac
push edi
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x218], 1
call fcn.004b28d0
test al, al
jne 0x4f5ada
push edi
call fcn.0047a443
add esp, 4
lea ecx, [esp + 0x60]
mov byte [esp + 0x20c], 0
call fcn.004b2bf0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x20c], 0xffffffff
call fcn.004b1dd0
xor al, al
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x60]
lea ecx, [esp + 0x18]
call fcn.004064b0
mov eax, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x20c], 2
mov dword [esp + 0x34], 0
jbe 0x4f5cac
lea ecx, [ebx + 4]
mov dword [esp + 0x14], ecx
jmp 0x4f5b10
mov esi, dword [esp + 0x24]
mov edi, dword [ebx]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 4]
mov dword [esp + 0x14], edi
call fcn.004f9470
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x4f5c26
push edi
push str.icon_item__05d.tga
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.0047a678
mov ecx, dword [0x5f2144]
add esp, 0x10
lea edx, [esp + 0x78]
push edx
call fcn.004c9f30
test al, al
jne 0x4f5bf1
mov eax, dword [esp + 0x14]
push eax
call fcn.004f4cc0
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.004373d0
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x1c]
je 0x4f5b9a
mov eax, dword [eax + 0x10]
jmp 0x4f5ba9
xor edx, edx
mov eax, edi
mov ecx, 0xa
div ecx
mov eax, edi
sub eax, edx
push eax
push str.icon_item__05d.tga
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.0047a678
mov ecx, dword [0x5f2144]
add esp, 0x10
lea edx, [esp + 0x78]
push edx
call fcn.004c9f30
test al, al
jne 0x4f5bf1
push 0x6d5b
push str.icon_item__05d.tga
lea eax, [esp + 0x80]
push 0x40
push eax
call fcn.0047a678
add esp, 0x10
call fcn.004f4c90
push 0
lea ecx, [esp + 0x7c]
mov esi, eax
push ecx
mov ecx, esi
call fcn.004f48f0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x10]
push eax
add ecx, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
call fcn.004f5420
jmp 0x4f5c29
mov esi, dword [ecx + 0x10]
mov edi, dword [esp + 0x14]
push edi
call fcn.004f4cc0
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.004373d0
mov eax, dword [eax]
cmp eax, dword [esp + 0x1c]
jne 0x4f5c7b
push edi
call fcn.004f4cc0
mov ecx, dword [ebx]
add esp, 4
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x60], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0040a950
push ebx
mov ecx, esi
call fcn.004f3b00
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
inc eax
add edi, 0x98
add ebx, 0x98
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edi
jb 0x4f5b0c
mov edi, dword [esp + 0x40]
push edi
call fcn.0047a443
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 4
push eax
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x218], 1
call fcn.004059e0
mov edx, dword [esp + 0x1c]
push edx
call fcn.004796fd
xor eax, eax
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x20c], al
call fcn.004b2bf0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x20c], 0xffffffff
call fcn.004b1dd0
mov ecx, dword [esp + 0x204]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4