Function at 0x4f21a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ecx, dword [eax + 0x10]
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov ebx, dword [ebx]
movzx eax, byte [ecx + 6]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 7]
or edx, eax
and edx, 0xfffffffe
mov dword [esp + 0xc], edx
jne 0x4f21da
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push esi
mov ecx, edx
shr ecx, 1
cmp byte [esp + 0x50], 0
mov esi, ecx
push edi
mov dword [esp + 0x2c], ecx
mov edi, 0xffff
je 0x4f21f3
inc ebx
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
test ecx, ecx
jbe 0x4f25cc
add edx, 2
mov dword [esp + 0x20], edx
lea esp, [esp]
mov edx, dword [esp + 0x18]
lea esi, [ecx + eax]
add edx, 0xe
shr esi, 1
movzx eax, byte [edx + esi*2]
lea edx, [edx + esi*2]
shl ax, 8
movzx edi, ax
movzx eax, byte [edx + 1]
add edx, dword [esp + 0x20]
or edi, eax
mov dword [esp + 0x28], edi
movzx eax, byte [edx]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 1]
or ecx, eax
mov dword [esp + 0x1c], ecx
cmp ebx, ecx
jae 0x4f225c
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov dword [esp + 0x38], ecx
jmp 0x4f226b
cmp ebx, edi
jbe 0x4f2274
mov ecx, dword [esp + 0x38]
lea eax, [esi + 1]
mov dword [esp + 0x3c], eax
cmp eax, ecx
jb 0x4f2210
jmp 0x4f25cc
add edx, dword [esp + 0x14]
movzx eax, byte [edx]
shl ax, 8
cwde
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 1]
or dword [esp + 0x10], eax
add edx, dword [esp + 0x14]
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
mov eax, dword [esp + 0x2c]
dec eax
cmp esi, eax
mov eax, dword [esp + 0x4c]
jb 0x4f22ea
cmp ecx, 0xffff
jne 0x4f22ea
cmp edi, ecx
jne 0x4f22ea
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
test ebp, ebp
je 0x4f22ea
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + 0x1f8]
add ecx, dword [eax + 0x1f4]
lea eax, [ebp + 2]
add eax, edx
cmp eax, ecx
mov eax, dword [esp + 0x4c]
jbe 0x4f22ea
mov dword [esp + 0x10], 1
xor ebp, ebp
test byte [eax + 0x14], 2
je 0x4f265e
mov eax, esi
mov dword [esp + 0x24], eax
cmp ebp, 0xffff
jne 0x4f2303
inc esi
mov edi, eax
test eax, eax
je 0x4f241a
mov ecx, dword [esp + 0x18]
add ecx, 0xc
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
add ecx, 0xe
add eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x14]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
add eax, ecx
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x24]
lea eax, [eax + ecx*2]
mov ecx, 1
add eax, 0xe
mov dword [esp + 0x3c], eax
mov eax, 1
sub eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
movzx ecx, byte [eax + ecx]
mov eax, dword [esp + 0x38]
movzx eax, byte [eax]
shl ax, 8
movzx eax, ax
or ecx, eax
cmp ebx, ecx
ja 0x4f2416
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
movzx eax, byte [eax]
shl ax, 8
movzx ecx, ax
mov eax, dword [esp + 0x40]
movzx eax, byte [eax + edx]
or ecx, eax
movzx eax, byte [edx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
add ecx, ebp
shl ax, 8
movsx edx, ax
movzx eax, byte [ecx]
or edx, eax
movzx eax, byte [ebp]
shl ax, 8
mov dword [esp + 0x10], edx
mov edx, ebp
movzx ebp, ax
mov eax, dword [esp + 0x14]
movzx eax, byte [ecx + eax]
or ebp, eax
cmp ebp, 0xffff
je 0x4f23f1
lea esi, [edi - 1]
mov eax, dword [esp + 0x30]
sub dword [esp + 0x38], 2
sub eax, 2
sub dword [esp + 0x34], 2
sub dword [esp + 0x3c], 2
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
dec edi
jne 0x4f2372
mov eax, dword [esp + 0x24]
lea ecx, [eax + 1]
cmp esi, ecx
jne 0x4f25f4
cmp edi, eax
je 0x4f2493
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + eax*2]
movzx eax, byte [ecx + 0xe]
add ecx, 0xe
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esp + 0x28], edx
lea edx, [esi + 2]
add edx, ecx
movzx eax, byte [edx]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 1]
add edx, esi
or ecx, eax
mov dword [esp + 0x1c], ecx
movzx eax, byte [edx]
shl ax, 8
movsx edi, ax
movzx eax, byte [edx + 1]
add edx, esi
or edi, eax
mov dword [esp + 0x10], edi
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
mov eax, dword [esp + 0x24]
jmp 0x4f2497
mov ecx, dword [esp + 0x1c]
lea edi, [eax + 1]
mov esi, eax
cmp edi, dword [esp + 0x2c]
jae 0x4f25bf
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [edx + 0xe]
lea eax, [eax + edi*2]
mov dword [esp + 0x3c], eax
add eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [ecx + 8]
add eax, edi
lea eax, [edx + eax*2]
mov dword [esp + 0x34], eax
lea eax, [ecx + edx]
lea eax, [eax + ecx*2]
lea eax, [eax + edi*2]
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, 1
sub eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, 1
sub eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
lea esp, [esp]
movzx eax, byte [eax]
mov edx, dword [esp + 0x44]
shl ax, 8
movzx eax, ax
movzx edx, byte [ecx + edx]
or edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov edx, ecx
mov ecx, dword [esp + 0x40]
movzx ecx, byte [eax + ecx]
mov eax, dword [esp + 0x30]
movzx eax, byte [eax]
shl ax, 8
movzx eax, ax
or ecx, eax
cmp ebx, ecx
jb 0x4f25b7
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
movzx eax, byte [eax]
add ecx, dword [esp + 0x38]
shl ax, 8
mov dword [esp + 0x28], edx
movsx edx, ax
movzx eax, byte [ecx]
or edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x38]
movzx ebp, byte [ecx + eax]
mov eax, edx
mov ecx, dword [esp + 0x30]
movzx eax, byte [eax]
shl ax, 8
movzx eax, ax
or ebp, eax
mov eax, dword [esp + 0x3c]
cmp ebp, 0xffff
cmovne esi, edi
add dword [esp + 0x34], 2
add dword [esp + 0x38], 2
inc edi
add eax, 2
add ecx, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
cmp edi, dword [esp + 0x2c]
jb 0x4f2500
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
dec edi
cmp esi, eax
jne 0x4f25f8
mov esi, edi
mov edi, dword [esp + 0x28]
xor ebp, ebp
cmp byte [esp + 0x54], 0
je 0x4f270b
cmp ebx, edi
jbe 0x4f26bd
inc esi
cmp esi, dword [esp + 0x2c]
jne 0x4f26bd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
mov ecx, dword [esp + 0x1c]
cmp esi, edi
je 0x4f26a6
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
add ecx, 0xe
movzx eax, byte [ecx + esi*2]
lea ecx, [ecx + esi*2]
shl ax, 8
movzx edi, ax
movzx eax, byte [ecx + 1]
lea edx, [ebp + 2]
or edi, eax
add edx, ecx
movzx eax, byte [edx]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 1]
add edx, ebp
or ecx, eax
movzx eax, byte [edx]
shl ax, 8
cwde
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 1]
add edx, ebp
or dword [esp + 0x10], eax
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
jmp 0x4f266e
cmp ebp, 0xffff
je 0x4f25ca
mov ecx, dword [esp + 0x1c]
test ebp, ebp
je 0x4f26ac
mov eax, ebx
sub eax, ecx
lea eax, [eax*2]
add eax, ebp
add edx, eax
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
je 0x4f25cc
add ebp, dword [esp + 0x10]
and ebp, 0xffff
jmp 0x4f25cc
mov edi, dword [esp + 0x28]
jmp 0x4f266e
mov ebp, dword [esp + 0x10]
add ebp, ebx
and ebp, 0xffff
jmp 0x4f25cc
push esi
mov esi, dword [esp + 0x50]
push esi
call fcn.004f29b0
add esp, 8
test eax, eax
je 0x4f26e3
test ebp, ebp
je 0x4f270b
mov eax, dword [esp + 0x50]
pop edi
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0x38
ret
mov dword [esi + 0x18], ebx
test ebp, ebp
je 0x4f26ef
mov dword [esi + 0x1c], ebp
jmp 0x4f26fe
push esi
mov dword [esi + 0x18], ebx
call fcn.004f2900
mov ebp, dword [esi + 0x1c]
add esp, 4
test ebp, ebp
je 0x4f270b
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x18]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x38
ret