Function at 0x1400139c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r12, r9
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [r8]
mov r8, qword [r8 + 8]
mov rax, rcx
shr rax, 0x20
mov rdx, r8
shr rdx, 0x20
mov r9d, ecx
imul r9, r9, 0x32348c9d
imul rax, rax, 0x24e62a03
mov r10d, r8d
imul r10, r10, 0x37da1fb9
mov ebx, 0xc54622fd
imul rbx, rdx
add rbx, r10
add rbx, rax
add rbx, r9
mov r13, qword [rdi + 8]
test r13, r13
je 0x140013ce2
mov rax, r13
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r13
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140013ccb
mov r15, rbx
cmp rbx, r13
jb 0x140013aa0
mov rax, rbx
xor edx, edx
div r13
mov r15, rdx
mov rax, qword [rdi]
mov r14, qword [rax + r15*8]
test r14, r14
jne 0x140013c7e
mov ecx, 0x28
call fcn.140172a4c
mov r14, rax
movups xmm0, xmmword [r12]
movups xmmword [rax + 0x10], xmm0
mov rax, qword [r12 + 0x10]
mov qword [r14 + 0x20], rax
xor eax, eax
mov qword [r12 + 0x10], rax
mov qword [r14 + 8], rbx
mov qword [r14], rax
mov rax, qword [rdi + 0x18]
inc rax
js 0x140013af0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140013b08
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, r13
shr rcx, 1
mov eax, r13d
and eax, 1
or rax, rcx
test r13, r13
js 0x140013b23
cvtsi2ss xmm1, r13
jmp 0x140013b2c
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rdi + 0x20]
je 0x140013bae
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140013bae
mov rcx, qword [rdi]
mov rax, qword [rcx + r15*8]
test rax, rax
jne 0x140013cd7
lea rax, [rdi + 0x10]
mov rdx, qword [rdi + 0x10]
mov qword [r14], rdx
mov qword [rdi + 0x10], r14
mov qword [rcx + r15*8], rax
mov rax, qword [r14]
test rax, rax
je 0x140013b8f
mov rax, qword [rax + 8]
lea rcx, [r13 - 1]
test r13, rcx
je 0x140013df3
cmp rax, r13
jb 0x140013b85
xor edx, edx
div r13
mov rax, rdx
shl rax, 3
add rax, qword [rdi]
mov qword [rax], r14
inc qword [rdi + 0x18]
mov al, 1
mov qword [rsi], r14
mov byte [rsi + 8], al
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
divss xmm0, xmm2
call fcn.140190fd4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14024eb68]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
mov rdx, r13
add rdx, r13
mov ecx, 1
cmp r13, 3
jae 0x140013dfb
or rcx, rdx
cmp rcx, rax
cmovbe rcx, rax
mov r12d, 2
cmp rcx, 1
jne 0x140013cf1
mov r13, qword [rdi + 8]
cmp r12, r13
jbe 0x140013e2e
mov r15, r12
mov rax, r15
shr rax, 0x3d
jne 0x140013e47
lea rcx, [r15*8]
call fcn.140172a4c
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x140013c3f
call fcn.140172a44
mov qword [rdi + 8], r15
xor eax, eax
mov rcx, qword [rdi]
mov qword [rcx + rax*8], 0
inc rax
cmp r15, rax
jne 0x140013c45
mov r8, qword [rdi + 0x10]
test r8, r8
jne 0x140013d24
mov r13, qword [rdi + 8]
lea r15, [r13 - 1]
test r13, r15
jne 0x140013d0b
and r15, rbx
jmp 0x140013b3c
lea r10, [r13 - 1]
mov r14, qword [r14]
test r14, r14
je 0x140013ab0
mov rax, qword [r14 + 8]
cmp rax, rbx
je 0x140013cb3
cmp r9d, 1
jbe 0x140013cc6
cmp rax, r13
jb 0x140013caa
xor edx, edx
div r13
mov rax, rdx
cmp rax, r15
jne 0x140013ab0
cmp qword [r14 + 0x10], rcx
jne 0x140013c82
xor eax, eax
cmp qword [r14 + 0x18], r8
jne 0x140013c82
jmp 0x140013b95
and rax, r10
jmp 0x140013caa
lea r15, [r13 - 1]
and r15, rbx
jmp 0x140013aa0
mov rcx, qword [rax]
mov qword [r14], rcx
jmp 0x140013b8c
movabs r15, 0xaaaaaaaaaaaaaaaa
jmp 0x140013ab0
lea rax, [rcx - 1]
test rcx, rax
je 0x140013e58
call fcn.14010a4c0
mov r12, rax
jmp 0x140013c05
cmp rbx, r13
jb 0x140013e60
mov rax, rbx
xor edx, edx
div r13
mov r15, rdx
jmp 0x140013b3c
lea r10, [rdi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, r15
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r15
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140013e68
cmp rcx, r15
jb 0x140013da2
mov rax, rcx
xor edx, edx
div r15
mov rcx, rdx
mov rax, qword [rdi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140013c65
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140013e4c
cmp rax, r15
jb 0x140013dd0
xor edx, edx
div r15
mov rax, rdx
cmp rax, rcx
je 0x140013dee
mov rdx, qword [rdi]
cmp qword [rdx + rax*8], 0
jne 0x140013e0c
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x140013dac
mov rax, rcx
jmp 0x140013de3
and rax, rcx
jmp 0x140013b85
lea r8, [r13 - 1]
xor ecx, ecx
test r13, r8
setne cl
jmp 0x140013beb
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rdi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rdi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
jmp 0x140013dee
jae 0x140013c65
mov rax, qword [rdi + 0x18]
test rax, rax
js 0x140013e74
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140013e8c
call fcn.1401b3360
lea rdx, [r15 - 1]
and rax, rdx
jmp 0x140013dd0
mov r12, rcx
jmp 0x140013c05
mov r15, rbx
jmp 0x140013b3c
lea rax, [r15 - 1]
and rcx, rax
jmp 0x140013da2
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rdi + 0x20]
call fcn.140190fd4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14024eb68]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r13, 3
jb 0x140013f40
mov rcx, r13
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, r13
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x140013f40
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov r15d, 1
shl r15, cl
cmp rax, 2
cmovb r15, rax
jmp 0x140013f4b
mov rcx, rax
call fcn.14010a4c0
mov r15, rax
cmp r12, r15
cmova r15, r12
cmp r15, r13
jae 0x140013c65
test r15, r15
jne 0x140013c15
mov rcx, qword [rdi]
mov qword [rdi], 0
test rcx, rcx
je 0x140013f78
call fcn.140172a44
mov qword [rdi + 8], 0
jmp 0x140013c65