Function at 0x18000e050
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 0x18000e2bc
call fcn.18002cca0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x1000
test eax, eax
je 0x18000e205
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000e0c7
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 0x18000e10d
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000e13f
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
movzx edx, byte [rsp + 0x34]
movzx ecx, byte [rsp + rax + 0xc0]
call fcn.180017b50
mov ecx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0xc0], al
jmp 0x18000e103
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18000e177
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000e177
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x3c], 0x400
jb 0x18000e17c
jmp 0x18000e0b7
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
add rax, 0x108
mov dword [rsp + 0x44], eax
jmp 0x18000e19a
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000e1cc
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
movzx edx, byte [rsp + 0x34]
movzx ecx, byte [rsp + rax + 0xc0]
call fcn.180017b50
mov ecx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0xc0], al
jmp 0x18000e190
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 0x18000e1f9
jmp 0x18000e0b7
jmp 0x18000e200
jmp 0x18000e294
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000e22c
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 0x18000e261
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000e261
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x3c], 0x400
jb 0x18000e263
jmp 0x18000e21c
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 0x18000e290
jmp 0x18000e21c
jmp 0x18000e294
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 0x18000e381
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0xf000
test eax, eax
je 0x18000e381
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
je 0x18000e314
mov byte [rsp + 0x35], 1
jmp 0x18000e319
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.18000c610
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 0x18000e360
mov eax, 0xffffffff
jmp 0x18000e6b2
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
movzx eax, byte [rax]
cmp eax, 0x4d
je 0x18000e381
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 0x18000e591
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 0x18000e46e
call fcn.18002cca0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000bbe0
mov eax, eax
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
cmp qword [rsp + 0x80], rax
jb 0x18000e46e
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
add rax, qword [rsp + 0x98]
cmp qword [rsp + 0x80], rax
jae 0x18000e46e
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 0x18000e56e
lea rax, [fcn.180027e30]
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 0x18000e54b
mov rax, qword [rsp + 0x8f8]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
cmp dword [rsp + 0x40], 0
je 0x18000e56c
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x8d8]
add rax, qword [rcx]
lea rcx, [rsp + 0x8d8]
mov qword [rcx], rax
jmp 0x18000e591
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.180027e30
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x400
test eax, eax
je 0x18000e5cd
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0xb0], 0
je 0x18000e5cd
mov rax, qword [rsp + 0x8e0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000d6f0
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x200
test eax, eax
je 0x18000e6b0
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x90], 0
je 0x18000e6b0
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.18000eb00
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.18000f2b0
test eax, eax
jge 0x18000e6b0
mov eax, 0xfffffffe
jmp 0x18000e6b2
xor eax, eax
add rsp, 0x8c8
pop rdi
pop rsi
ret