Function at 0x4f7be0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call fcn.00478000
mov ecx, dword [ebx]
add esp, 4
mov esi, ecx
mov edi, eax
dec esi
mov dword [ebp - 8], edi
neg esi
sbb esi, esi
and esi, 0xffffff9c
add esi, 0x64
add esi, edi
mov al, byte [esi]
cmp al, 0xa
mov byte [ebx + 0x10], al
je 0x4f7c37
cmp al, 0xd
je 0x4f7c37
cmp al, 5
je 0x4f7c27
cmp al, 2
jne 0x4f7f4b
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xc
jmp 0x4f7c45
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 8
cmp ecx, 1
jne 0x4f7c4e
add dword [ebp - 4], 0x64
mov edx, dword [ebp + 8]
xor ecx, ecx
mov ch, byte [esi + 3]
push edx
mov cl, byte [esi + 4]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x14], ecx
call fcn.00479d60
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov dh, byte [esi + 5]
mov dword [ebp - 0x14], eax
mov dl, byte [esi + 6]
xor eax, eax
mov al, byte [esi + 7]
add esp, 4
add edx, eax
mov eax, dword [ebp - 4]
shl ecx, 1
sub edx, ecx
sub edx, eax
xor eax, eax
mov ah, byte [esi + 1]
mov al, byte [esi + 2]
test eax, eax
je 0x4f7cca
cmp eax, dword [ebp - 0x14]
jge 0x4f7f4b
xor ecx, ecx
mov ch, byte [eax + edi + 2]
mov cl, byte [eax + edi + 3]
add eax, 4
add edx, ecx
xor ecx, ecx
mov ch, byte [eax + edi - 4]
mov cl, byte [eax + edi - 3]
cmp ecx, eax
jge 0x4f7cc4
test ecx, ecx
jg 0x4f7f4b
test ecx, ecx
mov eax, ecx
jne 0x4f7c96
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x18], edx
test eax, eax
je 0x4f7cd8
xor eax, eax
jmp 0x4f7ce4
add esi, 8
push esi
call fcn.00477a30
add esp, 4
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f7f58
mov esi, dword [ebp + 8]
push esi
call fcn.00475760
push esi
call fcn.0047fe20
mov ecx, dword [ebp - 0x14]
push esi
sub ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.004758c0
mov eax, dword [ebx + 0x14]
push 0
inc eax
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.0046f440
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [ebx + 0x1c], edi
jne 0x4f7d39
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x14]
xor esi, esi
inc eax
mov dword [ebp - 0x24], esi
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebx + 0x14], esi
jle 0x4f7f58
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebx + 0x1c]
xor edx, edx
mov dl, byte [eax + 1]
add esi, ecx
mov dh, byte [eax]
mov eax, dword [ebp - 4]
mov edi, edx
cmp edi, eax
jl 0x4f7f4b
cmp edi, dword [ebp - 0x14]
jge 0x4f7f4b
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4f7dad
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
push ecx
call fcn.00477a30
add esp, 4
mov dword [esi + 4], eax
add edi, 4
cmp byte [ebx + 0x10], 5
je 0x4f7f1b
mov edx, dword [ebp - 8]
mov al, byte [edi + edx]
lea ecx, [edi + edx]
cmp al, 0x80
jae 0x4f7dd3
and eax, 0xff
mov ecx, 1
mov dword [ebp - 0xc], eax
jmp 0x4f7dea
lea eax, [ebp - 0xc]
push eax
push ecx
call fcn.0048c3a0
add esp, 8
and eax, 0xff
mov ecx, eax
mov eax, dword [ebp - 0xc]
and ecx, 0xff
add edi, ecx
mov cl, byte [ebx + 0x10]
cmp cl, 0xd
jne 0x4f7e17
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x34]
push ecx
lea eax, [edi + edx]
push eax
call fcn.0047a090
and eax, 0xff
add esp, 8
add edi, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 0x24]
jbe 0x4f7e1f
mov dword [ebx + 0x24], eax
mov dl, byte [ebx + 0x10]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push edx
push eax
call fcn.004f7f70
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jl 0x4f7f4b
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
cmp ecx, eax
jbe 0x4f7f1b
mov edx, dword [ebp - 0x1c]
mov ebx, ecx
sub ebx, eax
lea eax, [ebx + edx - 5]
lea ebx, [edx - 4]
xor edx, edx
div ebx
mov edx, dword [ebp - 0x10]
add edx, edi
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp edx, eax
jg 0x4f7f48
lea edx, [ebx - 1]
add eax, 0xfffffffc
imul edx, eax
mov eax, dword [ebp - 0x10]
sub ecx, edx
sub ecx, eax
lea eax, [ebx*4]
push 0
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 8], ebx
call fcn.0046f440
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x4f7d2d
mov ecx, dword [ebp - 0x10]
add ecx, edi
mov edi, dword [ebp - 8]
add ecx, edi
push ecx
call fcn.00477a30
mov edx, dword [esi + 0xc]
mov edi, 1
add esp, 4
cmp ebx, edi
mov dword [edx], eax
jle 0x4f7f18
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push 0
mov eax, dword [eax + edi*4 - 4]
push ecx
push eax
push edx
mov dword [ebp - 0x20], 0
call fcn.00475900
add esp, 4
push eax
call fcn.00476200
add esp, 0x10
test eax, eax
jne 0x4f7f5a
mov eax, dword [ebp - 0x20]
push eax
call fcn.00478000
push eax
call fcn.00477a30
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.00476220
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x4f7ec4
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebx + 0x14]
inc ecx
add esi, 0x18
add eax, 2
cmp ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
jl 0x4f7d6f
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebx + 0x10], 0
call fcn.004f7780
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret