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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x474880]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [ebp - 0x70], eax
mov eax, dword [0x474884]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [ebp - 0x88], eax
mov eax, dword [0x474888]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [0x47488c]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [ebp - 0x74], eax
mov eax, dword [0x474890]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [ebp - 0x84], eax
mov eax, dword [0x474894]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov esi, eax
mov eax, dword [0x474898]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [ebp - 0x80], eax
mov eax, dword [0x47489c]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [ebp - 0x7c], eax
mov eax, dword [0x4748a0]
mov dword [esp + 4], eax
mov eax, dword [0x47403c]
mov dword [esp], eax
call fcn.0040283c
sub esp, 8
mov dword [0x474908], eax
cmp dword [ebp + 8], 0x46f03a
je 0x40261c
cmp word [ebx], 0x5a4d
je 0x4023f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [0x474028], eax
cmp dword [eax], 0x4550
jne 0x4023e6
lea edx, [ebp - 0x5c]
xor eax, eax
mov ecx, 0x44
mov edi, edx
rep stosb byte es:[edi], al
mov cl, 0x10
mov edi, 0x4748f8
rep stosb byte es:[edi], al
mov dword [esp + 0x24], 0x4748f8
mov dword [esp + 0x20], edx
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 dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [ebp - 0x70]
sub esp, 0x28
test eax, eax
je 0x4023e6
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 4
mov dword [esp], 0
call dword [ebp - 0x78]
sub esp, 0x10
mov dword [0x474020], eax
mov dword [eax], 0x10007
mov dword [esp + 4], eax
mov eax, dword [0x4748fc]
mov dword [esp], eax
call dword [ebp - 0x74]
sub esp, 8
test eax, eax
je 0x4023e6
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x4748f4
mov eax, dword [0x474020]
mov eax, dword [eax + 0xa4]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [0x4748f8]
mov dword [esp], eax
call dword [ebp - 0x88]
sub esp, 0x14
mov eax, dword [0x474028]
mov edx, dword [eax + 0x34]
cmp dword [0x4748f4], edx
je 0x402697
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov eax, dword [eax + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [0x4748f8]
mov dword [esp], eax
call dword [ebp - 0x84]
sub esp, 0x14
mov dword [0x474024], eax
test eax, eax
je 0x40268c
mov eax, dword [0x474028]
mov eax, dword [eax + 0x54]
mov dword [0x47490c], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x46f03a
call fcn.004022c0
mov eax, dword [0x474028]
cmp word [eax + 6], 0
je 0x40264c
xor eax, eax
xor edi, edi
mov dword [ebp - 0x6c], esi
mov esi, ebx
mov ebx, eax
nop
mov eax, dword [esi + 0x3c]
lea edx, [esi + eax + 0xf8]
add edx, ebx
mov dword [esp + 0x10], 0
mov eax, dword [edx + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x14]
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [0x474024]
add eax, dword [edx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [0x4748f8]
mov dword [esp], eax
call dword [ebp - 0x6c]
sub esp, 0x14
inc edi
mov eax, dword [0x474028]
add ebx, 0x28
movzx edx, word [eax + 6]
cmp edx, edi
jg 0x40257c
mov esi, dword [ebp - 0x6c]
cmp edi, 0x60c
jne 0x40264c
mov edx, dword [0x474020]
mov ecx, dword [0x474024]
mov ebx, dword [eax + 0x28]
add ebx, ecx
mov dword [edx + 0xb0], ebx
add ecx, dword [eax + 0x28]
mov dword [edx + 0xb0], ecx
mov dword [esp + 4], edx
mov eax, dword [0x4748fc]
mov dword [esp], eax
call dword [ebp - 0x80]
sub esp, 8
mov eax, dword [0x4748fc]
mov dword [esp], eax
call dword [ebp - 0x7c]
push edi
jmp 0x4023e6
mov dword [esp + 0x10], 0
mov eax, dword [0x47490c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [0x474024]
mov dword [esp + 4], eax
mov eax, dword [0x4748f8]
mov dword [esp], eax
call esi
sub esp, 0x14
jmp 0x4023e6
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
add eax, 0x34
mov dword [esp + 8], eax
mov eax, dword [0x474020]
mov eax, dword [eax + 0xa4]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [0x4748f8]
mov dword [esp], eax
call esi
sub esp, 0x14
mov eax, dword [0x474028]
jmp 0x4025d6
mov edx, dword [0x474020]
jmp 0x4025f6
call fcn.00401fd4
mov eax, dword [0x474028]
mov edx, dword [eax + 0x34]
jmp 0x40250a