Function at 0x18000e060
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x8c8
mov rax, qword [rsp + 0x8e0]
cmp qword [rax], 0
jne 0x18000e2cc
call fcn.18002c670
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x1000
test eax, eax
je 0x18000e215
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000e0d7
mov rax, qword [rsp + 0x38]
sub rax, 0x1000
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0xff
mov byte [rsp + 0x34], al
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x44], 0x40
lea rax, [rsp + 0xc0]
mov rdi, rax
mov rsi, qword [rsp + 0x38]
mov ecx, 0x400
rep movsb byte [rdi], byte [rsi]
jmp 0x18000e11d
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000e14f
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
movzx edx, byte [rsp + 0x34]
movzx ecx, byte [rsp + rax + 0xc0]
call fcn.180017b70
mov ecx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0xc0], al
jmp 0x18000e113
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18000e187
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000e187
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x3c], 0x400
jb 0x18000e18c
jmp 0x18000e0c7
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
add rax, 0x108
mov dword [rsp + 0x44], eax
jmp 0x18000e1aa
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000e1dc
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
movzx edx, byte [rsp + 0x34]
movzx ecx, byte [rsp + rax + 0xc0]
call fcn.180017b70
mov ecx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0xc0], al
jmp 0x18000e1a0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
lea rax, [rsp + rax + 0xc0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0x4550
je 0x18000e209
jmp 0x18000e0c7
jmp 0x18000e210
jmp 0x18000e2a4
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000e23c
mov rax, qword [rsp + 0x38]
sub rax, 0x1000
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18000e271
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000e271
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x3c], 0x400
jb 0x18000e273
jmp 0x18000e22c
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0x4550
je 0x18000e2a0
jmp 0x18000e22c
jmp 0x18000e2a4
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
bts eax, 0x13
mov rcx, qword [rsp + 0x8f0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0xff
test eax, eax
je 0x18000e391
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0xf000
test eax, eax
je 0x18000e391
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
je 0x18000e324
mov byte [rsp + 0x35], 1
jmp 0x18000e329
mov byte [rsp + 0x35], 0
movzx r8d, byte [rsp + 0x35]
mov rax, qword [rsp + 0x8f0]
mov edx, dword [rax]
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000c620
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x8e0]
mov rcx, qword [rcx]
movzx eax, byte [rcx + rax]
cmp eax, 0x5a
je 0x18000e370
mov eax, 0xffffffff
jmp 0x18000e6c2
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
movzx eax, byte [rax]
cmp eax, 0x4d
je 0x18000e391
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
mov byte [rax], 0x4d
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x8e0]
mov rcx, qword [rcx]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
je 0x18000e5a1
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x3c]
add ecx, eax
mov eax, ecx
mov eax, eax
add rax, 0x18
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 6]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x80000
test eax, eax
jne 0x18000e47e
call fcn.18002c670
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000bbf0
mov eax, eax
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
cmp qword [rsp + 0x80], rax
jb 0x18000e47e
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
add rax, qword [rsp + 0x98]
cmp qword [rsp + 0x80], rax
jae 0x18000e47e
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
bts eax, 0x13
mov rcx, qword [rsp + 0x8f0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x80000
test eax, eax
je 0x18000e57e
lea rax, [fcn.1800279e0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
lea rcx, [rsp + 0x4c0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x400
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
mov rdi, rax
mov rsi, qword [rsp + 0xa0]
mov ecx, 0x400
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x4c0]
mov rax, qword [rsp + 0x8e0]
mov r8, qword [rax]
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x5c]
call qword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
lea rcx, [rsp + 0x4c0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x400
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x8f8], 0
je 0x18000e55b
mov rax, qword [rsp + 0x8f8]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
cmp dword [rsp + 0x40], 0
je 0x18000e57c
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x8d8]
add rax, qword [rcx]
lea rcx, [rsp + 0x8d8]
mov qword [rcx], rax
jmp 0x18000e5a1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0x8e0]
mov r8, qword [rax]
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x5c]
call fcn.1800279e0
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x400
test eax, eax
je 0x18000e5dd
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0xb0], 0
je 0x18000e5dd
mov rax, qword [rsp + 0x8e0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000d700
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x200
test eax, eax
je 0x18000e6c0
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x90], 0
je 0x18000e6c0
mov dword [rsp + 0x48], 0xb38d9bb3
mov dword [rsp + 0x4c], 0xbb9b9e90
mov dword [rsp + 0x50], 0xffff9393
mov eax, 4
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x48]
not eax
mov ecx, 4
imul rcx, rcx, 0
mov dword [rsp + rcx + 0x48], eax
mov eax, 4
imul rax, rax, 1
mov eax, dword [rsp + rax + 0x48]
not eax
mov ecx, 4
imul rcx, rcx, 1
mov dword [rsp + rcx + 0x48], eax
mov eax, 4
imul rax, rax, 2
mov eax, dword [rsp + rax + 0x48]
not eax
mov ecx, 4
imul rcx, rcx, 2
mov dword [rsp + rcx + 0x48], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x8e8]
call fcn.18000eb10
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x8f0]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000f2c0
test eax, eax
jge 0x18000e6c0
mov eax, 0xfffffffe
jmp 0x18000e6c2
xor eax, eax
add rsp, 0x8c8
pop rdi
pop rsi
ret