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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rbx, qword [0x140078100]
xor esi, esi
xor r14b, r14b
mov edi, esi
movsxd rax, dword [rbx + 0x1bb8]
test eax, eax
jle 0x140022bdf
mov r8, qword [rbx + 0x1bc0]
lea rdx, [rax - 1]
lea rcx, [rdx + rdx*2]
add r8, 8
shl rcx, 4
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x140022bd5
test dword [rax + 0xc], 0x8000000
jne 0x140022c69
sub r8, 0x30
sub rdx, 1
jns 0x140022bc0
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x50], r15
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
cmp qword [rbx + 0x1cf8], rsi
je 0x140022c40
cmp qword [rbx + 0x1cf0], rsi
jne 0x140022c40
comiss xmm6, dword [rbx + 0x1d98]
movss xmm1, dword [rbx + 0x1d0c]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x140058d64]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1d0c], xmm1
jb 0x140022c40
comiss xmm6, xmm1
jb 0x140022c40
mov qword [rbx + 0x1cf8], rsi
mov r9, qword [rbx + 0x1cf0]
mov r15d, 1
test r9, r9
jne 0x140022c7a
mov edx, r15d
lea ecx, [r9 + 3]
call fcn.140020dd0
comiss xmm0, xmm6
jbe 0x140022c7a
movzx r8d, dl
jmp 0x140022c82
mov qword [rbx + 0x1cf0], rsi
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r8b, r8b
test r9, r9
jne 0x140022ca7
cmp byte [rbx + 0x148], sil
je 0x140022ca7
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140022ca7
call fcn.1400187e0
test al, al
je 0x140022ca7
test byte [rbx + 8], r15b
je 0x140022ca7
movzx r9d, r15b
jmp 0x140022caa
xor r9b, r9b
test r8b, r8b
jne 0x140022cb8
test r9b, r9b
je 0x140022d60
mov rax, qword [rbx + 0x1bd8]
test rax, rax
jne 0x140022d2e
mov r8d, dword [rbx + 0x1a20]
sub r8d, r15d
js 0x140022d60
movsxd r10, dword [rbx + 0x1a20]
movsxd rcx, r8d
nop
cmp rcx, r10
jge 0x140022d60
cmp rcx, 0xffffffff80000001
je 0x140022d60
mov rax, qword [rbx + 0x1a28]
mov rdx, qword [rax + rcx*8]
cmp byte [rdx + 0x7e], sil
je 0x140022d11
cmp rdx, qword [rdx + 0x368]
jne 0x140022d11
test dword [rdx + 0xc], 0x80000
je 0x140022d1b
dec r8d
sub rcx, r15
jns 0x140022ce0
jmp 0x140022d60
mov rax, qword [rbx + 0x1a28]
movsxd rcx, r8d
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140022d60
mov rax, qword [rax + 0x368]
xor r9b, r15b
mov qword [rbx + 0x1cf8], rax
mov qword [rbx + 0x1cf0], rax
movzx eax, r9b
mov byte [rbx + 0x1d10], al
add eax, 3
mov dword [rbx + 0x1c08], eax
mov qword [rbx + 0x1d08], rsi
mov r10, qword [rbx + 0x1cf0]
movss xmm0, dword [rbx + 0x18]
mov r8, r10
movss xmm5, dword [0x140058ca4]
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x1d08]
movss dword [rbx + 0x1d08], xmm0
test r10, r10
je 0x140022e5f
cmp dword [rbx + 0x1c08], 4
jne 0x140022e5f
subss xmm0, dword [0x140058c30]
divss xmm0, dword [0x140058bfc]
comiss xmm6, xmm0
jbe 0x140022dbc
movaps xmm1, xmm6
jmp 0x140022dc3
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1d0c]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1d0c], xmm7
call fcn.140020dd0
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.140020dd0
comiss xmm0, xmm6
mov ecx, esi
mov r8, r10
seta cl
sub ecx, r9d
je 0x140022e1f
call fcn.140022a30
mov r8, qword [rbx + 0x1cf0]
movaps xmm7, xmm5
mov dword [rbx + 0x1d0c], 0x3f800000
movss xmm0, dword [rbx + 0x358]
comiss xmm0, xmm6
ja 0x140022e5f
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1d10], al
je 0x140022e53
cmp qword [rbx + 0x1bd8], rsi
je 0x140022e56
movzx r14d, r15b
mov qword [rbx + 0x1cf0], rsi
jmp 0x140022ede
mov rdi, r8
mov qword [rbx + 0x1cf0], rsi
jmp 0x140022ede
test r8, r8
je 0x140022ede
cmp dword [rbx + 0x1c08], 3
jne 0x140022ede
movss xmm0, dword [rbx + 0x1d08]
subss xmm0, dword [0x140058c30]
divss xmm0, dword [0x140058bfc]
comiss xmm6, xmm0
jbe 0x140022e8f
movaps xmm5, xmm6
jmp 0x140022e93
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1d0c]
maxss xmm0, xmm5
movss dword [rbx + 0x1d0c], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140022ed3
call fcn.1400187e0
test al, al
je 0x140022ed3
cmp byte [rbx + 0x149], sil
mov ecx, 0xffffffff
cmovne ecx, r15d
call fcn.140022a30
mov r8, qword [rbx + 0x1cf0]
cmp byte [rbx + 0x148], sil
cmove rdi, r8
mov edx, r15d
mov ecx, 0x10
call fcn.140020dd0
comiss xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x140022efb
mov byte [rbx + 0x1d10], dl
cmp dword [rbx + 0x1ab0], esi
je 0x140022f10
cmp byte [rbx + 0x1abd], sil
je 0x140022f9d
cmp byte [rbx + 0x1d10], sil
je 0x140022f9d
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.140020dd0
comiss xmm0, xmm6
jbe 0x140022f9d
lea rax, [rbx + 0x130]
test rax, rax
jne 0x140022f42
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
movss xmm1, dword [0x140058ed4]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140022f63
comiss xmm2, xmm1
jb 0x140022f63
movzx ecx, r15b
jmp 0x140022f65
xor cl, cl
lea rax, [rbx + 0x3c8]
test rax, rax
jne 0x140022f78
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140022f91
comiss xmm2, xmm1
jb 0x140022f91
movzx eax, r15b
jmp 0x140022f93
xor al, al
cmp cl, al
movzx r14d, r14b
cmove r14d, r15d
mov rbp, qword [rbx + 0x1cf0]
test rbp, rbp
je 0x1400230ab
test byte [rbp + 0xc], 4
jne 0x1400230ab
mov eax, dword [rbx + 0x1c08]
cmp eax, 3
jne 0x140022fdc
cmp byte [rbx + 0x149], sil
jne 0x1400230ab
mov edx, r15d
lea rcx, [rsp + 0x88]
jmp 0x140022fef
cmp eax, 4
jne 0x1400230ab
mov edx, eax
lea rcx, [rsp + 0x90]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
xor r8d, r8d
call fcn.140020f50
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x14002301b
jne 0x14002301b
ucomiss xmm4, xmm6
jp 0x14002301b
je 0x1400230ab
movss xmm1, dword [rbx + 0xc0]
lea rdx, [rsp + 0x80]
movss xmm0, dword [rbx + 0x18]
mov r8d, r15d
minss xmm1, dword [rbx + 0xc4]
mov rcx, qword [rbp + 0x368]
mulss xmm0, dword [0x140058e80]
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.14001e020
mov rax, qword [rbx + 0x1cf0]
mov byte [rbx + 0x1c2b], r8b
test dword [rax + 0xc], 0x100
jne 0x1400230ab
comiss xmm6, dword [rbx + 0x2f64]
jb 0x1400230ab
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2f64], eax
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x1400231b1
mov rax, qword [rbx + 0x1bd8]
test rax, rax
je 0x1400230d2
cmp rdi, qword [rax + 0x368]
je 0x1400231aa
mov ecx, dword [rbx + 0x1ab0]
test ecx, ecx
setne al
mov byte [rbx + 0x1abc], al
test ecx, ecx
je 0x1400230f4
mov dword [rbx + 0x1ab8], esi
mov word [rbx + 0x1abe], si
mov dword [rbx + 0x1ab0], esi
mov byte [rbx + 0x1abd], sil
mov qword [rbx + 0x1ae0], rsi
mov byte [rbx + 0x1ac0], sil
mov qword [rbx + 0x1ac4], rsi
mov qword [rbx + 0x1ad0], rsi
mov word [rbx + 0x1c2a], 0x100
mov rax, qword [rdi + 0x380]
test rax, rax
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.14001f790
mov rcx, rdi
call fcn.14001db70
cmp dword [rdi + 0x388], esi
jne 0x14002319a
mov eax, dword [rdi + 0xc]
mov rdx, qword [0x140078100]
mov qword [rdx + 0x1be0], rsi
and eax, 0x40000
jne 0x14002319a
movsxd rcx, dword [rdx + 0x1c20]
xorps xmm0, xmm0
mov rax, qword [rdx + 0x1bd8]
mov dword [rax + rcx*4 + 0x388], esi
mov word [rdx + 0x1c2d], r15w
mov dword [rdx + 0x1c30], esi
movups xmmword [rdx + 0x1c34], xmm0
mov byte [rdx + 0x1c2c], r15b
cmp dword [rdi + 0x144], 2
jne 0x1400231aa
mov dword [rbx + 0x1c20], r15d
mov qword [rbx + 0x1cf0], rsi
mov r15, qword [rsp + 0x50]
test r14b, r14b
je 0x140023244
mov rbp, qword [rbx + 0x1bd8]
test rbp, rbp
je 0x140023244
lea rcx, [rbp + 0x360]
mov rdi, rbp
cmp qword [rcx], rsi
je 0x140023207
nop word [rax + rax]
test byte [rdi + 0x144], 2
jne 0x140023207
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x140023207
mov rdi, qword [rcx]
lea rcx, [rdi + 0x360]
cmp qword [rcx], rsi
jne 0x1400231e0
cmp rdi, rbp
je 0x140023222
mov rcx, rdi
call fcn.14001db70
mov qword [rdi + 0x380], rbp
mov rbp, qword [rbx + 0x1bd8]
mov word [rbx + 0x1c2a], 0x100
test byte [rbp + 0x144], 2
je 0x14002323d
mov esi, dword [rbx + 0x1c20]
xor esi, 1
mov ecx, esi
call fcn.140020be0
mov rbp, qword [rsp + 0x98]
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret