Function at 0x180158950
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 [0x1802e4d90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
jne 0x180158986
jmp 0x180158ba4
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
and eax, 0xc0
test eax, eax
jne 0x1801589a1
mov byte [rsp + 0x20], 1
jmp 0x1801589a6
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1801589cd
mov rax, qword [rsp + 0x80]
vmovss xmm0, dword [rax + 0x50]
vmovss dword [rsp + 0x38], xmm0
jmp 0x1801589d7
vxorps xmm0, xmm0, xmm0
vmovss dword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x80]
vmovss xmm0, dword [rax + 0x2c]
vsubss xmm0, xmm0, dword [rsp + 0x38]
vmovss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x88]
vmovss xmm0, dword [rsp + 0x2c]
vaddss xmm0, xmm0, dword [rax + 0x10]
vcomiss xmm0, dword [rsp + 0x90]
jbe 0x180158a18
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x180158a20
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 rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.18017c610
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 0x180158a6d
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 0x180158b76
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jge 0x180158b76
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call fcn.1801219c0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0x20
test eax, eax
je 0x180158ac0
jmp 0x180158b76
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 0x180158ae7
jmp 0x180158b76
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
vmovss xmm0, dword [rsp + 0x2c]
vaddss xmm0, xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x50]
vsubss xmm0, xmm0, dword [rax + 0x15c4]
vmovss dword [rsp + 0x48], xmm0
mov rax, qword [rsp + 0x40]
vmovss xmm0, dword [rsp + 0x2c]
vaddss xmm0, xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
vaddss xmm0, xmm0, dword [rax + 0x14]
mov rax, qword [rsp + 0x50]
vaddss xmm0, xmm0, dword [rax + 0x15c4]
vmovss dword [rsp + 0x4c], xmm0
cmp dword [rsp + 0x30], 0
jge 0x180158b57
vmovss xmm0, dword [rsp + 0x90]
vcomiss xmm0, dword [rsp + 0x48]
ja 0x180158b6f
cmp dword [rsp + 0x30], 0
jle 0x180158b71
vmovss xmm0, dword [rsp + 0x90]
vcomiss xmm0, dword [rsp + 0x4c]
jae 0x180158b71
jmp 0x180158b76
jmp 0x180158a5d
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x34], eax
je 0x180158ba4
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.180158910
add rsp, 0x78
ret