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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
mov eax, dword [ebp + 0x28]
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov ecx, 9
mov esi, dword [0x511238]
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
push reloc.kernel32.dll_SetFilePointerEx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402160
add esp, 8
test eax, eax
jne 0x402d2e
xor eax, eax
jmp 0x4030b9
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x402d54
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4030b9
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
add eax, 0xf8
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402160
add esp, 8
test eax, eax
jne 0x402d77
xor eax, eax
jmp 0x4030b9
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x402da0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4030b9
mov edx, dword [ebp - 8]
movzx eax, word [edx + 4]
cmp eax, 0x14c
je 0x402dc0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4030b9
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x38]
and edx, 1
je 0x402ddd
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4030b9
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x18], 0
jmp 0x402e12
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x18], eax
jae 0x402e54
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0
jne 0x402e35
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
jmp 0x402e44
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x10]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jbe 0x402e52
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
jmp 0x402e00
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
push edx
call fcn.004025a0
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004025a0
add esp, 8
cmp dword [ebp - 0x24], eax
je 0x402e86
xor eax, eax
jmp 0x4030b9
mov edx, dword [ebp + 0x24]
push edx
push 4
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
push edx
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402ed2
mov eax, dword [ebp + 0x24]
push eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x24]
push ecx
push 0
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402ed2
xor eax, eax
jmp 0x4030b9
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
je 0x402ef3
mov dword [ebp - 0x28], 1
jmp 0x402efa
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x20]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x5c]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402160
add esp, 8
test eax, eax
jne 0x402f63
jmp 0x4030b7
mov ecx, dword [ebp + 0x24]
push ecx
push 4
push 0x1000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040b430
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402180
add esp, 0x10
test eax, eax
jne 0x402fd8
jmp 0x4030b7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0x34]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x30], ecx
je 0x403003
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004027f0
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
jmp 0x40300d
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 4]
push eax
call fcn.00402900
add esp, 4
test eax, eax
jne 0x403027
jmp 0x4030b7
mov ecx, dword [ebp - 4]
push ecx
call fcn.004025d0
add esp, 4
test eax, eax
jne 0x40303b
jmp 0x4030b7
mov edx, dword [ebp - 4]
push edx
call fcn.00402770
add esp, 4
test eax, eax
jne 0x40304f
jmp 0x4030b7
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x4030a8
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
je 0x403095
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x38], edx
push 0
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x403089
jmp 0x4030b7
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 1
jmp 0x4030a6
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], ecx
jmp 0x4030b2
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 4]
jmp 0x4030b9
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret