Function at 0x10015af0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018a18
push 0x100174a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10015b34
xor eax, eax
jmp 0x10015d30
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx], 0x4550
je 0x10015b52
xor eax, eax
jmp 0x10015d30
push 4
push 0x2000
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x34]
push eax
call section..text
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10015b97
push 4
push 0x2000
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
push eax
push 0
call section..text
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10015ba4
xor eax, eax
jmp 0x10015d30
push 0x14
push 0
call section..text
mov edx, dword [eax + 0xa8]
call edx
push eax
call section..text
mov eax, dword [eax + 0x9c]
call eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0
push 0x1000
push 0
call section..text
mov ecx, dword [eax + 0xa8]
call ecx
push eax
call section..text
mov edx, dword [eax + 0x9c]
call edx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call section..text
mov eax, dword [eax + 0x14]
call eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x24]
push eax
call section..text
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x54]
push eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
call fcn.10013cd0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
call fcn.100161d0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x38], ecx
je 0x10015c9f
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
call fcn.10015f50
mov ecx, dword [ebp - 0x20]
call fcn.10015d50
test eax, eax
jne 0x10015cad
jmp 0x10015d26
mov ecx, dword [ebp - 0x20]
call fcn.10016040
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp dword [eax + 0x28], 0
je 0x10015d21
mov byte [ebp - 0x19], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
push 0
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [ebp - 0x3c]
test eax, eax
jne 0x10015cec
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x10015d0d
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x10015d17
jmp 0x10015d26
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x10], 1
mov eax, dword [ebp - 0x20]
jmp 0x10015d30
mov ecx, dword [ebp - 0x20]
call fcn.10015900
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret