Function at 0x4021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x402211
xor eax, eax
jmp 0x402444
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x40222f
xor eax, eax
jmp 0x402444
mov eax, dword [ebp - 0x10]
add eax, 0xf8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 6]
mov dword [ebp - 4], edx
push 0x28
push 0
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, dword [ebp - 8]
push eax
call fcn.00401810
add esp, 0xc
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov dword [edx + ecx + 0x24], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 4]
sub edx, 1
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 0x14]
mov eax, dword [ebp - 8]
add ecx, dword [eax + edx + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
sub eax, 1
and ecx, eax
je 0x4022cf
mov ecx, dword [ebp - 4]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 4]
sub edx, 1
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 0x14]
mov eax, dword [ebp - 8]
add ecx, dword [eax + edx + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
sub eax, 1
not eax
and ecx, eax
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x3c]
mov dword [ebp - 0x14], ecx
jmp 0x4022f2
mov eax, dword [ebp - 4]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 0x14]
mov edx, dword [ebp - 8]
add eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x14], edx
mov eax, dword [ebp - 4]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 8]
add eax, dword [edx + ecx + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
sub edx, 1
and eax, edx
je 0x402367
mov eax, dword [ebp - 4]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
sub ecx, 1
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 8]
add eax, dword [edx + ecx + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
sub edx, 1
not edx
and eax, edx
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x38]
mov dword [ebp - 0x18], eax
jmp 0x40238a
mov edx, dword [ebp - 4]
sub edx, 1
imul edx, edx, 0x28
mov eax, dword [ebp - 4]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [ebp - 8]
add edx, dword [ecx + eax + 8]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx + 0xc], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
sub eax, 1
and eax, dword [ebp + 0x10]
je 0x4023c1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
sub edx, 1
not edx
and edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x38]
mov dword [ebp - 0x1c], edx
jmp 0x4023c7
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + edx + 0x10], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + edx + 8], ecx
push 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, dword [ebp - 8]
push eax
call 0x402bf4
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 6]
add dx, 1
mov eax, dword [ebp - 0x10]
mov word [eax + 6], dx
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 0xc]
mov eax, dword [ebp - 8]
add ecx, dword [eax + edx + 8]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], 0
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10