Function at 0x403ec0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004041f0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403ee5
cmp dword [ebp + 0x10], 0
jne 0x403eec
xor eax, eax
jmp 0x404078
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + edx*4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov ax, word [edx + 4]
mov word [ecx + 8], ax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov ax, word [edx + 6]
mov word [ecx + 0xa], ax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ecx + 0xc], ax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0xa]
mov word [ecx + 0xe], ax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0xe]
push edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
call fcn.00402fc0
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x24]
mov word [ecx + 0x30], ax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x26]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2a]
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x38], edx
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x103
jae 0x403fd6
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x403fdd
mov dword [ebp - 0xc], 0x103
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2e
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x44
push edx
call fcn.0040a470
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
mov byte [eax + 0x44], 0
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x20]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xff
jae 0x404022
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x404029
mov dword [ebp - 0x10], 0xff
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x1c]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x2e]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1e]
add edx, ecx
push edx
mov edx, dword [ebp + 0x10]
add edx, 0x148
push edx
call fcn.0040a470
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
mov byte [eax + 0x148], 0
mov eax, 1
mov esp, ebp
pop ebp
ret