Function at 0x140020410
Capabilities:
Encrypt data using speck

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2d0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
movaps xmmword [rax - 0xc8], xmm14
movaps xmmword [rax - 0xd8], xmm15
mov rax, qword [0x1400ed008]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rax, rcx
mov qword [rsp + 0x78], rcx
xor ecx, ecx
mov dword [rsp + 0x70], edx
mov rbx, r8
mov dword [rsp + 0x6c], ecx
mov r8d, edx
mov dword [rsp + 0x60], 0
movups xmm0, xmmword [rax + 0x70]
mov r12d, 1
lea rdx, [rbp - 0x80]
xor r14d, r14d
mov dword [rsp + 0x64], r12d
movups xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x68], r14d
movups xmm0, xmmword [rax + 0x50]
xor esi, esi
movaps xmmword [rbp - 0x80], xmm0
call fcn.14001de70
movss xmm13, dword [rbp - 0x28]
xorps xmm7, xmm7
movss xmm14, dword [rbp - 0x2c]
xor r10d, r10d
movss xmm15, dword [rbp - 0x30]
movups xmm0, xmmword [rax]
movss xmm10, dword [rbp - 0x34]
movss xmm11, dword [rbp - 0x38]
movss xmm12, dword [rbp - 0x3c]
movss xmm9, dword [rbp - 0x40]
movss xmm8, dword [rbp - 0x18]
movaps xmmword [rsp + 0x50], xmm0
mov r15d, dword [rsp + 0x58]
mov rax, qword [rsp + 0x58]
lea rdx, [0x140000000]
movss xmm5, dword [0x1400ddf90]
mov r11d, 0x46b
shr rax, 0x20
cmp r15d, eax
jge 0x140020744
mov r8, qword [rsp + 0x50]
mov edi, r10d
movsxd rax, r15d
inc r15d
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x58], r15d
movzx r13d, byte [rax + r8]
lea eax, [r13 - 1]
cmp eax, 0x1e
ja case.0x140020579.2
cdqe
mov ecx, dword [rdx + rax*4 + 0x21598]
add rcx, rdx
jmp rcx
mov edi, dword [rsp + 0x60]
test r12d, r12d
je 0x140020591
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov dword [rsp + 0x60], edi
lea eax, [rdi + 7]
mov dword [rsp + 0x64], r10d
cdq
mov r12d, r10d
and edx, 7
add eax, edx
mov edx, dword [rsp + 0x5c]
sar eax, 3
add eax, r15d
mov r15d, eax
cmp eax, edx
jg 0x1400205d3
test eax, eax
js 0x1400205d3
mov ecx, dword [rsp + 0x40]
test ecx, ecx
mov r14d, dword [rsp + 0x68]
mov dword [rsp + 0x58], eax
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
mov ecx, dword [rsp + 0x40]
mov eax, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov r15d, edx
mov dword [rsp + 0x58], edx
cmove eax, esi
mov esi, eax
jmp 0x140020519
mov ecx, dword [rsp + 0x40]
mov eax, esi
mov r14d, dword [rsp + 0x68]
cdq
sub eax, edx
sar eax, 1
add dword [rsp + 0x60], eax
mov eax, r10d
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x140020519
mov dword [rsp + 0x64], r10d
mov r12d, r10d
cmp esi, 2
jl 0x140020744
lea eax, [rsi - 1]
movsxd rcx, eax
lea edx, [rsi - 2]
movsxd rax, edx
movss xmm2, dword [rbp + rcx*4 - 0x40]
mov rcx, rbx
movss xmm1, dword [rbp + rax*4 - 0x40]
call fcn.14001ffc0
mov ecx, dword [rsp + 0x40]
xor r10d, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
mov dword [rsp + 0x64], r10d
mov r12d, r10d
cmp esi, 1
jl 0x140020744
lea eax, [rsi - 1]
movaps xmm1, xmm7
movsxd rcx, eax
movss xmm2, dword [rbp + rcx*4 - 0x40]
mov rcx, rbx
call fcn.14001ffc0
mov ecx, dword [rsp + 0x40]
xor r10d, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
mov dword [rsp + 0x64], r10d
mov r12d, r10d
cmp esi, 1
jl 0x140020744
lea eax, [rsi - 1]
movaps xmm2, xmm7
movsxd rcx, eax
movss xmm1, dword [rbp + rcx*4 - 0x40]
mov rcx, rbx
call fcn.14001ffc0
mov ecx, dword [rsp + 0x40]
xor r10d, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
cmp esi, 2
jl 0x140020744
cmp esi, 1
jle 0x140020e7b
mov r11d, 1
lea r10, [rbp - 0x40]
nop
movss xmm2, dword [r10 + 4]
mov rcx, rbx
movss xmm1, dword [r10]
call fcn.140020090
add r11d, 2
lea r10, [r10 + 8]
cmp r11d, esi
jl 0x140020700
mov ecx, dword [rsp + 0x40]
xor r10d, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
cmp esi, 1
jge 0x140020871
xor eax, eax
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400b8130
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp esi, 1
jl 0x140020744
cmp edi, esi
jge 0x140020e7b
cmp dword [rbx], 0
movss xmm0, dword [rbx + 0x14]
addss xmm0, xmm7
movsxd rax, edi
movss xmm1, dword [rbp + rax*4 - 0x40]
addss xmm1, dword [rbx + 0x10]
movss dword [rbx + 0x14], xmm0
cvttss2si r8d, xmm0
movss dword [rbx + 0x10], xmm1
cvttss2si edx, xmm1
je 0x140020829
cmp edx, dword [rbx + 0x1c]
jg 0x1400207ef
cmp dword [rbx + 4], 0
jne 0x1400207f2
mov dword [rbx + 0x1c], edx
cmp r8d, dword [rbx + 0x24]
jg 0x1400207fe
cmp dword [rbx + 4], 0
jne 0x140020802
mov dword [rbx + 0x24], r8d
cmp edx, dword [rbx + 0x18]
jl 0x14002080d
cmp dword [rbx + 4], 0
jne 0x140020810
mov dword [rbx + 0x18], edx
cmp r8d, dword [rbx + 0x20]
jl 0x14002081c
cmp dword [rbx + 4], 0
jne 0x140020820
mov dword [rbx + 0x20], r8d
mov dword [rbx + 4], 1
jmp 0x14002086c
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
add rcx, qword [rbx + 0x28]
mov byte [rcx + 0xc], 2
mov word [rcx], dx
mov word [rcx + 2], r8w
mov dword [rcx + 4], 0
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 8], r10w
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 0xa], r10w
inc dword [rbx + 0x30]
inc edi
cmp edi, esi
jge 0x140020e7b
cmp dword [rbx], 0
movss xmm1, dword [rbx + 0x10]
addss xmm1, xmm7
movsxd rax, edi
movss xmm0, dword [rbp + rax*4 - 0x40]
addss xmm0, dword [rbx + 0x14]
movss dword [rbx + 0x10], xmm1
cvttss2si edx, xmm1
movss dword [rbx + 0x14], xmm0
cvttss2si r8d, xmm0
je 0x1400208f5
cmp edx, dword [rbx + 0x1c]
jg 0x1400208b3
cmp dword [rbx + 4], 0
jne 0x1400208b6
mov dword [rbx + 0x1c], edx
cmp r8d, dword [rbx + 0x24]
jg 0x1400208c2
cmp dword [rbx + 4], 0
jne 0x1400208c6
mov dword [rbx + 0x24], r8d
cmp edx, dword [rbx + 0x18]
jl 0x1400208d1
cmp dword [rbx + 4], 0
jne 0x1400208d4
mov dword [rbx + 0x18], edx
cmp r8d, dword [rbx + 0x20]
jl 0x1400208e0
cmp dword [rbx + 4], 0
jne 0x1400208e4
mov dword [rbx + 0x20], r8d
inc dword [rbx + 0x30]
inc edi
mov dword [rbx + 4], 1
jmp 0x1400207ad
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
add rcx, qword [rbx + 0x28]
mov byte [rcx + 0xc], 2
mov word [rcx], dx
mov word [rcx + 2], r8w
mov dword [rcx + 4], 0
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 8], r10w
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 0xa], r10w
inc dword [rbx + 0x30]
inc edi
jmp 0x1400207ad
cmp esi, 4
jl 0x140020744
jmp 0x140020a09
cmp esi, 4
jl 0x140020744
lea edx, [rdi + 3]
cmp edx, esi
jge 0x140020e78
mov eax, esi
sub eax, edi
cmp eax, 5
jne 0x14002097b
lea eax, [rdi + 4]
movsxd rcx, eax
movss xmm6, dword [rbp + rcx*4 - 0x40]
jmp 0x14002097e
movaps xmm6, xmm7
movss xmm5, dword [rbx + 0x10]
movsxd rax, edi
addss xmm5, xmm7
movss xmm4, dword [rbp + rax*4 - 0x40]
lea eax, [rdi + 1]
addss xmm4, dword [rbx + 0x14]
movsxd rcx, eax
movaps xmm3, xmm5
lea eax, [rdi + 2]
cvttss2si r10d, xmm5
addss xmm3, dword [rbp + rcx*4 - 0x40]
movsxd rcx, eax
movaps xmm1, xmm4
movsxd rax, edx
cvttss2si edx, xmm4
addss xmm1, dword [rbp + rcx*4 - 0x40]
movaps xmm2, xmm3
addss xmm2, dword [rbp + rax*4 - 0x40]
cvttss2si ecx, xmm3
movaps xmm0, xmm1
movss dword [rbx + 0x10], xmm2
addss xmm0, xmm6
cvttss2si eax, xmm1
cvttss2si r9d, xmm0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
add edi, 4
lea edx, [rdi + 3]
cmp edx, esi
jge 0x140020e78
mov eax, esi
sub eax, edi
cmp eax, 5
jne 0x140020a2b
lea eax, [rdi + 4]
movsxd rcx, eax
movss xmm0, dword [rbp + rcx*4 - 0x40]
jmp 0x140020a2e
movaps xmm0, xmm7
movss xmm4, dword [rbx + 0x14]
movsxd rax, edi
addss xmm4, xmm7
movss xmm5, dword [rbp + rax*4 - 0x40]
lea eax, [rdi + 1]
addss xmm5, dword [rbx + 0x10]
movsxd rcx, eax
movaps xmm1, xmm4
lea eax, [rdi + 2]
movaps xmm3, xmm5
addss xmm3, dword [rbp + rcx*4 - 0x40]
movsxd rcx, eax
movsxd rax, edx
cvttss2si edx, xmm4
addss xmm1, dword [rbp + rcx*4 - 0x40]
movaps xmm2, xmm3
addss xmm2, xmm0
cvttss2si ecx, xmm3
movaps xmm0, xmm1
movss dword [rbx + 0x10], xmm2
addss xmm0, dword [rbp + rax*4 - 0x40]
cvttss2si eax, xmm1
cvttss2si r10d, xmm5
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm0
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
add edi, 4
jmp 0x140020959
cmp esi, 6
jl 0x140020744
cmp esi, 5
jle 0x140020e7b
mov r14d, 5
lea rdi, [rbp - 0x3c]
nop word [rax + rax]
movss xmm5, dword [rdi - 4]
addss xmm5, dword [rbx + 0x10]
movss xmm4, dword [rdi]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm5
addss xmm3, dword [rdi + 4]
movaps xmm1, xmm4
addss xmm1, dword [rdi + 8]
cvttss2si edx, xmm4
movaps xmm2, xmm3
movaps xmm0, xmm1
addss xmm2, dword [rdi + 0xc]
addss xmm0, dword [rdi + 0x10]
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
mov dword [rsp + 0x38], eax
cvttss2si r10d, xmm5
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm0
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
add r14d, 6
add rdi, 0x18
cmp r14d, esi
jl 0x140020ae0
mov ecx, dword [rsp + 0x40]
xor r10d, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
cmp esi, 8
jl 0x140020744
lea r13d, [rsi - 2]
cmp r13d, 5
jle 0x140020c35
mov r12d, 5
lea r14, [rbp - 0x3c]
nop dword [rax]
movss xmm5, dword [r14 - 4]
addss xmm5, dword [rbx + 0x10]
movss xmm4, dword [r14]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm5
addss xmm3, dword [r14 + 4]
movaps xmm1, xmm4
addss xmm1, dword [r14 + 8]
cvttss2si edx, xmm4
movaps xmm2, xmm3
movaps xmm0, xmm1
addss xmm2, dword [r14 + 0xc]
addss xmm0, dword [r14 + 0x10]
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
mov dword [rsp + 0x38], eax
cvttss2si r10d, xmm5
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm0
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
add edi, 6
add r12d, 6
add r14, 0x18
cmp r12d, r13d
jl 0x140020ba0
mov r12d, dword [rsp + 0x64]
xor r10d, r10d
lea eax, [rdi + 1]
cmp eax, esi
jge 0x140020744
movsxd rcx, edi
cdqe
movss xmm1, dword [rbp + rcx*4 - 0x40]
mov rcx, rbx
movss xmm2, dword [rbp + rax*4 - 0x40]
call fcn.140020090
mov ecx, dword [rsp + 0x40]
mov eax, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x140020519
cmp esi, 8
jl 0x140020744
lea r14d, [rsi - 6]
cmp r14d, 1
jle 0x140020cb3
mov r11d, 1
lea r10, [rbp - 0x40]
nop
movss xmm2, dword [r10 + 4]
mov rcx, rbx
movss xmm1, dword [r10]
call fcn.140020090
add edi, 2
lea r10, [r10 + 8]
add r11d, 2
cmp r11d, r14d
jl 0x140020c90
lea edx, [rdi + 5]
cmp edx, esi
jge 0x140020744
movsxd rax, edi
movss xmm5, dword [rbp + rax*4 - 0x40]
lea eax, [rdi + 1]
addss xmm5, dword [rbx + 0x10]
movsxd rcx, eax
lea eax, [rdi + 2]
movss xmm4, dword [rbp + rcx*4 - 0x40]
movaps xmm3, xmm5
addss xmm4, dword [rbx + 0x14]
movsxd rcx, eax
lea eax, [rdi + 3]
addss xmm3, dword [rbp + rcx*4 - 0x40]
movsxd rcx, eax
movaps xmm1, xmm4
lea eax, [rdi + 4]
addss xmm1, dword [rbp + rcx*4 - 0x40]
movsxd rcx, eax
movaps xmm2, xmm3
movsxd rax, edx
addss xmm2, dword [rbp + rcx*4 - 0x40]
movaps xmm0, xmm1
addss xmm0, dword [rbp + rax*4 - 0x40]
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
cvttss2si edx, xmm4
cvttss2si r10d, xmm5
cvttss2si r9d, xmm0
cvttss2si r8d, xmm2
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
call fcn.14001fdf0
mov ecx, dword [rsp + 0x40]
xor r10d, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
cmp esi, 4
jl 0x140020744
movaps xmm5, xmm7
test sil, 1
je 0x140020d8c
movaps xmm5, xmm9
mov edi, 1
lea r14d, [rdi + 3]
cmp r14d, esi
jge 0x140020e7b
mov eax, edi
lea rdi, [rbp - 0x3c]
lea rdi, [rdi + rax*4]
movss xmm4, dword [rdi - 4]
cmp r13d, 0x1b
jne 0x140020de1
addss xmm4, dword [rbx + 0x10]
addss xmm5, dword [rbx + 0x14]
movaps xmm3, xmm4
addss xmm3, dword [rdi]
movaps xmm1, xmm5
addss xmm1, dword [rdi + 4]
cvttss2si edx, xmm5
movaps xmm2, xmm3
movaps xmm0, xmm1
addss xmm2, dword [rdi + 8]
addss xmm0, xmm7
cvttss2si r10d, xmm4
jmp 0x140020e12
addss xmm5, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm5
addss xmm3, dword [rdi]
movaps xmm1, xmm4
addss xmm1, dword [rdi + 4]
cvttss2si edx, xmm4
movaps xmm2, xmm3
movaps xmm0, xmm1
addss xmm0, dword [rdi + 8]
addss xmm2, xmm7
cvttss2si r10d, xmm5
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
mov dword [rsp + 0x38], eax
cvttss2si r9d, xmm0
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
add r14d, 4
add rdi, 0x10
movaps xmm5, xmm7
cmp r14d, esi
jl 0x140020da3
mov ecx, dword [rsp + 0x40]
xor r10d, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
xor r10d, r10d
mov ecx, dword [rsp + 0x40]
mov eax, r10d
mov r14d, dword [rsp + 0x68]
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x140020519
cmp dword [rsp + 0x6c], 0
mov rdi, qword [rsp + 0x78]
jne 0x140020ed8
cmp dword [rdi + 0x9c], 0
je 0x140020ec9
mov r8d, dword [rsp + 0x70]
lea rcx, [rbp - 0x60]
mov rdx, rdi
call fcn.140020130
xor r10d, r10d
mov r11d, 0x46b
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
mov dword [rsp + 0x6c], 1
jmp 0x140020ed8
mov rdi, qword [rsp + 0x78]
cmp esi, 1
jl 0x140020744
dec esi
movsxd rax, esi
cvttss2si r9d, dword [rbp + rax*4 - 0x40]
cmp r14d, 0xa
jge 0x140020744
movaps xmm0, xmmword [rsp + 0x50]
movsxd rax, r14d
inc r14d
add rax, rax
mov dword [rsp + 0x68], r14d
movups xmmword [rbp + rax*8 + 0x80], xmm0
lea rax, [rbp - 0x70]
cmp r13d, 0xa
je 0x140020f20
lea rax, [rdi + 0x60]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x50], xmm0
mov r8, qword [rsp + 0x50]
psrldq xmm0, 8
movq rax, xmm0
shr rax, 0x20
test eax, eax
mov eax, dword [rsp + 0x5c]
js 0x140020f5d
mov ecx, r10d
mov dword [rsp + 0x58], ecx
test eax, eax
jle 0x140020f63
movzx edx, byte [r8]
mov ecx, 1
mov dword [rsp + 0x58], ecx
jmp 0x140020f65
mov ecx, eax
mov dword [rsp + 0x58], eax
xor dl, dl
movzx edx, dl
cmp ecx, eax
jl 0x140020f70
xor al, al
jmp 0x140020f7e
movsxd rax, ecx
inc ecx
mov dword [rsp + 0x58], ecx
movzx eax, byte [rax + r8]
shl edx, 8
movzx eax, al
or edx, eax
cmp edx, 0x846c
jb 0x140020f95
mov eax, 0x8000
jmp 0x140020fa4
cmp edx, 0x4d8
mov eax, 0x6b
cmovae eax, r11d
lea r8d, [rax + r9]
test r8d, r8d
js 0x140020fd3
cmp r8d, edx
jge 0x140020fd3
movaps xmm0, xmmword [rsp + 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.14001de70
xor r10d, r10d
movups xmm0, xmmword [rax]
jmp 0x140020fe3
mov qword [rbp - 0x80], r10
mov qword [rbp - 0x78], 0
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm0
psrldq xmm0, 8
movq rax, xmm0
shr rax, 0x20
test eax, eax
je 0x140020744
mov r15d, r10d
mov dword [rsp + 0x58], r10d
jmp 0x14002156e
test r14d, r14d
jle 0x140020744
dec r14d
movsxd rax, r14d
add rax, rax
mov dword [rsp + 0x68], r14d
movups xmm0, xmmword [rbp + rax*8 + 0x80]
movups xmmword [rsp + 0x50], xmm0
mov r15d, dword [rsp + 0x58]
jmp 0x14002156e
mov rax, qword [rsp + 0x58]
shr rax, 0x20
cmp r15d, eax
jl 0x14002104c
xor al, al
jmp 0x14002105c
movsxd rax, r15d
inc r15d
mov dword [rsp + 0x58], r15d
movzx eax, byte [rax + r8]
movzx ecx, al
sub ecx, 0x22
je 0x14002138f
sub ecx, 1
je 0x1400212d9
sub ecx, 1
je 0x1400211f2
cmp ecx, 1
jne 0x140020744
cmp esi, 0xb
jl 0x140020744
movss xmm0, dword [rbp - 0x18]
xorps xmm1, xmm1
movaps xmm6, xmm0
movaps xmm8, xmm0
xorps xmm0, xmm0
movaps xmm3, xmm11
addss xmm3, xmm9
movaps xmm4, xmm10
addss xmm4, xmm12
addss xmm3, xmm15
addss xmm4, xmm14
addss xmm3, xmm13
addss xmm4, dword [rbp - 0x24]
addss xmm3, dword [rbp - 0x20]
addss xmm4, dword [rbp - 0x1c]
cvtss2sd xmm0, xmm3
cvtss2sd xmm1, xmm4
andps xmm0, xmmword [0x1400ddf80]
andps xmm1, xmmword [0x1400ddf80]
cvtpd2ps xmm2, xmm0
cvtpd2ps xmm0, xmm1
comiss xmm2, xmm0
jbe 0x1400210f9
movaps xmm6, xmm4
xorps xmm6, xmm5
jmp 0x140021101
movaps xmm8, xmm3
xorps xmm8, xmm5
movaps xmm5, xmm9
movaps xmm4, xmm12
addss xmm5, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm11
movaps xmm1, xmm10
movaps xmm2, xmm15
movaps xmm0, xmm14
addss xmm3, xmm5
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm2, xmm3
cvttss2si ecx, xmm3
addss xmm0, xmm1
movss dword [rbx + 0x10], xmm2
cvttss2si eax, xmm1
cvttss2si r10d, xmm5
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm0
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
movss xmm3, dword [rbp - 0x20]
movaps xmm5, xmm13
addss xmm5, dword [rbx + 0x10]
movss xmm1, dword [rbp - 0x1c]
movss xmm4, dword [rbp - 0x24]
addss xmm4, dword [rbx + 0x14]
addss xmm3, xmm5
cvttss2si r10d, xmm5
cvttss2si edx, xmm4
addss xmm1, xmm4
movaps xmm2, xmm3
addss xmm2, xmm8
cvttss2si ecx, xmm3
movaps xmm0, xmm1
movss dword [rbx + 0x10], xmm2
addss xmm0, xmm6
cvttss2si eax, xmm1
cvttss2si r9d, xmm0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
movss xmm8, dword [rbp - 0x18]
jmp 0x140020d56
cmp esi, 9
jl 0x140020744
movaps xmm1, xmm10
movaps xmm4, xmm12
addss xmm4, dword [rbx + 0x14]
movaps xmm5, xmm9
movaps xmm3, xmm11
addss xmm5, dword [rbx + 0x10]
movaps xmm2, xmm15
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm3, xmm5
cvttss2si r10d, xmm5
movaps xmm0, xmm1
addss xmm2, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
mov dword [rsp + 0x38], eax
cvttss2si r9d, xmm0
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
movss xmm1, dword [rbp - 0x24]
movaps xmm6, xmm14
addss xmm6, dword [rbx + 0x10]
movss xmm5, dword [rbx + 0x14]
movaps xmm2, xmm1
movss xmm3, dword [rbp - 0x20]
addss xmm5, xmm7
movaps xmm0, xmm10
movaps xmm4, xmm13
addss xmm0, xmm12
addss xmm4, xmm6
cvttss2si r10d, xmm6
addss xmm2, xmm5
addss xmm0, xmm1
addss xmm3, xmm4
cvttss2si ecx, xmm4
movaps xmm1, xmm2
movss dword [rbx + 0x10], xmm3
subss xmm1, xmm0
cvttss2si eax, xmm2
movss dword [rbx + 0x14], xmm1
cvttss2si r9d, xmm1
cvttss2si edx, xmm5
cvttss2si r8d, xmm3
jmp 0x140020d3b
cmp esi, 0xd
jl 0x140020744
movaps xmm5, xmm9
movaps xmm4, xmm12
addss xmm5, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm11
movaps xmm1, xmm10
movaps xmm2, xmm15
movaps xmm0, xmm14
addss xmm3, xmm5
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm2, xmm3
cvttss2si ecx, xmm3
addss xmm0, xmm1
movss dword [rbx + 0x10], xmm2
cvttss2si eax, xmm1
cvttss2si r10d, xmm5
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm0
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
movss xmm4, dword [rbp - 0x24]
movaps xmm5, xmm13
addss xmm5, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
movss xmm3, dword [rbp - 0x20]
movaps xmm2, xmm8
movss xmm1, dword [rbp - 0x1c]
movss xmm0, dword [rbp - 0x14]
addss xmm3, xmm5
addss xmm1, xmm4
addss xmm2, xmm3
addss xmm0, xmm1
jmp 0x140020d16
cmp esi, 7
jl 0x140020744
movss xmm4, dword [rbx + 0x14]
movaps xmm1, xmm11
addss xmm4, xmm7
movaps xmm5, xmm9
addss xmm5, dword [rbx + 0x10]
movaps xmm3, xmm12
movaps xmm2, xmm10
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm3, xmm5
cvttss2si r10d, xmm5
movaps xmm0, xmm1
addss xmm2, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
mov dword [rsp + 0x38], eax
cvttss2si r9d, xmm0
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.14001fdf0
movss xmm4, dword [rbx + 0x14]
movaps xmm5, xmm15
addss xmm5, dword [rbx + 0x10]
addss xmm4, xmm7
movaps xmm3, xmm14
movaps xmm2, xmm13
addss xmm3, xmm5
movaps xmm1, xmm4
subss xmm1, xmm11
addss xmm2, xmm3
movaps xmm0, xmm1
addss xmm0, xmm7
jmp 0x140020d16
cmp r13d, 0xff
je 0x140021498
cmp r13d, 0x1c
je 0x14002145d
lea eax, [r13 - 0x20]
cmp eax, 0xde
ja 0x140020744
mov eax, dword [rsp + 0x5c]
dec r15d
cmp r15d, eax
jg 0x140021473
mov dword [rsp + 0x58], r15d
test r15d, r15d
jns 0x140021477
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x50]
call fcn.14001daf0
mov r15d, dword [rsp + 0x58]
xor r10d, r10d
movsx ecx, ax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
jmp 0x14002152a
mov edx, dword [rsp + 0x5c]
cmp r15d, edx
jl 0x1400214a5
xor al, al
jmp 0x1400214b5
movsxd rax, r15d
inc r15d
mov dword [rsp + 0x58], r15d
movzx eax, byte [rax + r8]
movzx ecx, al
cmp r15d, edx
jl 0x1400214c1
xor al, al
jmp 0x1400214d1
movsxd rax, r15d
inc r15d
mov dword [rsp + 0x58], r15d
movzx eax, byte [rax + r8]
shl ecx, 8
movzx eax, al
or ecx, eax
cmp r15d, edx
jl 0x1400214e2
xor al, al
jmp 0x1400214f2
movsxd rax, r15d
inc r15d
mov dword [rsp + 0x58], r15d
movzx eax, byte [rax + r8]
shl ecx, 8
movzx eax, al
or ecx, eax
cmp r15d, edx
jl 0x140021503
xor al, al
jmp 0x140021513
movsxd rax, r15d
inc r15d
mov dword [rsp + 0x58], r15d
movzx eax, byte [rax + r8]
shl ecx, 8
movzx eax, al
or ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1400ddaf4]
cmp esi, 0x30
jge 0x140020744
movsxd rax, esi
inc esi
movss dword [rbp + rax*4 - 0x40], xmm0
movss xmm13, dword [rbp - 0x28]
movss xmm14, dword [rbp - 0x2c]
movss xmm15, dword [rbp - 0x30]
movss xmm10, dword [rbp - 0x34]
movss xmm11, dword [rbp - 0x38]
movss xmm12, dword [rbp - 0x3c]
movss xmm9, dword [rbp - 0x40]
movss xmm8, dword [rbp - 0x18]
mov r14d, dword [rsp + 0x68]
mov ecx, r10d
test ecx, ecx
mov eax, r10d
cmove eax, esi
mov esi, eax
jmp 0x140020519
mov rcx, rbx
call fcn.14001ff10
mov eax, 1
jmp 0x140020746