Function at 0x10027240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x700
mov dword [ebp - 4], 0
push 0x40
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.10041b7e
add esp, 0xc
movzx edx, word [ebp - 0x78]
cmp edx, 0x5a4d
jne 0x100274d5
cmp dword [ebp - 0x3c], 0x40
jbe 0x1002729e
mov eax, dword [ebp - 0x3c]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
mov edx, 1
imul eax, edx, 0
lea ecx, [ebp + eax - 0x700]
push ecx
call fcn.10041b7e
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edx
push 0xf8
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x170]
push ecx
call fcn.10041b7e
add esp, 0xc
cmp dword [ebp - 0x170], 0x4550
jne 0x100274d5
movzx edx, word [ebp - 0x16a]
imul eax, edx, 0x28
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
push ecx
mov edx, 0x28
imul eax, edx, 0
lea ecx, [ebp + eax - 0x300]
push ecx
call fcn.10041b7e
add esp, 0xc
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x18], 0x103000
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 9]
call fcn.10004370
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100274d5
push 0x40
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10041b7e
add esp, 0xc
push 0xf8
lea edx, [ebp - 0x170]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x3c]
push eax
call fcn.10041b7e
add esp, 0xc
movzx ecx, word [ebp - 0x16a]
imul edx, ecx, 0x28
push edx
mov eax, 0x28
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x300]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0xf8]
push edx
call fcn.10041b7e
add esp, 0xc
cmp dword [ebp - 0x3c], 0x40
jbe 0x100273c3
mov eax, dword [ebp - 0x3c]
sub eax, 0x40
push eax
mov ecx, 1
imul edx, ecx, 0
lea eax, [ebp + edx - 0x700]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x40
push ecx
call fcn.10041b7e
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x100273d5
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, word [ebp - 0x16a]
cmp dword [ebp - 8], eax
jge 0x1002741b
imul ecx, dword [ebp - 8], 0x28
mov edx, dword [ebp + 8]
add edx, dword [ebp + ecx - 0x2ec]
mov dword [ebp - 0x20], edx
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp + eax - 0x2f0]
push ecx
mov edx, dword [ebp - 0x20]
push edx
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + eax - 0x2f4]
push ecx
call fcn.10041b7e
add esp, 0xc
jmp 0x100273cc
mov edx, dword [ebp - 4]
push edx
call fcn.1002a8d0
add esp, 4
test eax, eax
jne 0x1002745c
mov dword [ebp - 0x24], 0x8000
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa]
call fcn.10004920
mov dword [ebp - 4], 0
jmp 0x100274d5
mov ecx, dword [ebp - 4]
push ecx
call fcn.10025dc0
add esp, 4
test eax, eax
jne 0x1002749d
mov dword [ebp - 0x30], 0x8000
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0xb]
call fcn.10004920
mov dword [ebp - 4], 0
jmp 0x100274d5
movzx eax, word [ebp - 0x15a]
and eax, 0x2000
jne 0x100274b7
mov ecx, dword [ebp - 4]
push ecx
call fcn.1002a8b0
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.100269e0
add esp, 4
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 4]
push 0
push 1
push dword [ebp - 4]
call eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4