Function at 0x18000d9e0
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 0x18000dc4c
call fcn.18002cca0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x1000
test eax, eax
je 0x18000db95
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000da57
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 0x18000da9d
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000dacf
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 0x18000da93
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18000db07
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000db07
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x3c], 0x400
jb 0x18000db0c
jmp 0x18000da47
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
add rax, 0xf8
mov dword [rsp + 0x44], eax
jmp 0x18000db2a
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000db5c
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 0x18000db20
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 0x18000db89
jmp 0x18000da47
jmp 0x18000db90
jmp 0x18000dc24
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000dbbc
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 0x18000dbf1
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000dbf1
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x3c], 0x400
jb 0x18000dbf3
jmp 0x18000dbac
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 0x18000dc20
jmp 0x18000dbac
jmp 0x18000dc24
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 0x18000dd11
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0xf000
test eax, eax
je 0x18000dd11
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
je 0x18000dca4
mov byte [rsp + 0x35], 1
jmp 0x18000dca9
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.18000bce0
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 0x18000dcf0
mov eax, 0xffffffff
jmp 0x18000e042
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
movzx eax, byte [rax]
cmp eax, 0x4d
je 0x18000dd11
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 0x18000df21
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 0x18000ddfe
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 0x18000ddfe
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
add rax, qword [rsp + 0x98]
cmp qword [rsp + 0x80], rax
jae 0x18000ddfe
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 0x18000defe
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 0x18000dedb
mov rax, qword [rsp + 0x8f8]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
cmp dword [rsp + 0x40], 0
je 0x18000defc
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x8d8]
add rax, qword [rcx]
lea rcx, [rsp + 0x8d8]
mov qword [rcx], rax
jmp 0x18000df21
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 0x18000df5d
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0xa0], 0
je 0x18000df5d
mov rax, qword [rsp + 0x8e0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000d400
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x200
test eax, eax
je 0x18000e040
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x80], 0
je 0x18000e040
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.18000e740
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.18000eec0
test eax, eax
jge 0x18000e040
mov eax, 0xfffffffe
jmp 0x18000e042
xor eax, eax
add rsp, 0x8c8
pop rdi
pop rsi
ret