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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14015d080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [0x14015e270]
mov eax, dword [rbx + 0x4ac0]
sub eax, 1
js 0x140021d7d
mov r8, qword [rbx + 0x4ac8]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
nop dword [rax]
mov rcx, qword [r8]
test rcx, rcx
je 0x140021d73
test dword [rcx + 0x14], 0x8000000
je 0x140021d73
cmp byte [rcx + 0xbe], 0
je 0x140021d73
cmp byte [rcx + 0xc5], 0
je 0x140021d7f
sub r8, 0x38
sub rdx, 1
jns 0x140021d50
xor ecx, ecx
movss xmm1, dword [rbx + 0x4d1c]
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x140021d9c
comiss xmm0, dword [rbx + 0x4d04]
jae 0x1400220fb
mov r8, qword [rbx + 0x4cf0]
test r8, r8
je 0x140021db6
cmp byte [r8 + 0xbe], 0
je 0x140021db6
mov al, 1
jmp 0x140021db8
xor al, al
test rcx, rcx
jne 0x140022019
test al, al
je 0x1400220fb
movups xmm0, xmmword [rbx + 0x3d10]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x70], rsi
mulss xmm1, dword [rbx + 0x38f0]
mov qword [rsp + 0x78], rdi
movups xmmword [rsp + 0x40], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, xmm1
movss dword [rsp + 0x4c], xmm0
call fcn.14001be20
mov edx, eax
mov rcx, r8
call fcn.140021ac0
mov rsi, qword [rbx + 0x4cf0]
movss xmm1, dword [rbx + 0x3d60]
mov rax, qword [0x14015e270]
movss xmm5, dword [rsi + 0x28]
movss xmm4, dword [rsi + 0x2c]
movaps xmm3, xmm5
addss xmm5, dword [rsi + 0x30]
mov rcx, qword [rax + 0x4b00]
subss xmm3, xmm1
movaps xmm2, xmm4
addss xmm4, dword [rsi + 0x34]
subss xmm2, xmm1
mov rdi, qword [rcx]
addss xmm5, xmm1
movss dword [rsp + 0x40], xmm3
addss xmm4, xmm1
movss dword [rsp + 0x44], xmm2
movaps xmm0, xmm5
movss dword [rsp + 0x48], xmm5
subss xmm0, xmm3
movss dword [rsp + 0x4c], xmm4
comiss xmm0, dword [rdi + 0xc]
jb 0x140021ebf
movaps xmm0, xmm4
subss xmm0, xmm2
comiss xmm0, dword [rdi + 0x10]
jb 0x140021ebf
xorps xmm1, xmmword [0x140146890]
subss xmm1, dword [0x140146254]
movaps xmm0, xmm1
subss xmm3, xmm1
subss xmm2, xmm1
addss xmm0, xmm5
addss xmm1, xmm4
movss dword [rsp + 0x40], xmm3
movss dword [rsp + 0x44], xmm2
movss dword [rsp + 0x48], xmm0
movss dword [rsp + 0x4c], xmm1
mov rcx, qword [rsi + 0x2a8]
cmp dword [rcx], 0
jne 0x140021ed0
call fcn.1400362c0
movss xmm0, dword [rdi + 4]
lea rdx, [rdi + 4]
movss xmm1, dword [rdx + 4]
lea r8, [rsp + 0x30]
addss xmm0, dword [rdi + 0xc]
addss xmm1, dword [rdi + 0x10]
mov rcx, qword [rsi + 0x2a8]
xor r9d, r9d
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x34], xmm1
call fcn.140036560
mov rax, qword [0x14015e270]
lea rcx, [rsp + 0x30]
movss xmm0, dword [rbx + 0x4d04]
mov rdi, qword [rsi + 0x2a8]
movups xmm1, xmmword [rax + 0x3d00]
mulss xmm0, dword [rax + 0x38f0]
movups xmmword [rsp + 0x30], xmm1
shufps xmm1, xmm1, 0xff
mulss xmm1, xmm0
movss dword [rsp + 0x3c], xmm1
call fcn.14001be20
mov ebx, eax
test eax, 0xff000000
je 0x140021fa5
movss xmm3, dword [rsi + 0x60]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140038780
movss xmm0, dword [0x140146298]
mov r9d, ebx
mov r8d, dword [rdi + 0x78]
mov rcx, rdi
mov rdx, qword [rdi + 0x80]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
call fcn.140036960
mov dword [rdi + 0x78], 0
mov rcx, qword [rsi + 0x2a8]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov eax, dword [rcx + 0x58]
sub eax, 1
mov dword [rcx + 0x58], eax
jne 0x140021feb
mov rax, qword [rcx + 0x38]
add rax, 0x1c
movups xmm0, xmmword [rax]
movups xmmword [rcx + 0x88], xmm0
call fcn.140036380
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14010c0b0
add rsp, 0x60
pop rbx
ret
dec eax
cdqe
shl rax, 4
add rax, qword [rcx + 0x60]
movups xmm0, xmmword [rax]
movups xmmword [rcx + 0x88], xmm0
call fcn.140036380
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14010c0b0
add rsp, 0x60
pop rbx
ret
mov r11, qword [rbx + 0x3fe0]
mov r9, rcx
movsxd rax, dword [rbx + 0x3fd8]
mov rdx, r11
lea r8, [r11 + rax*8]
cmp r11, r8
jae 0x140022044
cmp qword [rdx], rcx
je 0x140022044
add rdx, 8
cmp rdx, r8
jb 0x140022036
sub rdx, r11
sar rdx, 3
test edx, edx
js 0x1400220c5
movsxd r10, edx
lea r11, [r11 + r10*8]
nop word [rax + rax]
mov rdx, qword [r11]
mov r8d, dword [rdx + 0x14]
bt r8d, 0x18
jb 0x1400220bb
mov rax, rdx
cmp qword [rdx + 0x388], rcx
je 0x140022093
nop word [rax + rax]
cmp rax, rcx
je 0x140022093
mov rax, qword [rax + 0x380]
test rax, rax
jne 0x140022080
jmp 0x1400220c5
cmp byte [rdx + 0xbe], 0
je 0x1400220bb
cmp byte [rdx + 0xc5], 0
jne 0x1400220bb
mov eax, dword [rcx + 0x14]
and r8d, 0x2000000
and eax, 0x2000000
cmp r8d, eax
cmovbe r9, rdx
sub r11, 8
sub r10, 1
jns 0x140022060
movups xmm0, xmmword [rbx + 0x3d20]
lea rcx, [rsp + 0x40]
mulss xmm1, dword [rbx + 0x38f0]
movups xmmword [rsp + 0x40], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, xmm1
movss dword [rsp + 0x4c], xmm0
call fcn.14001be20
mov edx, eax
mov rcx, r9
call fcn.140021ac0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14010c0b0
add rsp, 0x60
pop rbx
ret