Function at 0x4f6580
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4f65db
cmp eax, 0x20
jae 0x4f65c4
lea esp, [esp]
test ebx, ebx
je 0x4f65bb
mov ecx, dword [esi + 0x60]
dec ebx
mov al, byte [edi]
inc edi
mov byte [esi + ecx + 0x64], al
mov eax, dword [esi + 0x60]
inc eax
mov dword [esi + 0x60], eax
cmp eax, 0x20
jb 0x4f65a0
cmp eax, 0x20
jb 0x4f67b5
push 0x100
lea eax, [esi + 0x64]
mov ecx, esi
push eax
call fcn.004f5310
mov dword [esi + 0x60], 0
cmp ebx, 0x20
jb 0x4f679b
push ebp
mov ebp, ebx
shr ebp, 5
lea ebx, [ebx]
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov eax, dword [esi]
add eax, ecx
mov dword [esp + 0x10], ecx
cmp eax, ecx
mov dword [esi], eax
movzx edx, byte [edi + 7]
sbb ecx, ecx
movzx eax, byte [edi + 6]
shl edx, 8
neg ecx
or edx, eax
movzx eax, byte [edi + 5]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 4]
shl edx, 8
or edx, eax
mov dword [esp + 0x14], edx
lea eax, [edx + ecx]
add dword [esi + 4], eax
cmp dword [esi + 4], edx
movzx edx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
sbb ecx, ecx
shl edx, 8
neg ecx
or edx, eax
movzx eax, byte [edi + 9]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 8]
shl edx, 8
or edx, eax
mov dword [esp + 0x18], edx
lea eax, [edx + ecx]
add dword [esi + 8], eax
cmp dword [esi + 8], edx
movzx edx, byte [edi + 0xf]
movzx eax, byte [edi + 0xe]
sbb ecx, ecx
shl edx, 8
neg ecx
or edx, eax
movzx eax, byte [edi + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 0xc]
shl edx, 8
or edx, eax
mov dword [esp + 0x1c], edx
lea eax, [edx + ecx]
add dword [esi + 0xc], eax
cmp dword [esi + 0xc], edx
movzx edx, byte [edi + 0x13]
movzx eax, byte [edi + 0x12]
sbb ecx, ecx
shl edx, 8
neg ecx
or edx, eax
movzx eax, byte [edi + 0x11]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 0x10]
shl edx, 8
or edx, eax
mov dword [esp + 0x20], edx
lea eax, [edx + ecx]
add dword [esi + 0x10], eax
cmp dword [esi + 0x10], edx
sbb ecx, ecx
neg ecx
movzx edx, byte [edi + 0x17]
movzx eax, byte [edi + 0x16]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 0x15]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 0x14]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
lea eax, [edx + ecx]
add dword [esi + 0x14], eax
cmp dword [esi + 0x14], edx
movzx edx, byte [edi + 0x1b]
movzx eax, byte [edi + 0x1a]
sbb ecx, ecx
shl edx, 8
neg ecx
or edx, eax
movzx eax, byte [edi + 0x19]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 0x18]
shl edx, 8
or edx, eax
mov dword [esp + 0x28], edx
lea eax, [edx + ecx]
add dword [esi + 0x18], eax
cmp dword [esi + 0x18], edx
movzx ecx, byte [edi + 0x1f]
movzx eax, byte [edi + 0x1e]
sbb edx, edx
shl ecx, 8
neg edx
or ecx, eax
movzx eax, byte [edi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x2c], ecx
lea eax, [ecx + edx]
add dword [esi + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.004f54c0
add dword [esi + 0x40], 0x100
add esp, 8
cmp dword [esi + 0x40], 0x100
jae 0x4f678b
inc dword [esi + 0x44]
sub ebx, 0x20
add edi, 0x20
sub ebp, 1
jne 0x4f65f0
pop ebp
test ebx, ebx
je 0x4f67b5
nop
mov ecx, dword [esi + 0x60]
lea edi, [edi + 1]
mov al, byte [edi - 1]
mov byte [esi + ecx + 0x64], al
inc dword [esi + 0x60]
sub ebx, 1
jne 0x4f67a0
pop edi
pop esi
pop ebx
add esp, 0x20
ret 8