Function at 0x4558a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
mov dword [esp + 0xc], esi
sub eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x455ace
dec eax
jne 0x455ae2
mov ecx, dword [0x4ff8f8]
lea eax, [esp + 0xc]
push eax
push esi
mov edx, dword [ecx]
push 0x4e
push esi
push edx
call dword [0x500900]
add esp, 0x14
cmp eax, 0x3e9
je 0x455ab5
cmp eax, 0x3ea
je 0x455ab5
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x455948
mov ecx, dword [0x500930]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
mov ecx, dword [ecx + 0x24]
push edx
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [0x4ff8f8]
push ecx
push eax
mov eax, dword [edx]
push eax
call dword [0x50094c]
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jne 0x45595f
push 0xa0f2
call dword [0x500cc4]
add esp, 4
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov esi, dword [0x4ff8ec]
mov edi, dword [0x500928]
cmp byte [eax + 4], 0x10
jne 0x4559aa
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jne 0x4559aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x9999999a
push ecx
push 0x28
push eax
mov dword [esp + 0x28], 0x3fb99999
call esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call edi
add esp, 0x18
call fcn.0044b470
call dword [0x4ff3b4]
mov edx, dword [esp + 0xc]
push 0xfffffffffffffffa
push edx
call dword [0x4ff3a0]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cl, byte [eax + 7]
mov byte [edx + 7], cl
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cl, byte [eax + 5]
mov byte [edx + 5], cl
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cl, byte [eax + 6]
mov byte [edx + 6], cl
mov eax, dword [esp + 0x18]
push eax
call dword [0x4ff398]
add esp, 0xc
cmp ebx, 2
jne 0x455a76
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0x10
jne 0x455a42
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jne 0x455a42
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x9999999a
push ecx
push 0x28
push eax
mov dword [esp + 0x28], 0x3fb99999
call esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov edx, dword [esp + 0xc]
mov cl, byte [edx + 7]
mov byte [eax + 7], cl
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov al, byte [edx + 5]
mov byte [ecx + 5], al
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov al, byte [edx + 6]
mov byte [ecx + 6], al
mov edx, dword [esp + 0x14]
push edx
call dword [0x4ff398]
add esp, 4
mov ecx, dword [0x4ff8f8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [ecx]
push edx
call dword [0x4ff384]
call fcn.0044b420
push 1
call dword [0x500c28]
push 0xa0f2
call dword [0x500cc4]
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [0x500cac]
call dword [0x500cf8]
call dword [0x500ca8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [0x500c90]
push 0xa0f2
call dword [0x500cc4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret