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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x18010f810]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
jne 0x1800858b6
jmp 0x180085aec
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
and eax, 0xc0
test eax, eax
jne 0x1800858d1
mov byte [rsp + 0x20], 1
jmp 0x1800858d6
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1800858fd
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x50]
movss dword [rsp + 0x38], xmm0
jmp 0x180085906
xorps xmm0, xmm0
movss dword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x88]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
comiss xmm0, dword [rsp + 0x90]
jbe 0x180085946
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x18008594e
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
cqo
mov ecx, 0x28
idiv rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
jmp 0x1800859b3
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x180085abe
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jge 0x180085abe
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x68]
add rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0x20
test eax, eax
je 0x180085a0a
jmp 0x180085abe
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0xc0
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 4]
and ecx, 0xc0
cmp eax, ecx
je 0x180085a31
jmp 0x180085abe
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x50]
subss xmm0, dword [rax + 0x377c]
movss dword [rsp + 0x48], xmm0
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
addss xmm0, dword [rax + 0x14]
mov rax, qword [rsp + 0x50]
addss xmm0, dword [rax + 0x377c]
movss dword [rsp + 0x4c], xmm0
cmp dword [rsp + 0x30], 0
jge 0x180085aa0
movss xmm0, dword [rsp + 0x90]
comiss xmm0, dword [rsp + 0x48]
ja 0x180085ab7
cmp dword [rsp + 0x30], 0
jle 0x180085ab9
movss xmm0, dword [rsp + 0x4c]
comiss xmm0, dword [rsp + 0x90]
jbe 0x180085ab9
jmp 0x180085abe
jmp 0x1800859a3
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x34], eax
je 0x180085aec
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov r8d, eax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.180085850
add rsp, 0x78
ret