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

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rbx, qword [0x1801f6110]
xor esi, esi
xor r15b, r15b
mov edi, esi
mov eax, dword [rbx + 0x1b78]
sub eax, 1
js 0x180016def
mov r8, qword [rbx + 0x1b80]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x180016de5
test dword [rax + 0xc], 0x8000000
jne 0x180016e7b
sub r8, 0x30
sub rdx, 1
jns 0x180016dd0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
movaps xmmword [rsp + 0x30], xmm6
xorps xmm6, xmm6
cmp qword [rbx + 0x1be8], rsi
je 0x180016e4d
cmp qword [rbx + 0x1be0], rsi
jne 0x180016e4d
comiss xmm6, dword [rbx + 0x1d50]
movss xmm1, dword [rbx + 0x1bfc]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1801eb08c]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1bfc], xmm1
jb 0x180016e4d
comiss xmm6, xmm1
jb 0x180016e4d
mov qword [rbx + 0x1be8], rsi
mov r9, qword [rbx + 0x1be0]
mov r12d, 1
mov qword [rsp + 0x50], rbp
test r9, r9
jne 0x180016e8c
mov edx, r12d
lea ecx, [r9 + 3]
call fcn.180015270
comiss xmm0, xmm6
jbe 0x180016e8c
movzx r8d, dl
jmp 0x180016e94
mov qword [rbx + 0x1be0], rsi
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
xor r8b, r8b
test r9, r9
jne 0x180016eb9
cmp byte [rbx + 0x148], sil
je 0x180016eb9
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x180016eb9
call fcn.18000e490
test al, al
je 0x180016eb9
test byte [rbx + 8], r12b
je 0x180016eb9
movzx ebp, r12b
jmp 0x180016ebc
xor bpl, bpl
mov r14d, 0xffffffff
test r8b, r8b
jne 0x180016ecc
test bpl, bpl
je 0x180016f1d
mov rax, qword [rbx + 0x1b98]
test rax, rax
jne 0x180016ef2
mov ecx, dword [rbx + 0x19f0]
mov r8d, r14d
dec ecx
mov edx, 0x80000001
call fcn.180016bb0
test rax, rax
je 0x180016f1d
xor bpl, r12b
mov qword [rbx + 0x1be8], rax
mov qword [rbx + 0x1be0], rax
movzx eax, bpl
mov byte [rbx + 0x1c00], al
add eax, 3
mov dword [rbx + 0x1bc4], eax
mov qword [rbx + 0x1bf8], rsi
movss xmm1, dword [rbx + 0x1bf8]
mov r10, qword [rbx + 0x1be0]
mov r8, r10
addss xmm1, dword [rbx + 0x18]
movss dword [rbx + 0x1bf8], xmm1
test r10, r10
je 0x180017044
cmp dword [rbx + 0x1bc4], 4
jne 0x180017044
subss xmm1, dword [0x1801eafb4]
lea rcx, [rsp + 0x80]
divss xmm1, dword [0x1801eafa8]
call fcn.180008520
lea rcx, [rsp + 0x80]
comiss xmm0, xmm1
jbe 0x180016f83
call fcn.180008520
jmp 0x180016f9a
call fcn.180008540
comiss xmm1, xmm0
jbe 0x180016f9d
lea rcx, [rsp + 0x80]
call fcn.180008540
movaps xmm1, xmm0
movss xmm5, dword [rbx + 0x1bfc]
mov edx, 4
maxss xmm5, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1bfc], xmm5
call fcn.180015270
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.180015270
movss xmm1, dword [0x1801eaff8]
mov ecx, esi
comiss xmm0, xmm6
mov r8, r10
seta cl
sub ecx, r9d
je 0x180017001
call fcn.180016c40
mov r8, qword [rbx + 0x1be0]
movaps xmm5, xmm1
mov dword [rbx + 0x1bfc], 0x3f800000
movss xmm0, dword [rbx + 0x358]
comiss xmm0, xmm6
ja 0x180017044
comiss xmm1, xmm5
seta al
and byte [rbx + 0x1c00], al
je 0x180017035
cmp qword [rbx + 0x1b98], rsi
je 0x180017038
movzx r15d, r12b
mov qword [rbx + 0x1be0], rsi
jmp 0x1800170f6
mov rdi, r8
mov qword [rbx + 0x1be0], rsi
jmp 0x1800170f6
test r8, r8
je 0x1800170f6
cmp dword [rbx + 0x1bc4], 3
jne 0x1800170f6
movss xmm1, dword [rbx + 0x1bf8]
lea rcx, [rsp + 0x80]
subss xmm1, dword [0x1801eafb4]
divss xmm1, dword [0x1801eafa8]
call fcn.180008520
lea rcx, [rsp + 0x80]
comiss xmm0, xmm1
jbe 0x180017093
call fcn.180008520
jmp 0x1800170aa
call fcn.180008540
comiss xmm1, xmm0
jbe 0x1800170ad
lea rcx, [rsp + 0x80]
call fcn.180008540
movaps xmm1, xmm0
movss xmm0, dword [rbx + 0x1bfc]
maxss xmm0, xmm1
movss dword [rbx + 0x1bfc], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x1800170eb
call fcn.18000e490
test al, al
je 0x1800170eb
cmp byte [rbx + 0x149], sil
cmovne r14d, r12d
mov ecx, r14d
call fcn.180016c40
mov r8, qword [rbx + 0x1be0]
cmp byte [rbx + 0x148], sil
cmove rdi, r8
mov edx, r12d
mov ecx, 0x10
call fcn.180015270
comiss xmm0, xmm6
mov r14, qword [rsp + 0x40]
jbe 0x180017113
mov byte [rbx + 0x1c00], dl
cmp dword [rbx + 0x1a80], esi
je 0x180017128
cmp byte [rbx + 0x1a8d], sil
je 0x1800171b5
cmp byte [rbx + 0x1c00], sil
je 0x1800171b5
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.180015270
comiss xmm0, xmm6
jbe 0x1800171b5
lea rax, [rbx + 0x3cc]
test rax, rax
jne 0x18001715a
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
movss xmm1, dword [0x1801eb130]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x18001717b
comiss xmm2, xmm1
jb 0x18001717b
movzx ecx, r12b
jmp 0x18001717d
xor cl, cl
lea rax, [rbx + 0x130]
test rax, rax
jne 0x180017190
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x1800171a9
comiss xmm2, xmm1
jb 0x1800171a9
movzx eax, r12b
jmp 0x1800171ab
xor al, al
cmp al, cl
movzx r15d, r15b
cmove r15d, r12d
mov r11, qword [rbx + 0x1be0]
test r11, r11
je 0x1800172c1
test byte [r11 + 0xc], 4
jne 0x1800172c1
mov eax, dword [rbx + 0x1bc4]
cmp eax, 3
jne 0x1800171f5
cmp byte [rbx + 0x149], sil
jne 0x1800172c1
mov edx, r12d
lea rcx, [rsp + 0x88]
jmp 0x180017208
cmp eax, 4
jne 0x1800172c1
mov edx, eax
lea rcx, [rsp + 0x90]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm6
call fcn.180015400
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x180017231
jne 0x180017231
ucomiss xmm4, xmm6
jp 0x180017231
je 0x1800172c1
movss xmm1, dword [rbx + 0xc0]
lea rdx, [rsp + 0x80]
movss xmm0, dword [rbx + 0x18]
mov r8d, r12d
minss xmm1, dword [rbx + 0xc4]
mov rcx, qword [r11 + 0x360]
mulss xmm0, dword [0x1801eb0e8]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm2
mulss xmm4, xmm2
addss xmm3, dword [rcx + 0x10]
addss xmm4, dword [rcx + 0x14]
movss dword [rsp + 0x80], xmm3
movss dword [rsp + 0x84], xmm4
call fcn.180013750
mov rax, qword [rbx + 0x1be0]
mov byte [rbx + 0x1c0f], r8b
test dword [rax + 0xc], 0x100
jne 0x1800172c1
comiss xmm6, dword [rbx + 0x2f08]
jb 0x1800172c1
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2f08], eax
movaps xmm6, xmmword [rsp + 0x30]
test rdi, rdi
je 0x1800173cc
mov rax, qword [rbx + 0x1b98]
test rax, rax
je 0x1800172e8
cmp rdi, qword [rax + 0x360]
je 0x1800173c5
mov ecx, dword [rbx + 0x1a80]
test ecx, ecx
setne al
mov byte [rbx + 0x1a8c], al
test ecx, ecx
je 0x18001730a
mov dword [rbx + 0x1a88], esi
mov word [rbx + 0x1a8e], si
mov dword [rbx + 0x1a80], esi
mov qword [rbx + 0x1a94], rsi
mov byte [rbx + 0x1a8d], sil
mov qword [rbx + 0x1aa8], rsi
mov byte [rbx + 0x1a90], sil
mov word [rbx + 0x1c0e], 0x100
mov rax, qword [rdi + 0x378]
test rax, rax
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.180014030
mov rcx, rdi
call fcn.180013430
mov eax, dword [rdi + 0x380]
test eax, eax
jne 0x1800173b5
test dword [rdi + 0xc], 0x40000
mov rdx, qword [0x1801f6110]
jne 0x1800173af
movsxd rcx, dword [rdx + 0x1c04]
mov rax, qword [rdx + 0x1b98]
movaps xmm0, xmmword [0x1801eb760]
mov dword [rdx + 0x1ba0], esi
mov dword [rax + rcx*4 + 0x380], esi
mov word [rdx + 0x1c11], r12w
mov dword [rdx + 0x1c14], esi
movups xmmword [rdx + 0x1c18], xmm0
mov byte [rdx + 0x1c10], r12b
jmp 0x1800173b5
mov dword [rdx + 0x1ba0], eax
cmp dword [rdi + 0x140], 2
jne 0x1800173c5
mov dword [rbx + 0x1c04], r12d
mov qword [rbx + 0x1be0], rsi
mov r12, qword [rsp + 0x48]
test r15b, r15b
je 0x180017455
mov rbp, qword [rbx + 0x1b98]
test rbp, rbp
je 0x180017455
lea rcx, [rbp + 0x358]
mov rdi, rbp
cmp qword [rcx], rsi
je 0x18001742c
test byte [rdi + 0x140], 2
jne 0x180017418
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x180017418
mov rdi, qword [rcx]
lea rcx, [rdi + 0x358]
cmp qword [rcx], rsi
jne 0x1800173f1
cmp rdi, rbp
je 0x18001742c
mov rcx, rdi
call fcn.180013430
mov qword [rdi + 0x378], rbp
mov rax, qword [rbx + 0x1b98]
mov word [rbx + 0x1c0e], 0x100
test byte [rax + 0x140], 2
je 0x18001744e
mov esi, dword [rbx + 0x1c04]
xor esi, 1
mov ecx, esi
call fcn.180015070
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret