Function at 0x18000d9f0
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 0x18000dc5c
call fcn.18002c670
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x1000
test eax, eax
je 0x18000dba5
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000da67
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 0x18000daad
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000dadf
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 0x18000daa3
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18000db17
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000db17
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x3c], 0x400
jb 0x18000db1c
jmp 0x18000da57
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
add rax, 0xf8
mov dword [rsp + 0x44], eax
jmp 0x18000db3a
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x18000db6c
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 0x18000db30
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 0x18000db99
jmp 0x18000da57
jmp 0x18000dba0
jmp 0x18000dc34
mov eax, 0xfffff000
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x18000dbcc
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 0x18000dc01
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jb 0x18000dc01
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x3c], 0x400
jb 0x18000dc03
jmp 0x18000dbbc
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 0x18000dc30
jmp 0x18000dbbc
jmp 0x18000dc34
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 0x18000dd21
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0xf000
test eax, eax
je 0x18000dd21
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x100
test eax, eax
je 0x18000dcb4
mov byte [rsp + 0x35], 1
jmp 0x18000dcb9
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.18000bcf0
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 0x18000dd00
mov eax, 0xffffffff
jmp 0x18000e052
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
movzx eax, byte [rax]
cmp eax, 0x4d
je 0x18000dd21
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 0x18000df31
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 0x18000de0e
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 0x18000de0e
mov rax, qword [rsp + 0x8e0]
mov rax, qword [rax]
add rax, qword [rsp + 0x98]
cmp qword [rsp + 0x80], rax
jae 0x18000de0e
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 0x18000df0e
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 0x18000deeb
mov rax, qword [rsp + 0x8f8]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
cmp dword [rsp + 0x40], 0
je 0x18000df0c
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x8d8]
add rax, qword [rcx]
lea rcx, [rsp + 0x8d8]
mov qword [rcx], rax
jmp 0x18000df31
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 0x18000df6d
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0xa0], 0
je 0x18000df6d
mov rax, qword [rsp + 0x8e0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x8e0]
mov rcx, qword [rax]
call fcn.18000d410
mov rax, qword [rsp + 0x8f0]
mov eax, dword [rax]
and eax, 0x200
test eax, eax
je 0x18000e050
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x80], 0
je 0x18000e050
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.18000e750
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.18000eed0
test eax, eax
jge 0x18000e050
mov eax, 0xfffffffe
jmp 0x18000e052
xor eax, eax
add rsp, 0x8c8
pop rdi
pop rsi
ret