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

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x58
mov rdi, qword [0x1401a8f90]
xor esi, esi
xor r14b, r14b
mov ebp, esi
mov eax, dword [rdi + 0x1bd8]
sub eax, 1
js 0x14001307f
mov r8, qword [rdi + 0x1be0]
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 0x140013075
test dword [rax + 0xc], 0x8000000
jne 0x14001310d
sub r8, 0x30
sub rdx, 1
jns 0x140013060
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x50], r15
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm7
cmp qword [rdi + 0x1d20], rsi
je 0x1400130e5
cmp qword [rdi + 0x1d18], rsi
jne 0x1400130e5
comiss xmm6, dword [rdi + 0x1dc0]
movss xmm1, dword [rdi + 0x1d34]
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x14004a464]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rdi + 0x1d34], xmm1
jb 0x1400130e5
comiss xmm6, xmm1
jb 0x1400130e5
mov qword [rdi + 0x1d20], rsi
mov r9, qword [rdi + 0x1d18]
mov r15d, 1
test r9, r9
jne 0x14001311e
mov edx, r15d
lea ecx, [r9 + 3]
call fcn.140010e30
comiss xmm0, xmm6
jbe 0x14001311e
movzx ebx, dl
jmp 0x140013125
mov qword [rdi + 0x1d18], rsi
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbp
ret
xor bl, bl
test r9, r9
jne 0x140013151
cmp byte [rdi + 0x148], sil
je 0x140013151
mov rax, qword [0x1401a8f90]
mov ecx, dword [rax + 0x3c]
test ecx, ecx
js 0x140013151
call fcn.1400083f0
test al, al
je 0x140013151
test byte [rdi + 8], r15b
je 0x140013151
movzx r10d, r15b
jmp 0x140013154
xor r10b, r10b
test bl, bl
jne 0x140013161
test r10b, r10b
je 0x1400131ff
mov rax, qword [rdi + 0x1bf8]
test rax, rax
jne 0x1400131cd
mov edx, dword [rdi + 0x1a38]
mov r9, qword [0x1401a8f90]
sub edx, r15d
movsxd r8, edx
js 0x1400131ff
mov r11d, dword [r9 + 0x1a38]
nop dword [rax]
cmp edx, r11d
jge 0x1400131ff
mov rax, qword [r9 + 0x1a40]
mov rcx, qword [rax + r8*8]
cmp byte [rcx + 0x7e], sil
je 0x1400131b8
cmp rcx, qword [rcx + 0x368]
jne 0x1400131b8
test dword [rcx + 0xc], 0x80000
je 0x1400131c1
dec edx
sub r8, r15
jns 0x140013190
jmp 0x1400131ff
movsxd rcx, edx
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1400131ff
mov rax, qword [rax + 0x368]
xor r10b, r15b
mov qword [rdi + 0x1d20], rax
mov qword [rdi + 0x1d18], rax
movzx eax, r10b
mov byte [rdi + 0x1d38], al
add eax, 3
mov dword [rdi + 0x1c2c], eax
mov qword [rdi + 0x1d30], rsi
mov r10, qword [rdi + 0x1d18]
movss xmm0, dword [rdi + 0x18]
mov rcx, r10
movss xmm7, dword [0x14004a424]
addss xmm0, dword [rdi + 0x1d30]
movss dword [rdi + 0x1d30], xmm0
test r10, r10
je 0x140013305
cmp dword [rdi + 0x1c2c], 4
jne 0x14001330e
subss xmm0, dword [0x14004a3d8]
divss xmm0, dword [0x14004a3cc]
comiss xmm6, xmm0
jbe 0x140013256
movaps xmm1, xmm6
jmp 0x14001325d
movaps xmm1, xmm7
minss xmm1, xmm0
movss xmm5, dword [rdi + 0x1d34]
mov edx, 4
maxss xmm5, xmm1
lea ecx, [rdx + 9]
movss dword [rdi + 0x1d34], xmm5
call fcn.140010e30
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.140010e30
comiss xmm0, xmm6
mov eax, esi
mov rcx, r10
seta al
sub eax, r9d
je 0x1400132bb
mov ecx, eax
call fcn.140012ee0
mov rcx, qword [rdi + 0x1d18]
movaps xmm5, xmm7
mov dword [rdi + 0x1d34], 0x3f800000
mov rax, qword [0x1401a8f90]
movss xmm0, dword [rax + 0x358]
comiss xmm0, xmm6
ja 0x140013305
comiss xmm7, xmm5
seta al
and byte [rdi + 0x1d38], al
je 0x1400132f6
cmp qword [rdi + 0x1bf8], rsi
je 0x1400132f9
movzx r14d, r15b
mov qword [rdi + 0x1d18], rsi
jmp 0x14001339c
mov rbp, rcx
mov qword [rdi + 0x1d18], rsi
jmp 0x14001339c
test rcx, rcx
je 0x14001339c
cmp dword [rdi + 0x1c2c], 3
jne 0x14001339c
movss xmm0, dword [rdi + 0x1d30]
subss xmm0, dword [0x14004a3d8]
divss xmm0, dword [0x14004a3cc]
comiss xmm6, xmm0
jbe 0x14001333d
movaps xmm7, xmm6
jmp 0x140013341
minss xmm7, xmm0
movss xmm0, dword [rdi + 0x1d34]
mov rax, qword [0x1401a8f90]
maxss xmm0, xmm7
movss dword [rdi + 0x1d34], xmm0
mov edx, dword [rax + 0x3c]
test edx, edx
js 0x140013391
mov ecx, edx
call fcn.1400083f0
mov rcx, qword [rdi + 0x1d18]
test al, al
je 0x140013391
cmp byte [rdi + 0x149], sil
mov ecx, 0xffffffff
cmovne ecx, r15d
call fcn.140012ee0
mov rcx, qword [rdi + 0x1d18]
cmp byte [rdi + 0x148], sil
cmove rbp, rcx
mov edx, r15d
mov ecx, 0x10
call fcn.140010e30
comiss xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x1400133b9
mov byte [rdi + 0x1d38], dl
cmp dword [rdi + 0x1ac8], esi
je 0x1400133ca
cmp byte [rdi + 0x1ad5], sil
je 0x14001340a
cmp byte [rdi + 0x1d38], sil
je 0x14001340a
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.140010e30
comiss xmm0, xmm6
jbe 0x14001340a
lea rcx, [rdi + 0x3cc]
call fcn.140008660
lea rcx, [rdi + 0x130]
movzx ebx, al
call fcn.140008660
cmp al, bl
movzx r14d, r14b
cmove r14d, r15d
mov r11, qword [rdi + 0x1d18]
test r11, r11
je 0x14001351d
test byte [r11 + 0xc], 4
jne 0x14001351d
mov eax, dword [rdi + 0x1c2c]
cmp eax, 3
jne 0x14001344a
cmp byte [rdi + 0x149], sil
jne 0x14001351d
mov edx, r15d
lea rcx, [rsp + 0x88]
jmp 0x14001345d
cmp eax, 4
jne 0x14001351d
mov edx, eax
lea rcx, [rsp + 0x90]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
call fcn.140010fb0
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x140013486
jne 0x140013486
ucomiss xmm4, xmm6
jp 0x140013486
je 0x14001351d
movss xmm1, dword [rdi + 0xc0]
lea rdx, [rsp + 0x80]
movss xmm0, dword [rdi + 0x18]
mov r8d, r15d
minss xmm1, dword [rdi + 0xc4]
mov rcx, qword [r11 + 0x368]
mulss xmm0, dword [0x14004a4a0]
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.14000da50
mov rax, qword [rdi + 0x1d18]
mov rcx, qword [0x1401a8f90]
mov byte [rdi + 0x1c4f], r15b
test dword [rax + 0xc], 0x100
jne 0x14001351d
comiss xmm6, dword [rcx + 0x2f94]
jb 0x14001351d
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x2f94], eax
movaps xmm6, xmmword [rsp + 0x40]
test rbp, rbp
je 0x1400135e8
mov rax, qword [rdi + 0x1bf8]
test rax, rax
je 0x140013544
cmp rbp, qword [rax + 0x368]
je 0x1400135e1
mov rdx, qword [0x1401a8f90]
mov ecx, dword [rdx + 0x1ac8]
test ecx, ecx
setne al
mov byte [rdx + 0x1ad4], al
test ecx, ecx
je 0x14001356d
mov dword [rdx + 0x1ad0], esi
mov word [rdx + 0x1ad6], si
mov dword [rdx + 0x1ac8], esi
mov byte [rdx + 0x1ad5], sil
mov qword [rdx + 0x1af8], rsi
mov byte [rdx + 0x1ad8], sil
mov qword [rdx + 0x1adc], rsi
mov qword [rdx + 0x1ae8], rsi
mov word [rdi + 0x1c4e], 0x100
mov rax, qword [rbp + 0x380]
test rax, rax
cmovne rbp, rax
xor edx, edx
mov rcx, rbp
call fcn.14000f2f0
mov rcx, rbp
call fcn.14000d470
cmp dword [rbp + 0x388], esi
jne 0x1400135d1
xor edx, edx
mov rcx, rbp
call fcn.140010bd0
cmp dword [rbp + 0x144], 2
jne 0x1400135e1
mov dword [rdi + 0x1c44], r15d
mov qword [rdi + 0x1d18], rsi
mov r15, qword [rsp + 0x50]
test r14b, r14b
je 0x140013692
mov rbp, qword [rdi + 0x1bf8]
test rbp, rbp
je 0x140013692
lea rcx, [rbp + 0x360]
mov rbx, rbp
cmp qword [rcx], rsi
je 0x140013650
test byte [rbx + 0x144], 2
jne 0x14001363c
mov eax, dword [rbx + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x14001363c
mov rbx, qword [rcx]
lea rcx, [rbx + 0x360]
cmp qword [rcx], rsi
jne 0x140013615
cmp rbx, rbp
je 0x140013650
mov rcx, rbx
call fcn.14000d470
mov qword [rbx + 0x380], rbp
mov rax, qword [rdi + 0x1bf8]
mov rbx, qword [0x1401a8f90]
mov word [rdi + 0x1c4e], 0x100
test byte [rax + 0x144], 2
je 0x1400136a4
mov esi, dword [rdi + 0x1c44]
xor esi, 1
mov dword [rbx + 0x1c44], esi
je 0x1400136aa
mov rdi, qword [rbx + 0x1bf8]
mov dl, 1
mov rcx, rdi
call fcn.140010bd0
mov rbx, qword [rsp + 0x98]
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rbx + 0x1c44], esi
mov rcx, qword [rbx + 0x1bf8]
mov rax, qword [rcx + 0x380]
test rax, rax
cmovne rcx, rax
mov qword [rbx + 0x1bf8], rcx
mov rdi, rcx
test esi, esi
jne 0x140013688
mov ecx, dword [rcx + 0x388]
test ecx, ecx
je 0x140013688
xor r8d, r8d
xor edx, edx
call fcn.1400101b0
movups xmm0, xmmword [rdi + 0x390]
mov rax, qword [rbx + 0x1bf8]
movups xmmword [rax + 0x390], xmm0
mov word [rbx + 0x1c4d], 1
mov byte [rbx + 0x1c4f], 1
jmp 0x140013692