Function at 0x100018e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.10001180
test eax, eax
jne 0x100018f6
xor eax, eax
jmp 0x10001ad7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10001911
xor eax, eax
jmp 0x10001ad7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x4550
je 0x1000192f
xor eax, eax
jmp 0x10001ad7
push 4
push 0x2000
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x34]
push eax
call dword [0x10005490]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001979
push 4
push 0x2000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [0x10005490]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001979
xor eax, eax
jmp 0x10001ad7
push 4
push 0x1000
push 0x50
push 0
call dword [0x10005490]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100019ab
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x1000548c]
xor eax, eax
jmp 0x10001ad7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], 0
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x10005490]
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x10005490]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x54]
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.100013b0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10001400
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0x18], edx
je 0x10001a63
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10001680
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.10001760
add esp, 4
test eax, eax
jne 0x10001a77
jmp 0x10001ac9
mov eax, dword [ebp - 4]
push eax
call fcn.10001500
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x10001ac4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x1c], edx
jne 0x10001aa2
jmp 0x10001ac9
push 0
push 1
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10001aba
jmp 0x10001ac9
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], 1
mov eax, dword [ebp - 4]
jmp 0x10001ad7
mov edx, dword [ebp - 4]
push edx
call fcn.10001be0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret