Function at 0x501330
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581d58
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x501374
push eax
call fcn.0045c710
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
movq xmm0, qword [str.item_parameter.pak.lz]
mov eax, dword [0x5abd4c]
movq qword [ebp - 0x30], xmm0
movq xmm0, qword [0x5abd44]
mov dword [ebp - 0x20], eax
mov ax, word [0x5abd50]
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x1c], ax
call fcn.00446920
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00446b40
test eax, eax
jne 0x5013f7
push dword [ebp - 0x5c]
call fcn.0045c4e0
add esp, 4
lea ecx, [ebp - 0x50]
push eax
mov dword [esi + 0x10], eax
call fcn.00447b40
jmp 0x50140e
push str._nMiss__Cant_Uncompress.___n
push 0x3bb
push str.useritemitem_manager.cpp
call fcn.004301a0
add esp, 0xc
push dword [esi + 0x10]
call fcn.0045d0d0
add esp, 4
cmp eax, 4
jae 0x501435
push str.not_category_num
push 0x3c6
push str.useritemitem_manager.cpp
call fcn.004301a0
add esp, 0xc
push 0
push dword [esi + 0x10]
call fcn.0045d0a0
push 1
push dword [esi + 0x10]
mov dword [esi + 0x14], eax
call fcn.0045d0a0
push 2
push dword [esi + 0x10]
mov dword [esi + 0x18], eax
call fcn.0045d0a0
push 3
push dword [esi + 0x10]
mov dword [esi + 0x1c], eax
call fcn.0045d0a0
push 0
push dword [esi + 0x10]
mov dword [esi + 0x20], eax
call fcn.0045d0e0
add esp, 0x28
test eax, eax
je 0x50148d
lea ecx, [eax - 1]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 5
inc edx
inc dword [esi]
dec edx
jne 0x501488
push 1
push dword [esi + 0x10]
call fcn.0045d0e0
add esp, 8
test eax, eax
je 0x5014b6
mov edi, dword [esi + 4]
lea ecx, [eax - 1]
mov eax, 0xba2e8ba3
mul ecx
shr edx, 6
lea eax, [edi + 1]
add eax, edx
mov dword [esi + 4], eax
push 2
push dword [esi + 0x10]
call fcn.0045d0e0
add esp, 8
test eax, eax
je 0x5014e5
mov edi, dword [esi + 8]
lea ecx, [eax - 1]
mov eax, 0x86186187
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
lea eax, [edi + 1]
add eax, ecx
mov dword [esi + 8], eax
push 3
push dword [esi + 0x10]
call fcn.0045d0e0
add esp, 8
test eax, eax
je 0x501503
mov ecx, dword [esi + 0xc]
dec eax
shr eax, 5
inc ecx
add eax, ecx
mov dword [esi + 0xc], eax
push dword [esi]
mov edi, dword [sym.imp.MSVCR110.dll_printf]
push str.C_MAX_:__d_n
call edi
push dword [esi + 4]
push str.W_MAX_:__d_n
call edi
push dword [esi + 8]
push str.P_MAX_:__d_n
call edi
push dword [esi + 0xc]
push str.I_MAX_:__d_n
call edi
mov eax, dword [esi + 8]
add eax, dword [esi + 0xc]
add eax, dword [esi + 4]
add eax, dword [esi]
push eax
push str.ITEM_MAX_:__d_n
call edi
mov eax, dword [esi + 8]
add eax, dword [esi + 0xc]
add esp, 0x28
add eax, dword [esi + 4]
add eax, dword [esi]
cmp eax, 0x180
jb 0x50156f
push str._nMiss__Item_Num_Over._n
push 0x3f6
push str.useritemitem_manager.cpp
call fcn.004301a0
add esp, 0xc
cmp dword [esi + 0xc], 0x80
jb 0x50158f
push str._nMiss__Item_Num_Over._n
push 0x3f9
push str.useritemitem_manager.cpp
call fcn.004301a0
add esp, 0xc
push 0x1c
push str.IBP_:__d__n
call edi
push 0x2c
push str.NIP_:__d__n
call edi
push 0x50
push str.EP_:__d__n
call edi
push 0x52
push str.REP_:__d__n
call edi
push 0x54
push str.PP_:__d__n
call edi
push 0x30
push str.CONSUMPTION_SIZE_:__d__n
call edi
push 0x58
push str.WEAPON______SIZE_:__d__n
call edi
push 0x54
push str.PROTECTION__SIZE_:__d__n
call edi
add esp, 0x40
push 0x20
push str.IMPORTANT___SIZE_:__d__n
call edi
push dword [esi]
push str.m_ConsumptionItemMax_:__d__n
call edi
push dword [esi + 4]
push str.m_WeaponItemMax______:__d__n
call edi
push dword [esi + 8]
push str.m_ProtectionItemMax__:__d__n
call edi
push dword [esi + 0xc]
push str.m_ImportantItemMax___:__d__n
call edi
push 0x5abee8
call edi
xor eax, eax
add esp, 0x2c
mov dword [ebp - 0x54], eax
cmp dword [esi], eax
jle 0x501766
xor ebx, ebx
push eax
push str.consumptionItem___03d__:
call edi
mov eax, dword [esi + 0x14]
movzx eax, byte [ebx + eax]
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 2]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 4]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 6]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 0xa]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movsx eax, word [ebx + eax + 0x12]
shr eax, 1
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movsx eax, word [ebx + eax + 0x12]
shr eax, 2
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
add esp, 0x40
movsx eax, word [ebx + eax + 0x12]
shr eax, 4
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 0x14]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 0x18]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 0x1a]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
push dword [ebx + eax + 0x1c]
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
push dword [ebx + eax + 0x20]
push 0x5abf08
call edi
add esp, 0x30
mov ecx, dword [esi + 0x14]
add ecx, ebx
call fcn.00502650
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
movzx eax, word [ebx + eax + 0x2c]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x14]
push dword [ebx + eax + 0x28]
push dword [ebx + eax + 0x24]
push 0x5abf08
call edi
push 0x5abee8
call edi
mov eax, dword [ebp - 0x54]
inc eax
add esp, 0x20
add ebx, 0x30
mov dword [ebp - 0x54], eax
cmp eax, dword [esi]
jl 0x501623
push 0x5abee8
call edi
xor eax, eax
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [esi + 4], eax
jle 0x50188b
xor ebx, ebx
push eax
push str.weaponItem___03d__:
call edi
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + ebx]
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movzx eax, word [eax + ebx + 2]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movzx eax, word [eax + ebx + 4]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movzx eax, word [eax + ebx + 6]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movzx eax, word [eax + ebx + 0xa]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movsx eax, word [eax + ebx + 0x12]
shr eax, 1
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movsx eax, word [eax + ebx + 0x12]
shr eax, 2
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
add esp, 0x40
movsx eax, word [eax + ebx + 0x12]
shr eax, 4
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movzx eax, word [eax + ebx + 0x14]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movzx eax, word [eax + ebx + 0x18]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
movzx eax, word [eax + ebx + 0x1a]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
push dword [eax + ebx + 0x1c]
push 0x5abf08
call edi
mov eax, dword [esi + 0x18]
push dword [eax + ebx + 0x20]
push 0x5abf08
call edi
push 0x5abee8
call edi
mov eax, dword [ebp - 0x54]
inc eax
add esp, 0x34
mov dword [ebp - 0x54], eax
lea ebx, [ebx + 0x58]
cmp eax, dword [esi + 4]
jl 0x501780
push 0x5abee8
call edi
xor eax, eax
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [esi + 8], eax
jle 0x5019b0
xor ebx, ebx
push eax
push str.protectionItem___03d__:
call edi
mov eax, dword [esi + 0x1c]
movzx eax, byte [ebx + eax]
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movzx eax, word [ebx + eax + 2]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movzx eax, word [ebx + eax + 4]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movzx eax, word [ebx + eax + 6]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movzx eax, word [ebx + eax + 0xa]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movsx eax, word [ebx + eax + 0x12]
shr eax, 1
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movsx eax, word [ebx + eax + 0x12]
shr eax, 2
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
add esp, 0x40
movsx eax, word [ebx + eax + 0x12]
shr eax, 4
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movzx eax, word [ebx + eax + 0x14]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movzx eax, word [ebx + eax + 0x18]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
movzx eax, word [ebx + eax + 0x1a]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
push dword [ebx + eax + 0x1c]
push 0x5abf08
call edi
mov eax, dword [esi + 0x1c]
push dword [ebx + eax + 0x20]
push 0x5abf08
call edi
push 0x5abee8
call edi
mov eax, dword [ebp - 0x54]
inc eax
add esp, 0x34
mov dword [ebp - 0x54], eax
lea ebx, [ebx + 0x54]
cmp eax, dword [esi + 8]
jl 0x5018a5
push 0x5abee8
call edi
xor eax, eax
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [esi + 0xc], eax
jle 0x501abf
xor ebx, ebx
lea ebx, [ebx]
push eax
push str.ImportantItem___03d__:
call edi
mov eax, dword [esi + 0x20]
movzx eax, byte [ebx + eax]
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movzx eax, word [ebx + eax + 2]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movzx eax, word [ebx + eax + 4]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movzx eax, word [ebx + eax + 6]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movzx eax, word [ebx + eax + 0xa]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movsx eax, word [ebx + eax + 0x12]
shr eax, 1
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movsx eax, word [ebx + eax + 0x12]
shr eax, 2
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
add esp, 0x40
movsx eax, word [ebx + eax + 0x12]
shr eax, 4
and eax, 1
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movzx eax, word [ebx + eax + 0x14]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movzx eax, word [ebx + eax + 0x18]
cwde
push eax
push 0x5abf08
call edi
mov eax, dword [esi + 0x20]
movzx eax, word [ebx + eax + 0x1a]
cwde
push eax
push 0x5abf08
call edi
push 0x5abee8
call edi
mov eax, dword [ebp - 0x54]
inc eax
add esp, 0x24
mov dword [ebp - 0x54], eax
lea ebx, [ebx + 0x20]
cmp eax, dword [esi + 0xc]
jl 0x5019d0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.00446a50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret