Function at 0x4165a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], edx
lea esi, [ecx + 0x10]
test eax, eax
je 0x41665a
jns 0x416762
mov ecx, eax
and ecx, 0x7fffffff
movzx eax, word [ecx + ebx]
add ecx, ebx
mov edx, 0x104
mov dword [ebp - 0x210], ecx
cmp ax, dx
jae 0x41675f
push eax
add ecx, 2
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0042eed8
mov edx, dword [ebp - 0x210]
movzx eax, word [edx]
mov edx, dword [ebp - 0x214]
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c8a1
add esp, 0x14
test eax, eax
jne 0x41674c
mov ecx, dword [ebp - 0x220]
movzx eax, word [ecx + 0xc]
xor edx, edx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x210], eax
cmp dx, ax
jae 0x4166ce
jmp 0x416680
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x224]
push ecx
push edx
push eax
mov eax, ebx
mov ecx, esi
mov edx, edi
call fcn.00416860
add esp, 0x10
test al, al
jne 0x416796
mov eax, dword [ebp - 0x21c]
inc eax
add esi, 8
mov dword [ebp - 0x21c], eax
cmp ax, word [ebp - 0x210]
jb 0x416680
mov ecx, dword [ebp - 0x220]
movzx ecx, word [ecx + 0xe]
xor edx, edx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x210], ecx
cmp dx, cx
jae 0x41674c
lea esp, [esp]
mov eax, dword [esi + 4]
test eax, eax
jns 0x4167a9
mov ecx, dword [ebp - 0x218]
mov edx, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp - 0x214]
push edx
mov edx, dword [esi]
push ecx
push edx
and eax, 0x7fffffff
push ebx
add eax, ebx
push eax
mov eax, dword [ebp - 0x224]
push eax
push edi
call fcn.004165a0
add esp, 0x20
test al, al
jne 0x416849
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x21c]
inc eax
add esi, 8
mov dword [ebp - 0x21c], eax
cmp ax, cx
jb 0x4166f0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bdb8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
movzx ecx, word [ebp + 0x20]
cmp eax, ecx
jne 0x41674c
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x224]
push edx
push 0x409
push eax
push ecx
mov eax, ebx
mov ecx, esi
mov edx, edi
call fcn.00416860
add esp, 0x10
test al, al
je 0x41674c
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bdb8
mov esp, ebp
pop ebp
ret
test dword [esi], 0x80000000
jne 0x416737
mov dx, word [ebp + 0x20]
cmp dx, word [esi]
jne 0x416737
movzx ecx, word [edi + 0x14]
mov esi, eax
mov eax, dword [esi + ebx + 4]
mov edx, dword [esi + ebx]
mov dword [ebp - 0x220], eax
lea eax, [ecx + edi + 0x18]
movzx ecx, word [edi + 6]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x210], edx
test ecx, ecx
je 0x41681e
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x416807
mov edx, dword [eax + 8]
add edx, edi
mov dword [ebp - 0x214], edx
mov edx, dword [ebp - 0x210]
cmp edx, dword [ebp - 0x214]
jb 0x416811
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x4167e7
jmp 0x41681e
mov ebx, dword [eax + 0x14]
sub ebx, edi
add ebx, edx
add ebx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x218]
push edx
call fcn.0040d8e0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
push eax
push ebx
push edx
call fcn.0042b3e0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042bdb8
mov esp, ebp
pop ebp
ret