Function at 0x14011c18e
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
mov edi, 2
cmp rdx, 1
je 0x14011c1be
lea rax, [rdx - 1]
test rdx, rax
jne 0x14011c1b3
mov rdi, rdx
jmp 0x14011c1be
mov rcx, rdx
call fcn.140028810
mov rdi, rax
mov rsi, qword [r14 + 8]
cmp rdi, rsi
ja 0x14011c2b7
jae 0x14011c2cb
mov rax, qword [r14 + 0x18]
test rax, rax
js 0x14011c1e1
cvtsi2ss xmm0, rax
jmp 0x14011c1f6
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [r14 + 0x20]
call fcn.140166680
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140179d30]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x14011c2a3
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rbx, rsi
sub rbx, rdx
movabs rdx, 0x3333333333333333
mov rcx, rbx
shr rcx, 2
and rbx, rdx
and rcx, rdx
add rcx, rbx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x14011c2a3
cmp rax, 2
jb 0x14011c2ab
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14011c2ab
mov rcx, rax
call fcn.140028810
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rsi
jae 0x14011c2cb
mov rcx, r14
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x14011c2d6
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rcx
test rdx, rdx
je 0x14011c3b8
mov r14, rdx
mov rax, rdx
shr rax, 0x3d
jne 0x14011c4c6
lea rcx, [r14*8]
call fcn.1401364e8
mov rcx, qword [r15]
mov qword [r15], rax
test rcx, rcx
je 0x14011c31f
call fcn.140136524
mov qword [r15 + 8], r14
xor eax, eax
mov rcx, qword [r15]
mov qword [rcx + rax*8], 0
inc rax
cmp r14, rax
jne 0x14011c325
mov r11, qword [r15 + 0x10]
test r11, r11
je 0x14011c4b5
lea rcx, [r15 + 0x10]
mov r8, qword [r11 + 8]
mov rax, r14
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r14
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
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 0x14011c3d9
lea rax, [r14 - 1]
and r8, rax
jmp 0x14011c3e9
mov rcx, qword [r15]
mov qword [r15], 0
test rcx, rcx
je 0x14011c3cc
call fcn.140136524
mov qword [r15 + 8], 0
jmp 0x14011c4b5
cmp r8, r14
jb 0x14011c3e9
mov rax, r8
xor edx, edx
div r14
mov r8, rdx
mov rax, qword [r15]
mov qword [rax + r8*8], rcx
mov r13, qword [r11]
test r13, r13
je 0x14011c4b5
lea r10, [r14 - 1]
mov rax, qword [r13 + 8]
cmp r9d, 1
ja 0x14011c40f
and rax, r10
jmp 0x14011c41c
cmp rax, r14
jb 0x14011c41c
xor edx, edx
div r14
mov rax, rdx
cmp rax, r8
jne 0x14011c429
mov r11, r13
jmp 0x14011c4a9
mov rcx, qword [r15]
cmp qword [rcx + rax*8], 0
je 0x14011c47d
mov rdx, qword [r13]
test rdx, rdx
je 0x14011c489
mov rdi, qword [r13 + 0x18]
mov r12, r13
mov rbx, rdx
cmp rdi, qword [rdx + 0x18]
jne 0x14011c48e
test rdi, rdi
je 0x14011c46d
mov rsi, qword [rbx + 0x10]
mov rdx, qword [r13 + 0x10]
xor ecx, ecx
movzx ebp, word [rdx + rcx*2]
cmp bp, word [rsi + rcx*2]
jne 0x14011c48e
inc rcx
cmp rdi, rcx
jne 0x14011c45b
mov rdx, qword [rbx]
mov r12, rbx
test rdx, rdx
jne 0x14011c443
mov r12, rbx
jmp 0x14011c48c
mov qword [rcx + rax*8], r11
mov r11, r13
mov r8, rax
jmp 0x14011c4a9
mov r12, r13
xor ebx, ebx
mov qword [r11], rbx
mov rcx, qword [r15]
mov rcx, qword [rcx + rax*8]
mov rcx, qword [rcx]
mov qword [r12], rcx
mov rcx, qword [r15]
mov rax, qword [rcx + rax*8]
mov qword [rax], r13
mov r13, qword [r11]
test r13, r13
jne 0x14011c400
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14014b3e0
int3