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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rbx, qword [0x1400732a8]
xor esi, esi
xor r14b, r14b
mov edi, esi
mov eax, dword [rbx + 0x1bb8]
sub eax, 1
js 0x14002059f
mov r8, qword [rbx + 0x1bc0]
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 0x140020595
test dword [rax + 0xc], 0x8000000
jne 0x14002062a
sub r8, 0x30
sub rdx, 1
jns 0x140020580
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x50], r15
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
cmp qword [rbx + 0x1cf8], rsi
je 0x140020600
cmp qword [rbx + 0x1cf0], rsi
jne 0x140020600
comiss xmm6, dword [rbx + 0x1d98]
movss xmm1, dword [rbx + 0x1d0c]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x14004f6ec]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1d0c], xmm1
jb 0x140020600
comiss xmm6, xmm1
jb 0x140020600
mov qword [rbx + 0x1cf8], rsi
mov r9, qword [rbx + 0x1cf0]
mov r15d, 1
test r9, r9
jne 0x14002063b
mov edx, r15d
mov ecx, 3
call fcn.14001e880
comiss xmm0, xmm6
jbe 0x14002063b
movzx r8d, dl
jmp 0x140020643
mov qword [rbx + 0x1cf0], rsi
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r8b, r8b
test r9, r9
jne 0x140020668
cmp byte [rbx + 0x148], sil
je 0x140020668
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x140020668
call fcn.1400163d0
test al, al
je 0x140020668
test byte [rbx + 8], r15b
je 0x140020668
movzx r9d, r15b
jmp 0x14002066b
xor r9b, r9b
test r8b, r8b
jne 0x140020679
test r9b, r9b
je 0x140020715
mov rax, qword [rbx + 0x1bd8]
test rax, rax
jne 0x1400206e3
movsxd rcx, dword [rbx + 0x1a20]
lea edx, [rcx - 1]
test edx, edx
js 0x1400206db
movsxd rax, edx
mov r10, rcx
nop dword [rax]
cmp rax, r10
jge 0x1400206db
cmp rax, 0xffffffff80000001
je 0x1400206db
mov r8, qword [rbx + 0x1a28]
mov rcx, qword [r8 + rax*8]
cmp byte [rcx + 0x7e], sil
je 0x1400206d4
cmp rcx, qword [rcx + 0x368]
jne 0x1400206d4
test dword [rcx + 0xc], 0x80000
je 0x140020771
dec edx
sub rax, r15
jns 0x1400206a0
mov rax, rsi
test rax, rax
je 0x140020715
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 [0x14004f644]
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x1d08]
movss dword [rbx + 0x1d08], xmm0
test r10, r10
je 0x140020824
cmp dword [rbx + 0x1c08], 4
jne 0x140020824
subss xmm0, dword [0x14004f5d8]
divss xmm0, dword [0x14004f5b8]
comiss xmm6, xmm0
jbe 0x14002077d
movaps xmm1, xmm6
jmp 0x140020784
movsxd rax, edx
mov rax, qword [r8 + rax*8]
jmp 0x1400206de
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1d0c]
mov edx, 4
maxss xmm7, xmm1
mov ecx, 0xd
movss dword [rbx + 0x1d0c], xmm7
call fcn.14001e880
comiss xmm0, xmm6
mov r9d, esi
mov ecx, 0xc
seta r9b
call fcn.14001e880
comiss xmm0, xmm6
mov ecx, esi
mov r8, r10
seta cl
sub ecx, r9d
je 0x1400207e4
call fcn.1400203d0
mov r8, qword [rbx + 0x1cf0]
movaps xmm7, xmm5
mov dword [rbx + 0x1d0c], 0x3f800000
movss xmm0, dword [rbx + 0x358]
comiss xmm0, xmm6
ja 0x140020824
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1d10], al
je 0x140020818
cmp qword [rbx + 0x1bd8], rsi
je 0x14002081b
movzx r14d, r15b
mov qword [rbx + 0x1cf0], rsi
jmp 0x1400208a3
mov rdi, r8
mov qword [rbx + 0x1cf0], rsi
jmp 0x1400208a3
test r8, r8
je 0x1400208a3
cmp dword [rbx + 0x1c08], 3
jne 0x1400208a3
movss xmm0, dword [rbx + 0x1d08]
subss xmm0, dword [0x14004f5d8]
divss xmm0, dword [0x14004f5b8]
comiss xmm6, xmm0
jbe 0x140020854
movaps xmm5, xmm6
jmp 0x140020858
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 0x140020898
call fcn.1400163d0
test al, al
je 0x140020898
cmp byte [rbx + 0x149], sil
mov ecx, 0xffffffff
cmovne ecx, r15d
call fcn.1400203d0
mov r8, qword [rbx + 0x1cf0]
cmp byte [rbx + 0x148], sil
cmove rdi, r8
mov edx, r15d
mov ecx, 0x10
call fcn.14001e880
comiss xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x1400208c0
mov byte [rbx + 0x1d10], dl
cmp dword [rbx + 0x1ab0], esi
je 0x1400208d5
cmp byte [rbx + 0x1abd], sil
je 0x140020964
cmp byte [rbx + 0x1d10], sil
je 0x140020964
mov edx, 2
mov ecx, 0x10
call fcn.14001e880
comiss xmm0, xmm6
jbe 0x140020964
lea rax, [rbx + 0x3c8]
test rax, rax
jne 0x140020909
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
movss xmm1, dword [0x14004f85c]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x14002092a
comiss xmm2, xmm1
jb 0x14002092a
movzx ecx, r15b
jmp 0x14002092c
xor cl, cl
lea rax, [rbx + 0x130]
test rax, rax
jne 0x14002093f
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140020958
comiss xmm2, xmm1
jb 0x140020958
movzx eax, r15b
jmp 0x14002095a
xor al, al
cmp al, cl
movzx r14d, r14b
cmove r14d, r15d
mov rbp, qword [rbx + 0x1cf0]
test rbp, rbp
je 0x140020a72
test byte [rbp + 0xc], 4
jne 0x140020a72
mov eax, dword [rbx + 0x1c08]
cmp eax, 3
jne 0x1400209a3
cmp byte [rbx + 0x149], sil
jne 0x140020a72
mov edx, r15d
lea rcx, [rsp + 0x88]
jmp 0x1400209b6
cmp eax, 4
jne 0x140020a72
mov edx, eax
lea rcx, [rsp + 0x90]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
xor r8d, r8d
call fcn.14001ea00
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x1400209e2
jne 0x1400209e2
ucomiss xmm3, xmm6
jp 0x1400209e2
je 0x140020a72
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 [0x14004f810]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [rcx + 0x10]
addss xmm3, dword [rcx + 0x14]
movss dword [rsp + 0x80], xmm4
movss dword [rsp + 0x84], xmm3
call fcn.14001bae0
mov rax, qword [rbx + 0x1cf0]
mov byte [rbx + 0x1c2b], r8b
test dword [rax + 0xc], 0x100
jne 0x140020a72
comiss xmm6, dword [rbx + 0x2f64]
jb 0x140020a72
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2f64], eax
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x140020b86
mov rax, qword [rbx + 0x1bd8]
test rax, rax
je 0x140020a99
cmp rdi, qword [rax + 0x368]
je 0x140020b7f
mov ecx, dword [rbx + 0x1ab0]
test ecx, ecx
setne al
mov byte [rbx + 0x1abc], al
test ecx, ecx
je 0x140020abb
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.14001d210
mov rcx, rdi
call fcn.14001b6b0
mov ecx, dword [rdi + 0x388]
test ecx, ecx
jne 0x140020b6f
mov eax, dword [rdi + 0xc]
mov rdx, qword [0x1400732a8]
mov dword [rdx + 0x1be4], esi
bt eax, 0x12
jb 0x140020b69
movsxd rcx, dword [rdx + 0x1c20]
xorps xmm0, xmm0
mov rax, qword [rdx + 0x1bd8]
mov dword [rdx + 0x1be0], esi
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
jmp 0x140020b6f
mov dword [rdx + 0x1be0], ecx
cmp dword [rdi + 0x144], 2
jne 0x140020b7f
mov dword [rbx + 0x1c20], r15d
mov qword [rbx + 0x1cf0], rsi
mov r15, qword [rsp + 0x50]
test r14b, r14b
je 0x140020c1b
mov rdi, qword [rbx + 0x1bd8]
test rdi, rdi
je 0x140020c1b
lea rcx, [rdi + 0x360]
cmp qword [rcx], rsi
je 0x140020bd7
nop dword [rax]
test byte [rdi + 0x144], 2
jne 0x140020bd7
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x140020bd7
mov rdi, qword [rcx]
lea rcx, [rdi + 0x360]
cmp qword [rcx], rsi
jne 0x140020bb0
mov rbp, qword [rbx + 0x1bd8]
cmp rdi, rbp
je 0x140020bf2
mov rcx, rdi
call fcn.14001b6b0
mov qword [rdi + 0x380], rbp
mov rax, qword [rbx + 0x1bd8]
mov word [rbx + 0x1c2a], 0x100
test byte [rax + 0x144], 2
je 0x140020c14
mov esi, dword [rbx + 0x1c20]
xor esi, 1
mov ecx, esi
call fcn.14001e670
mov rbp, qword [rsp + 0x98]
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret