Function at 0x10001530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x10001553
xor eax, eax
jmp 0x1000170e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x10001571
xor eax, eax
jmp 0x1000170e
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp + 0xc]
call dword [ecx + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100015ae
push 4
push 0x2000
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x50]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call dword [ecx + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100015bb
xor eax, eax
jmp 0x1000170e
mov edx, dword [ebp + 0xc]
push edx
push 0x14
call fcn.100010a0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
push 4
push 0x1000
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
call dword [edx + 8]
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
call dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x54]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10001000
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10001130
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x10001691
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10001300
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10001380
test eax, eax
jne 0x100016a4
jmp 0x1000170c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.100011f0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x100016f2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x28]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x100016d2
jmp 0x1000170a
push 0
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100016e8
jmp 0x10001708
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 1
mov eax, dword [ebp - 4]
jmp 0x1000170e
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.100014b0
xor eax, eax
jmp 0x1000170e
jmp 0x100016f7
jmp 0x100016f7
jmp 0x100016f7
mov esp, ebp
pop ebp
ret 8