Function at 0x18009e5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0xe80]
and eax, 0x40000
test eax, eax
je 0x18009e605
mov byte [rsp + 0x20], 1
jmp 0x18009e60a
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax*2]
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.1800201c0
mov dword [rsp + 0x40], eax
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x18009e67a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
mov ecx, dword [rsp + 0x40]
lea eax, [rcx + rax + 1]
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x44]
jle 0x18009e67a
xor al, al
jmp 0x18009e850
mov eax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x24]
lea eax, [rax + rcx + 1]
mov rcx, qword [rsp + 0x80]
cmp eax, dword [rcx + 0x10]
jle 0x18009e738
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x18009e6aa
xor al, al
jmp 0x18009e850
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x98], 0x100
jg 0x18009e6d2
mov dword [rsp + 0x28], 0x100
jmp 0x18009e6dd
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
shl eax, 2
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x20
jge 0x18009e6fc
mov dword [rsp + 0x3c], 0x20
jmp 0x18009e720
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jle 0x18009e710
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x38], eax
jmp 0x18009e718
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x3c]
lea eax, [rax + rcx + 1]
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.180048550
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x88], eax
je 0x18009e7b0
mov eax, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
cdqe
shl rax, 1
movsxd rcx, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
lea rcx, [rdx + rcx*2]
movsxd rdx, dword [rsp + 0x88]
mov r8, qword [rsp + 0x48]
lea rdx, [r8 + rdx*2]
movsxd r8, dword [rsp + 0x98]
lea rdx, [rdx + r8*2]
mov qword [rsp + 0x58], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x58]
mov rcx, rax
call fcn.1800be640
movsxd rax, dword [rsp + 0x98]
shl rax, 1
movsxd rcx, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
lea rcx, [rdx + rcx*2]
mov r8, rax
mov rdx, qword [rsp + 0x90]
call fcn.1800be640
mov rax, qword [rsp + 0x80]
mov byte [rax + 0xe7e], 1
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
add eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
xor edx, edx
mov word [rcx + rax*2], dx
mov al, 1
add rsp, 0x78
ret