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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
mov eax, dword [rax + rcx]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov rcx, rax
call fcn.14009b520
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14009ac9c
mov eax, dword [rsp + 0x34]
and eax, 0xfffe
cdqe
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
or eax, 1
cdqe
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
add eax, dword [rsp + 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], eax
jmp 0x14009aad9
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x14009ac4b
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0
jne 0x14009aafa
mov dword [rsp + 0x38], 1
jmp 0x14009ab41
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x18], 0
jne 0x14009ab10
mov dword [rsp + 0x38], 0xffffffff
jmp 0x14009ab41
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0x14]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.14009d040
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x14009ab5b
cmp dword [rsp + 0x38], 0
jne 0x14009abce
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x48], rax
jae 0x14009abce
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
cqo
mov ecx, 0x50
idiv rcx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x30]
xor eax, 1
cdqe
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
movsxd rax, dword [rcx + rax*4]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x58], rax
jmp 0x14009ac46
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0
je 0x14009abe3
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
cqo
mov ecx, 0x50
idiv rcx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x30]
xor eax, 1
cdqe
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
movsxd rax, dword [rcx + rax*4]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x14009aacc
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
movsxd rax, dword [rcx + rax]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax + 0x18], 0
jne 0x14009ac86
mov dword [rsp + 0x50], 1
jmp 0x14009ac8e
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
cmp dword [rsp + 0x3c], 0
jne 0x14009acb6
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
movzx eax, byte [rax + 0xb]
mov dword [rsp + 0x54], eax
jmp 0x14009acbe
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
add rsp, 0x78
ret