Function at 0x100274e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x708
mov dword [ebp - 4], 0
push 0x40
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.10041b7e
add esp, 0xc
movzx edx, word [ebp - 0x80]
cmp edx, 0x5a4d
jne 0x1002779c
cmp dword [ebp - 0x44], 0x40
jbe 0x1002753e
mov eax, dword [ebp - 0x44]
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 - 0x708]
push ecx
call fcn.10041b7e
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x10], edx
push 0xf8
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.10041b7e
add esp, 0xc
cmp dword [ebp - 0x178], 0x4550
jne 0x1002779c
movzx edx, word [ebp - 0x172]
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 - 0x308]
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 - 0x128]
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 0x1002779c
push 0x40
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10041b7e
add esp, 0xc
push 0xf8
lea edx, [ebp - 0x178]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x44]
push eax
call fcn.10041b7e
add esp, 0xc
movzx ecx, word [ebp - 0x172]
imul edx, ecx, 0x28
push edx
mov eax, 0x28
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x308]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0xf8]
push edx
call fcn.10041b7e
add esp, 0xc
cmp dword [ebp - 0x44], 0x40
jbe 0x10027663
mov eax, dword [ebp - 0x44]
sub eax, 0x40
push eax
mov ecx, 1
imul edx, ecx, 0
lea eax, [ebp + edx - 0x708]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x40
push ecx
call fcn.10041b7e
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x10027675
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, word [ebp - 0x172]
cmp dword [ebp - 8], eax
jge 0x100276bb
imul ecx, dword [ebp - 8], 0x28
mov edx, dword [ebp + 8]
add edx, dword [ebp + ecx - 0x2f4]
mov dword [ebp - 0x20], edx
imul eax, dword [ebp - 8], 0x28
mov ecx, dword [ebp + eax - 0x2f8]
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 - 0x2fc]
push ecx
call fcn.10041b7e
add esp, 0xc
jmp 0x1002766c
mov edx, dword [ebp - 4]
push edx
call fcn.1002a8d0
add esp, 4
test eax, eax
jne 0x100276ff
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 0x1002779c
mov ecx, dword [ebp - 4]
push ecx
call fcn.10025f70
add esp, 4
test eax, eax
jne 0x10027740
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 0x1002779c
movzx eax, word [ebp - 0x162]
and eax, 0x2000
jne 0x1002775a
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
movzx eax, word [ebp - 0x162]
and eax, 0x2000
je 0x1002778d
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x150]
mov dword [ebp - 0x3c], ecx
push 0
push 1
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 0x3c]
jmp 0x1002779c
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x150]
mov dword [ebp - 0x40], eax
call dword [ebp - 0x40]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4