Function at 0x46cbf0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [ebp + 0x18]
mov ebx, dword [esi + 4]
test ebx, ebx
push edi
mov edi, dword [esi]
mov dword [esp + 0x10], esi
jne 0x46cc1c
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x46ce1a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [edi]
dec ebx
inc edi
test ebx, ebx
mov dword [esp + 0x28], eax
jne 0x46cc3f
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x46ce1a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov eax, dword [esp + 0x28]
movzx ecx, byte [edi]
add eax, ecx
dec ebx
sub eax, 2
inc edi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x46cdf7
test ebx, ebx
jne 0x46cc6a
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x46ce1a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
movzx esi, byte [edi]
mov eax, dword [ebp]
mov ecx, esi
sar ecx, 4
mov dword [eax + 0x14], 0x51
push 1
and esi, 0xf
mov dword [eax + 0x18], esi
dec ebx
push ebp
inc edi
mov dword [esp + 0x24], ecx
mov dword [eax + 0x1c], ecx
call dword [eax + 4]
cmp esi, 4
jl 0x46cca6
mov eax, dword [ebp]
mov dword [eax + 0x14], 0x1f
push ebp
mov dword [eax + 0x18], esi
call dword [eax]
mov eax, dword [ebp + esi*4 + 0xa8]
test eax, eax
jne 0x46ccbe
push ebp
call fcn.004ae790
mov dword [ebp + esi*4 + 0xa8], eax
mov edx, dword [ebp + esi*4 + 0xa8]
mov esi, 0x4ebe20
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46cd21
test ebx, ebx
mov esi, dword [esp + 0x10]
jne 0x46ccf3
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x46ce1a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [edi]
dec ebx
inc edi
test ebx, ebx
mov dword [esp + 0x14], eax
jne 0x46cd12
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x46ce1a
mov edi, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, byte [edi]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add edx, ecx
jmp 0x46cd3d
test ebx, ebx
jne 0x46cd3a
mov ebx, dword [esp + 0x10]
push ebp
call dword [ebx + 0xc]
test eax, eax
je 0x46ce1a
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
movzx edx, byte [edi]
mov ecx, dword [esi]
mov eax, dword [esp + 0x20]
dec ebx
add esi, 4
inc edi
cmp esi, 0x4ebf20
mov dword [esp + 0x14], edx
mov word [eax + ecx*2], dx
mov dword [esp + 0x18], esi
jl 0x46ccd2
mov ecx, dword [ebp]
cmp dword [ecx + 0x68], 2
jl 0x46cdc9
lea esi, [eax + 4]
mov dword [esp + 0x18], 8
movzx edx, word [esi - 4]
mov eax, dword [ebp]
mov dword [eax + 0x18], edx
movzx ecx, word [esi - 2]
mov dword [eax + 0x1c], ecx
movzx edx, word [esi]
mov dword [eax + 0x20], edx
movzx ecx, word [esi + 2]
mov dword [eax + 0x24], ecx
movzx edx, word [esi + 4]
mov dword [eax + 0x28], edx
movzx ecx, word [esi + 6]
mov dword [eax + 0x2c], ecx
movzx edx, word [esi + 8]
mov dword [eax + 0x30], edx
movzx ecx, word [esi + 0xa]
push 2
mov dword [eax + 0x34], ecx
push ebp
mov dword [eax + 0x14], 0x5d
call dword [eax + 4]
mov eax, dword [esp + 0x18]
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x46cd74
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0x28], ecx
je 0x46cde5
mov eax, ecx
sub eax, 0x40
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [esp + 0x10]
jg 0x46cc55
test eax, eax
je 0x46ce06
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0xb
call dword [eax]
mov dword [esi], edi
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4