Function at 0x4a6a10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x3c]
add dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x40
push 0x1000
mov edx, dword [ebp - 8]
push dword [edx + 0x50]
push 0
call fcn.00407944
mov esi, eax
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
push dword [ebp + 8]
push esi
call fcn.004a6c4e
add esp, 0xc
mov edx, dword [ebp - 8]
movzx ecx, word [edx + 0x14]
add ecx, 0x18
add dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4a6ab1
mov ebx, dword [ebp - 0xc]
shl ebx, 3
lea ebx, [ebx + ebx*4]
add ebx, dword [ebp - 4]
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov edx, dword [ebx + 0xc]
add edx, esi
mov dword [ebp - 0x28], edx
push edi
push dword [ebp - 0x28]
call fcn.004a6c88
add esp, 8
cmp edi, dword [ebp - 0x24]
jl 0x4a6a9b
mov edi, dword [ebp - 0x24]
push edi
mov eax, dword [ebx + 0x14]
add eax, dword [ebp + 8]
push eax
push dword [ebp - 0x28]
call fcn.004a6c4e
add esp, 0xc
inc dword [ebp - 0xc]
mov edx, dword [ebp - 8]
movzx ecx, word [edx + 6]
cmp ecx, dword [ebp - 0xc]
jg 0x4a6a6a
mov eax, dword [ebp - 8]
mov edx, esi
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xa4]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xa0]
add ecx, esi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x4a6b2e
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 8
xor edx, edx
cmp edx, dword [ebp - 0x2c]
jge 0x4a6b2b
test byte [eax + 1], 0xf0
je 0x4a6b22
movzx ecx, word [eax]
and ecx, 0xfff
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
lea ebx, [esi + ebx]
mov edi, dword [ebp - 0x10]
add dword [ebx + ecx], edi
add eax, 2
inc edx
cmp edx, dword [ebp - 0x2c]
jl 0x4a6b05
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jl 0x4a6aea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x4a6ba4
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
add eax, esi
push eax
call fcn.0040788c
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 4], 0
jne 0x4a6b6d
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ecx + 0x10]
add ebx, esi
jmp 0x4a6b9b
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
add ebx, esi
jmp 0x4a6b9b
test byte [ebx + 3], 0x80
je 0x4a6b86
mov edi, dword [ebx]
and edi, 0xffff
jmp 0x4a6b8d
mov edi, dword [ebx]
add edi, esi
add edi, 2
push edi
push dword [ebp - 0x30]
call fcn.004077e4
mov dword [ebx], eax
add ebx, 4
cmp dword [ebx], 0
jne 0x4a6b76
add dword [ebp - 0x20], 0x14
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xc], 0
jne 0x4a6b49
mov edx, dword [ebp - 8]
push dword [edx + 0x50]
push esi
call fcn.00407764
push eax
call fcn.0040771c
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x28], 0
je 0x4a6be2
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x28]
add ebx, esi
test ebx, ebx
je 0x4a6be2
push 0
push 1
push esi
call ebx
push 0
push 2
push esi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret