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

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
sub rsp, 0x58
mov rbx, qword [0x14012de10]
xor r12d, r12d
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r14
mov r14d, r12d
mov qword [rax - 0x28], r15
xor r15b, r15b
movaps xmmword [rax - 0x38], xmm6
mov eax, dword [rbx + 0x1f18]
sub eax, 1
js 0x140022490
mov r8, qword [rbx + 0x1f20]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
mov r9, qword [r8]
test r9, r9
je 0x140022486
test dword [r9 + 0xc], 0x8000000
jne 0x140022517
sub r8, 0x30
sub rdx, 1
jns 0x140022470
lea rdi, [rbx + 0x2100]
mov r9, r12
mov r10, qword [rdi]
xorps xmm6, xmm6
cmp qword [rbx + 0x2108], r12
je 0x1400224e8
test r10, r10
jne 0x1400224e8
comiss xmm6, dword [rbx + 0x2124]
movss xmm0, dword [rbx + 0x18]
movss xmm1, dword [rbx + 0x211c]
mulss xmm0, dword [0x1401209e8]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x211c], xmm1
jb 0x1400224e8
comiss xmm6, xmm1
jb 0x1400224e8
mov qword [rbx + 0x2108], r12
mov qword [rsp + 0x88], rbp
mov r13d, 1
test r9, r9
jne 0x140022529
test r10, r10
jne 0x140022529
mov edx, r13d
lea ecx, [r13 + 2]
call fcn.14001ff90
comiss xmm0, xmm6
jbe 0x140022529
movzx r8d, dl
jmp 0x140022536
lea rdi, [rbx + 0x2100]
mov r10, r12
mov qword [rdi], r12
jmp 0x14002249d
xor r8b, r8b
test r9, r9
jne 0x140022555
test r10, r10
jne 0x140022555
cmp byte [rbx + 0x13c], r12b
je 0x140022555
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140022555
call fcn.140016e00
test al, al
je 0x140022555
movzx ebp, r13b
jmp 0x140022558
xor bpl, bpl
test r8b, r8b
jne 0x140022566
test bpl, bpl
je 0x140022607
mov rax, qword [rbx + 0x1f98]
test rax, rax
jne 0x1400225d8
movsxd rcx, dword [rbx + 0x1cd8]
lea edx, [rcx - 1]
test edx, edx
js 0x140022607
movsxd rax, edx
mov rsi, rcx
nop word [rax + rax]
cmp rax, rsi
jge 0x140022607
cmp rax, 0xffffffff80000001
je 0x140022607
mov r10, qword [rbx + 0x1ce0]
mov rcx, qword [r10 + rax*8]
cmp byte [rcx + 0xc8], r12b
je 0x1400225c3
cmp rcx, qword [rcx + 0x380]
jne 0x1400225c3
test dword [rcx + 0xc], 0x80000
je 0x1400225cc
dec edx
sub rax, r13
jns 0x140022590
jmp 0x140022607
movsxd rax, edx
mov rax, qword [r10 + rax*8]
test rax, rax
je 0x140022607
mov rax, qword [rax + 0x380]
mov qword [rbx + 0x2108], rax
mov qword [rdi], rax
movzx eax, bpl
xor eax, r13d
mov qword [rbx + 0x2118], r12
add eax, 2
mov byte [rbx + 0x2120], r8b
mov dword [rbx + 0x1fd0], eax
movss xmm0, dword [rbx + 0x2118]
mov r10, qword [rdi]
movss xmm5, dword [0x140120990]
mov r8, r10
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x18]
movss dword [rbx + 0x2118], xmm0
test r10, r10
je 0x1400226f7
cmp dword [rbx + 0x1fd0], 3
jne 0x1400226f7
subss xmm0, dword [0x140120934]
divss xmm0, dword [0x14012091c]
comiss xmm6, xmm0
jbe 0x14002265f
movaps xmm1, xmm6
jmp 0x140022666
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x211c]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x211c], xmm7
call fcn.14001ff90
comiss xmm0, xmm6
mov r9d, r12d
lea ecx, [rdx + 8]
seta r9b
call fcn.14001ff90
comiss xmm0, xmm6
mov ecx, r12d
mov r8, r10
seta cl
sub ecx, r9d
je 0x1400226bf
call fcn.1400222f0
mov r8, qword [rdi]
movaps xmm7, xmm5
mov dword [rbx + 0x211c], 0x3f800000
movss xmm0, dword [rbx + 0x34c]
comiss xmm0, xmm6
ja 0x1400226f7
comiss xmm5, xmm7
seta al
and byte [rbx + 0x2120], al
je 0x1400226ef
cmp qword [rbx + 0x1f98], r12
je 0x1400226f2
movzx r15d, r13b
mov qword [rdi], r12
jmp 0x140022772
mov r14, r8
mov qword [rdi], r12
jmp 0x140022772
test r8, r8
je 0x140022772
cmp dword [rbx + 0x1fd0], 2
jne 0x140022772
movss xmm0, dword [rbx + 0x2118]
subss xmm0, dword [0x140120934]
divss xmm0, dword [0x14012091c]
comiss xmm6, xmm0
jbe 0x140022727
movaps xmm5, xmm6
jmp 0x14002272b
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x211c]
maxss xmm0, xmm5
movss dword [rbx + 0x211c], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140022767
call fcn.140016e00
test al, al
je 0x140022767
cmp byte [rbx + 0x13d], r12b
mov ecx, 0xffffffff
cmovne ecx, r13d
call fcn.1400222f0
mov r8, qword [rdi]
cmp byte [rbx + 0x13c], r12b
cmove r14, r8
movaps xmm7, xmmword [rsp + 0x30]
test byte [rbx + 8], r13b
je 0x1400227a0
cmp dword [rbx + 0x3bc], 4
jne 0x1400227a0
test byte [rbx + 0x3c0], 4
jne 0x1400227a0
mov byte [rbx + 0x2120], r13b
mov dword [rbx + 0x1fd0], 2
movzx eax, byte [rbx + 0x2120]
test al, al
je 0x14002289b
cmp dword [rbx + 0x1fd0], 2
jne 0x14002289b
cmp dword [rbx + 0x1560], r12d
jg 0x1400227e0
cmp byte [rbx + 0x13c], r12b
jne 0x1400227e0
cmp byte [rbx + 0x13d], r12b
jne 0x1400227e0
cmp byte [rbx + 0x13f], r12b
je 0x1400227e9
mov byte [rbx + 0x2120], r12b
xor al, al
test byte [rbx + 0x3bc], 4
jne 0x14002288b
test byte [rbx + 0x3c0], 4
je 0x14002288b
test al, al
je 0x14002288b
cmp dword [rbx + 0x1d7c], r12d
je 0x14002281d
cmp byte [rbx + 0x1d89], r12b
je 0x14002288b
lea rax, [rbx + 0x3c4]
test rax, rax
jne 0x140022830
lea rax, [rbx + 0x120]
movss xmm0, dword [rax]
movss xmm1, dword [0x140120a5c]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140022851
comiss xmm2, xmm1
jb 0x140022851
movzx ecx, r13b
jmp 0x140022853
xor cl, cl
lea rax, [rbx + 0x120]
test rax, rax
jne 0x140022866
lea rax, [rbx + 0x120]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x14002287f
comiss xmm2, xmm1
jb 0x14002287f
movzx eax, r13b
jmp 0x140022881
xor al, al
cmp al, cl
movzx r15d, r15b
cmove r15d, r13d
cmp byte [rbx + 0x13e], r12b
jne 0x14002289b
mov byte [rbx + 0x2120], r12b
mov rsi, qword [rdi]
test rsi, rsi
je 0x14002299a
test byte [rsi + 0xc], 4
jne 0x14002299a
mov eax, dword [rbx + 0x1fd0]
cmp eax, 2
jne 0x1400228ce
cmp byte [rbx + 0x13d], r12b
jne 0x14002299a
mov edx, r13d
jmp 0x1400228da
cmp eax, 3
jne 0x14002299a
lea edx, [rax + 5]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x80]
call fcn.140020110
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x14002290b
jne 0x14002290b
ucomiss xmm4, xmm6
jp 0x14002290b
je 0x14002299a
mov r10, qword [rsi + 0x390]
lea rdx, [rsp + 0x80]
movss xmm1, dword [rbx + 0xc0]
mov r8d, r13d
movss xmm0, dword [rbx + 0x18]
mov rcx, r10
minss xmm1, dword [rbx + 0xc4]
mulss xmm0, dword [0x140120a24]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm2
mulss xmm4, xmm2
addss xmm3, dword [r10 + 0x48]
addss xmm4, dword [r10 + 0x4c]
movss dword [rsp + 0x80], xmm3
movss dword [rsp + 0x84], xmm4
call fcn.14001cf00
test dword [r10 + 0xc], 0x100
jne 0x140022993
comiss xmm6, dword [rbx + 0x32a4]
jb 0x140022993
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x32a4], eax
mov byte [rbx + 0x1fdb], r8b
movaps xmm6, xmmword [rsp + 0x40]
test r14, r14
je 0x140022a35
mov rax, qword [rbx + 0x1f98]
test rax, rax
je 0x1400229c3
cmp r14, qword [rax + 0x380]
je 0x140022a32
mov rbp, qword [rax + 0x30]
jmp 0x1400229c6
mov rbp, r12
call fcn.140011b30
mov rcx, r14
mov word [rbx + 0x1fd9], r13w
mov byte [rbx + 0x1fdb], r13b
call fcn.14001fba0
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.14001e430
mov rcx, rsi
call fcn.14001cb40
cmp dword [rsi + 0x3b0], r12d
jne 0x140022a0a
xor edx, edx
mov rcx, rsi
call fcn.14001fcb0
cmp word [rsi + 0x162], 2
jne 0x140022a1b
mov dword [rbx + 0x1fd4], r13d
mov rcx, qword [rsi + 0x30]
cmp rcx, rbp
je 0x140022a32
mov rax, qword [rbx + 0x15a8]
test rax, rax
je 0x140022a32
call rax
mov qword [rdi], r12
mov r14, qword [rsp + 0x98]
test r15b, r15b
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
je 0x140022b17
cmp qword [rbx + 0x1f98], r12
je 0x140022b17
call fcn.140011b30
mov rsi, qword [rbx + 0x1f98]
mov rdi, rsi
lea rcx, [rsi + 0x378]
cmp qword [rcx], r12
je 0x140022abe
test byte [rdi + 0x160], 2
jne 0x140022aaa
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x140022aaa
mov rdi, qword [rcx]
lea rcx, [rdi + 0x378]
cmp qword [rcx], r12
jne 0x140022a83
cmp rdi, rsi
je 0x140022abe
mov rcx, rdi
call fcn.14001cb40
mov qword [rdi + 0x3a8], rsi
mov rax, qword [rbx + 0x1f98]
test byte [rax + 0x160], 2
je 0x140022ad9
mov ecx, dword [rbx + 0x1fd4]
xor ecx, 1
jmp 0x140022adc
mov ecx, r12d
cmp ecx, dword [rbx + 0x1fd4]
je 0x140022b17
cmp ecx, 1
jne 0x140022af9
cmp qword [rdi + 0x408], r12
jne 0x140022af9
mov dword [rax + 0x3b4], r12d
call fcn.14001fc20
mov r10, qword [0x14012de10]
mov word [r10 + 0x1fd9], 1
mov byte [r10 + 0x1fdb], 1
add rsp, 0x58
pop r12
pop rdi
pop rsi
pop rbx
ret