Function at 0x14011c4ce
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 0x14011c4fe
lea rax, [rdx - 1]
test rdx, rax
jne 0x14011c4f3
mov rdi, rdx
jmp 0x14011c4fe
mov rcx, rdx
call fcn.1400288e0
mov rdi, rax
mov rsi, qword [r14 + 8]
cmp rdi, rsi
ja 0x14011c5f7
jae 0x14011c60b
mov rax, qword [r14 + 0x18]
test rax, rax
js 0x14011c521
cvtsi2ss xmm0, rax
jmp 0x14011c536
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.1401669c0
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14017ad30]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x14011c5e3
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 0x14011c5e3
cmp rax, 2
jb 0x14011c5eb
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14011c5eb
mov rcx, rax
call fcn.1400288e0
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rsi
jae 0x14011c60b
mov rcx, r14
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x14011c616
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 0x14011c6f8
mov r14, rdx
mov rax, rdx
shr rax, 0x3d
jne 0x14011c806
lea rcx, [r14*8]
call fcn.140136828
mov rcx, qword [r15]
mov qword [r15], rax
test rcx, rcx
je 0x14011c65f
call fcn.140136864
mov qword [r15 + 8], r14
xor eax, eax
mov rcx, qword [r15]
mov qword [rcx + rax*8], 0
inc rax
cmp r14, rax
jne 0x14011c665
mov r11, qword [r15 + 0x10]
test r11, r11
je 0x14011c7f5
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 0x14011c719
lea rax, [r14 - 1]
and r8, rax
jmp 0x14011c729
mov rcx, qword [r15]
mov qword [r15], 0
test rcx, rcx
je 0x14011c70c
call fcn.140136864
mov qword [r15 + 8], 0
jmp 0x14011c7f5
cmp r8, r14
jb 0x14011c729
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 0x14011c7f5
lea r10, [r14 - 1]
mov rax, qword [r13 + 8]
cmp r9d, 1
ja 0x14011c74f
and rax, r10
jmp 0x14011c75c
cmp rax, r14
jb 0x14011c75c
xor edx, edx
div r14
mov rax, rdx
cmp rax, r8
jne 0x14011c769
mov r11, r13
jmp 0x14011c7e9
mov rcx, qword [r15]
cmp qword [rcx + rax*8], 0
je 0x14011c7bd
mov rdx, qword [r13]
test rdx, rdx
je 0x14011c7c9
mov rdi, qword [r13 + 0x18]
mov r12, r13
mov rbx, rdx
cmp rdi, qword [rdx + 0x18]
jne 0x14011c7ce
test rdi, rdi
je 0x14011c7ad
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 0x14011c7ce
inc rcx
cmp rdi, rcx
jne 0x14011c79b
mov rdx, qword [rbx]
mov r12, rbx
test rdx, rdx
jne 0x14011c783
mov r12, rbx
jmp 0x14011c7cc
mov qword [rcx + rax*8], r11
mov r11, r13
mov r8, rax
jmp 0x14011c7e9
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 0x14011c740
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14014b720
int3