Function at 0x140048ba0
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 0x140048cc9
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
ja 0x140048e78
lea r15, [r13 - 1]
and r15, rbx
mov rax, qword [rdi]
mov r14, qword [rax + r15*8]
test r14, r14
je 0x140048cd3
lea r10, [r13 - 1]
mov r14, qword [r14]
test r14, r14
je 0x140048cd3
mov rax, qword [r14 + 8]
cmp rax, rbx
jne 0x140048cb0
cmp qword [r14 + 0x10], rcx
jne 0x140048c84
xor eax, eax
cmp qword [r14 + 0x18], r8
je 0x140048d98
jmp 0x140048c84
cmp rax, r15
je 0x140048c95
jmp 0x140048cd3
cmp r9d, 1
jbe 0x140048ec9
cmp rax, r13
jb 0x140048ca9
xor edx, edx
div r13
mov rax, rdx
jmp 0x140048ca9
movabs r15, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x40
call fcn.14017b1d8
mov r14, rax
mov rax, qword [r12]
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x30], xmm0
mov qword [r14 + 8], rbx
mov qword [r14], 0
mov rax, qword [rdi + 0x18]
inc rax
js 0x140048d17
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140048d2f
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 0x140048d4a
cvtsi2ss xmm1, r13
jmp 0x140048d53
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rdi + 0x20]
je 0x140048db1
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140048db1
mov rcx, qword [rdi]
mov rax, qword [rcx + r15*8]
test rax, rax
jne 0x140048ec1
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
jne 0x140048e94
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.14019b6a8
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14025dc48]
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 0x140048fec
or rcx, rdx
cmp rcx, rax
cmovbe rcx, rax
mov r12d, 2
cmp rcx, 1
jne 0x140048ed1
cmp r12, r13
jbe 0x140048ffd
mov r15, r12
mov rax, r15
shr rax, 0x3d
jne 0x140049016
lea rcx, [r15*8]
call fcn.14017b1d8
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
jne 0x140048f08
mov qword [rdi + 8], r15
xor eax, eax
mov rcx, qword [rdi]
mov qword [rcx + rax*8], 0
inc rax
cmp r15, rax
jne 0x140048e43
mov r8, qword [rdi + 0x10]
test r8, r8
jne 0x140048f12
mov r13, qword [rdi + 8]
lea r15, [r13 - 1]
test r13, r15
jne 0x140048eef
and r15, rbx
jmp 0x140048d63
mov r15, rbx
cmp rbx, r13
jb 0x140048c74
mov rax, rbx
xor edx, edx
div r13
mov r15, rdx
jmp 0x140048c74
mov rax, qword [rax + 8]
lea rcx, [r13 - 1]
test r13, rcx
je 0x140048fe4
cmp rax, r13
jb 0x140048eb2
xor edx, edx
div r13
mov rax, rdx
shl rax, 3
add rax, qword [rdi]
mov qword [rax], r14
jmp 0x140048d92
mov rcx, qword [rax]
mov qword [r14], rcx
jmp 0x140048eb9
and rax, r10
jmp 0x140048ca9
lea rax, [rcx - 1]
test rcx, rax
je 0x14004912c
call fcn.14011dd70
mov r12, rax
mov r13, qword [rdi + 8]
jmp 0x140048e08
cmp rbx, r13
jb 0x140049134
mov rax, rbx
xor edx, edx
div r13
mov r15, rdx
jmp 0x140048d63
call fcn.14017b254
jmp 0x140048e3d
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 0x14004913c
cmp rcx, r15
jb 0x140048f90
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 0x140048e63
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140049148
cmp rax, r15
jb 0x140048fbe
xor edx, edx
div r15
mov rax, rdx
cmp rax, rcx
je 0x140049174
mov rdx, qword [rdi]
cmp qword [rdx + rax*8], 0
jne 0x140049154
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x140048f9a
and rax, rcx
jmp 0x140048eb2
lea r8, [r13 - 1]
xor ecx, ecx
test r13, r8
setne cl
jmp 0x140048dee
jae 0x140048e63
mov rax, qword [rdi + 0x18]
test rax, rax
js 0x14004901b
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140049033
call fcn.1401be9c0
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.14019b6a8
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14025dc48]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r13, 3
jb 0x1400490e7
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 0x1400490e7
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 0x1400490f2
mov rcx, rax
call fcn.14011dd70
mov r15, rax
cmp r12, r15
cmova r15, r12
cmp r15, r13
jae 0x140048e63
test r15, r15
jne 0x140048e14
mov rcx, qword [rdi]
mov qword [rdi], 0
test rcx, rcx
je 0x14004911f
call fcn.14017b254
mov qword [rdi + 8], 0
jmp 0x140048e63
mov r12, rcx
jmp 0x140048e08
mov r15, rbx
jmp 0x140048d63
lea rax, [r15 - 1]
and rcx, rax
jmp 0x140048f90
lea rdx, [r15 - 1]
and rax, rdx
jmp 0x140048fbe
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
mov rax, rcx
jmp 0x140048fd9