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

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
sub rsp, 0x58
mov rsi, qword [0x14012deb0]
xor r12d, r12d
mov qword [rax + 0x18], r13
mov rbx, rsi
mov qword [rax + 0x20], r14
mov r14d, r12d
mov qword [rax - 0x28], r15
xor r15b, r15b
movaps xmmword [rax - 0x38], xmm6
movsxd rax, dword [rsi + 0x1f18]
test eax, eax
jle 0x140021f84
mov r8, qword [rsi + 0x1f20]
lea rdx, [rax - 1]
lea rcx, [rdx + rdx*2]
add r8, 8
shl rcx, 4
add r8, rcx
mov r9, qword [r8]
test r9, r9
je 0x140021f7a
test dword [r9 + 0xc], 0x8000000
jne 0x140022000
sub r8, 0x30
sub rdx, 1
jns 0x140021f64
mov r10, qword [rsi + 0x2100]
mov r9, r12
xorps xmm6, xmm6
cmp qword [rsi + 0x2108], r12
je 0x140021fd9
test r10, r10
jne 0x140021fd9
comiss xmm6, dword [rsi + 0x2124]
movss xmm0, dword [rsi + 0x18]
movss xmm1, dword [rsi + 0x211c]
mulss xmm0, dword [0x1401209dc]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rsi + 0x211c], xmm1
jb 0x140021fd9
comiss xmm6, xmm1
jb 0x140021fd9
mov qword [rsi + 0x2108], r12
mov r13d, 1
test r9, r9
jne 0x14002200c
test r10, r10
jne 0x14002200c
mov edx, r13d
lea ecx, [r13 + 2]
call fcn.14001fc30
comiss xmm0, xmm6
jbe 0x14002200c
movzx r11d, dl
jmp 0x140022019
mov qword [rsi + 0x2100], r12
mov r10, r12
jmp 0x140021f8e
xor r11b, r11b
test r9, r9
jne 0x140022038
test r10, r10
jne 0x140022038
cmp byte [rsi + 0x13c], r12b
je 0x140022038
mov ecx, dword [rsi + 0x3c]
test ecx, ecx
js 0x140022038
call fcn.140016af0
test al, al
je 0x140022038
movzx r10d, r13b
jmp 0x14002203b
xor r10b, r10b
test r11b, r11b
jne 0x140022049
test r10b, r10b
je 0x1400220ed
mov rax, qword [rsi + 0x1f98]
test rax, rax
jne 0x1400220ba
mov r8d, dword [rsi + 0x1cd8]
sub r8d, r13d
js 0x1400220ed
movsxd r9, dword [rsi + 0x1cd8]
movsxd rcx, r8d
nop
cmp rcx, r9
jge 0x1400220ed
cmp rcx, 0xffffffff80000001
je 0x1400220ed
mov rax, qword [rsi + 0x1ce0]
mov rdx, qword [rax + rcx*8]
cmp byte [rdx + 0xc8], r12b
je 0x1400220a4
cmp rdx, qword [rdx + 0x380]
jne 0x1400220a4
test dword [rdx + 0xc], 0x80000
je 0x1400220ae
dec r8d
sub rcx, r13
jns 0x140022070
jmp 0x1400220ed
movsxd rcx, r8d
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1400220ed
mov rax, qword [rax + 0x380]
mov qword [rsi + 0x2108], rax
mov qword [rsi + 0x2100], rax
movzx eax, r10b
xor eax, r13d
mov qword [rsi + 0x2118], r12
add eax, 2
mov byte [rsi + 0x2120], r11b
mov dword [rsi + 0x1fd0], eax
movss xmm0, dword [rsi + 0x2118]
mov r10, qword [rsi + 0x2100]
movss xmm5, dword [0x140120984]
mov r8, r10
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rsi + 0x18]
movss dword [rsi + 0x2118], xmm0
test r10, r10
je 0x1400221ed
cmp dword [rsi + 0x1fd0], 3
jne 0x1400221ed
subss xmm0, dword [0x140120928]
divss xmm0, dword [0x140120910]
comiss xmm6, xmm0
jbe 0x140022149
movaps xmm1, xmm6
jmp 0x140022150
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rsi + 0x211c]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rsi + 0x211c], xmm7
call fcn.14001fc30
comiss xmm0, xmm6
mov r9d, r12d
lea ecx, [rdx + 8]
seta r9b
call fcn.14001fc30
comiss xmm0, xmm6
mov ecx, r12d
mov r8, r10
seta cl
sub ecx, r9d
je 0x1400221ad
call fcn.140021dd0
mov r8, qword [rsi + 0x2100]
movaps xmm7, xmm5
mov dword [rsi + 0x211c], 0x3f800000
movss xmm0, dword [rsi + 0x34c]
comiss xmm0, xmm6
ja 0x1400221ed
comiss xmm5, xmm7
seta al
and byte [rsi + 0x2120], al
je 0x1400221e1
cmp qword [rsi + 0x1f98], r12
je 0x1400221e4
movzx r15d, r13b
mov qword [rsi + 0x2100], r12
jmp 0x14002226c
mov r14, r8
mov qword [rsi + 0x2100], r12
jmp 0x14002226c
test r8, r8
je 0x14002226c
cmp dword [rsi + 0x1fd0], 2
jne 0x14002226c
movss xmm0, dword [rsi + 0x2118]
subss xmm0, dword [0x140120928]
divss xmm0, dword [0x140120910]
comiss xmm6, xmm0
jbe 0x14002221d
movaps xmm5, xmm6
jmp 0x140022221
minss xmm5, xmm0
movss xmm0, dword [rsi + 0x211c]
maxss xmm0, xmm5
movss dword [rsi + 0x211c], xmm0
mov ecx, dword [rsi + 0x3c]
test ecx, ecx
js 0x140022261
call fcn.140016af0
test al, al
je 0x140022261
cmp byte [rsi + 0x13d], r12b
mov ecx, 0xffffffff
cmovne ecx, r13d
call fcn.140021dd0
mov r8, qword [rsi + 0x2100]
cmp byte [rsi + 0x13c], r12b
cmove r14, r8
movaps xmm7, xmmword [rsp + 0x30]
test byte [rsi + 8], r13b
je 0x14002229a
cmp dword [rsi + 0x3bc], 4
jne 0x14002229a
test byte [rsi + 0x3c0], 4
jne 0x14002229a
mov byte [rsi + 0x2120], r13b
mov dword [rsi + 0x1fd0], 2
movzx eax, byte [rsi + 0x2120]
test al, al
je 0x140022395
cmp dword [rsi + 0x1fd0], 2
jne 0x140022395
cmp dword [rsi + 0x1560], r12d
jg 0x1400222da
cmp byte [rsi + 0x13c], r12b
jne 0x1400222da
cmp byte [rsi + 0x13d], r12b
jne 0x1400222da
cmp byte [rsi + 0x13f], r12b
je 0x1400222e3
mov byte [rsi + 0x2120], r12b
xor al, al
test byte [rsi + 0x3bc], 4
jne 0x140022385
test byte [rsi + 0x3c0], 4
je 0x140022385
test al, al
je 0x140022385
cmp dword [rsi + 0x1d7c], r12d
je 0x140022317
cmp byte [rsi + 0x1d89], r12b
je 0x140022385
lea rax, [rsi + 0x120]
test rax, rax
jne 0x14002232a
lea rax, [rsi + 0x120]
movss xmm0, dword [rax]
movss xmm1, dword [0x140120a50]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x14002234b
comiss xmm2, xmm1
jb 0x14002234b
movzx ecx, r13b
jmp 0x14002234d
xor cl, cl
lea rax, [rsi + 0x3c4]
test rax, rax
jne 0x140022360
lea rax, [rsi + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140022379
comiss xmm2, xmm1
jb 0x140022379
movzx eax, r13b
jmp 0x14002237b
xor al, al
cmp cl, al
movzx r15d, r15b
cmove r15d, r13d
cmp byte [rsi + 0x13e], r12b
jne 0x140022395
mov byte [rsi + 0x2120], r12b
mov rdi, qword [rsi + 0x2100]
test rdi, rdi
je 0x140022492
test byte [rdi + 0xc], 4
jne 0x140022492
mov eax, dword [rsi + 0x1fd0]
cmp eax, 2
jne 0x1400223cc
cmp byte [rsi + 0x13d], r12b
jne 0x140022492
mov edx, r13d
jmp 0x1400223d8
cmp eax, 3
jne 0x140022492
lea edx, [rax + 5]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x80]
call fcn.14001fdb0
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x140022409
jne 0x140022409
ucomiss xmm4, xmm6
jp 0x140022409
je 0x140022492
movss xmm1, dword [rsi + 0xc0]
lea rdx, [rsp + 0x80]
movss xmm0, dword [rsi + 0x18]
mov r8d, r13d
minss xmm1, dword [rsi + 0xc4]
mov rcx, qword [rdi + 0x390]
mulss xmm0, dword [0x140120a18]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm2
mulss xmm4, xmm2
addss xmm3, dword [rcx + 0x48]
addss xmm4, dword [rcx + 0x4c]
movss dword [rsp + 0x80], xmm3
movss dword [rsp + 0x84], xmm4
call fcn.14001cab0
test dword [rcx + 0xc], 0x100
jne 0x14002248b
comiss xmm6, dword [rsi + 0x32a4]
jb 0x14002248b
mov eax, dword [rsi + 0x1c]
mov dword [rsi + 0x32a4], eax
mov byte [rsi + 0x1fdb], r13b
mov qword [rsp + 0x88], rbp
movaps xmm6, xmmword [rsp + 0x40]
test r14, r14
je 0x140022540
mov rax, qword [rsi + 0x1f98]
test rax, rax
je 0x1400224c3
cmp r14, qword [rax + 0x380]
je 0x140022539
mov rbp, qword [rax + 0x30]
jmp 0x1400224c6
mov rbp, r12
call fcn.1400116d0
mov rcx, r14
mov word [rsi + 0x1fd9], r13w
mov byte [rsi + 0x1fdb], r13b
call fcn.14001f800
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.14001e070
mov rcx, rdi
call fcn.14001c660
cmp dword [rdi + 0x3b0], r12d
jne 0x14002250a
xor edx, edx
mov rcx, rdi
call fcn.14001f960
cmp word [rdi + 0x162], 2
jne 0x14002251b
mov dword [rsi + 0x1fd4], r13d
mov rcx, qword [rdi + 0x30]
cmp rcx, rbp
je 0x140022532
mov rax, qword [rsi + 0x15a8]
test rax, rax
je 0x140022532
call rax
mov rsi, qword [0x14012deb0]
mov qword [rbx + 0x2100], r12
mov r14, qword [rsp + 0x98]
test r15b, r15b
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x90]
je 0x140022616
cmp qword [rbx + 0x1f98], r12
je 0x140022616
call fcn.1400116d0
mov rbp, qword [rbx + 0x1f98]
mov rdi, rbp
lea rcx, [rbp + 0x378]
cmp qword [rcx], r12
je 0x1400225ad
test byte [rdi + 0x160], 2
jne 0x1400225ad
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x1400225ad
mov rdi, qword [rcx]
lea rcx, [rdi + 0x378]
cmp qword [rcx], r12
jne 0x140022586
cmp rdi, rbp
je 0x1400225cf
mov rcx, rdi
call fcn.14001c660
mov rsi, qword [0x14012deb0]
mov qword [rdi + 0x3a8], rbp
mov rbp, qword [rbx + 0x1f98]
test byte [rbp + 0x160], 2
mov eax, dword [rbx + 0x1fd4]
je 0x1400225e5
mov ecx, eax
xor ecx, 1
jmp 0x1400225e8
mov ecx, r12d
cmp ecx, eax
je 0x140022616
cmp ecx, 1
jne 0x140022601
cmp qword [rdi + 0x408], r12
jne 0x140022601
mov dword [rbp + 0x3b4], r12d
call fcn.14001f880
mov word [rsi + 0x1fd9], 1
mov byte [rsi + 0x1fdb], 1
mov rbp, qword [rsp + 0x88]
add rsp, 0x58
pop r12
pop rdi
pop rsi
pop rbx
ret