Function at 0x4a14a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x24]
push edi
mov edi, edx
lea eax, [ecx*8]
mov dword [esp + 0x20], edi
sub eax, ecx
xor ecx, ecx
mov cx, word [eax + edi]
add eax, edi
mov dword [esp + 0x18], ecx
movsx dx, byte [eax + 2]
mov word [esp + 0x1a], dx
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x4a14dc
neg eax
mov edx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], 0
cmp edx, eax
mov dword [esp + 0x18], 0xffffffff
jae 0x4a1740
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4a1517
movzx ax, byte [edx]
jmp 0x4a1524
mov eax, 0x100
mov dword [esp + 0x2c], 0
mov ebx, eax
inc edx
and ebx, 0xffff
mov dword [esp + 0x30], edx
add ebx, esi
mov esi, dword [ebp + 0x28]
cmp ebx, esi
jae 0x4a1730
lea esi, [ebx*8]
sub esi, ebx
add edi, esi
xor esi, esi
mov si, word [edi + 3]
mov dword [esp + 0x1c], esi
movsx si, byte [edi + 5]
mov word [esp + 0x1e], si
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x1c], esi
jne 0x4a1730
mov esi, dword [esp + 0x3c]
mov word [ecx], ax
mov al, byte [edi + 6]
inc esi
and eax, 0x1f
add ecx, 2
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
xor ecx, ecx
movsx ax, byte [edi + 2]
mov cx, word [edi]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ecx
mov word [esp + 0x2a], ax
mov esi, dword [esp + 0x28]
test esi, esi
jge 0x4a15fe
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
cmp ecx, eax
jae 0x4a174e
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea eax, [ebp + 0x3c]
push edx
push ecx
push eax
call fcn.0049d3c0
mov edx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x30]
add esp, 0xc
lea edx, [ecx + edx*8 + 4]
lea ecx, [ebp + 4]
push edx
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.0049d550
test eax, eax
je 0x4a15f8
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0x40]
mov dword [ecx + eax*8], edx
mov eax, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x38], eax
mov edx, dword [esp + 0x30]
neg esi
mov cl, byte [edi + 6]
mov eax, ecx
and eax, 0xff
shr eax, 6
je 0x4a1730
test cl, 0x20
jne 0x4a168b
cmp eax, 2
mov dword [esp + 0x28], ebx
jne 0x4a1629
mov dword [esp + 0x2c], 1
jmp 0x4a1674
cmp eax, 3
jne 0x4a1674
mov eax, dword [esp + 0x34]
cmp edx, eax
je 0x4a1730
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push eax
push edx
mov edx, dword [esp + 0x34]
push 1
push ebx
mov ecx, ebp
call fcn.004a14a0
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4a174e
cmp eax, dword [esp + 0x18]
jae 0x4a1670
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x34]
jae 0x4a1730
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x4a1509
lea edx, [esp + 0x10]
lea ecx, [ebp + 0x18]
push edx
push esi
call fcn.0049d480
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ecx, [edx + esi]
cmp ecx, edi
ja 0x4a1730
mov ecx, edx
mov edi, eax
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4a1730
mov esi, dword [esp + 0x3c]
mov ecx, edx
dec edx
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x4a16e7
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + esi*2]
movzx di, byte [eax]
mov word [ecx], di
inc esi
add ecx, 2
inc eax
mov edi, edx
dec edx
test edi, edi
mov dword [esp + 0x10], edx
jne 0x4a16d0
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
cmp edx, eax
jae 0x4a174e
mov eax, dword [esp + 0x38]
lea edi, [ebp + 0x3c]
push esi
push eax
push edi
call fcn.0049d3c0
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x30]
add esp, 0xc
lea ecx, [edx + ecx*8 + 4]
push ecx
push eax
push edi
lea ecx, [ebp + 4]
call fcn.0049d550
test eax, eax
je 0x4a1730
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [eax + edx*8], ecx
mov eax, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x38], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jae 0x4a1740
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x1c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret 0x1c