Function at 0x14002e160
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov edi, 2
cmp rdx, 1
je 0x14002e18f
lea rax, [rdx - 1]
test rax, rdx
je 0x14002e18c
mov rcx, rdx
call fcn.140050cf0
mov rdi, rax
jmp 0x14002e18f
mov rdi, rdx
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14002e1ab
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp 0x14002e7d0
jae 0x14002e253
cmp rbx, 3
jb 0x14002e1c4
lea rax, [rbx - 1]
test rax, rbx
sete bpl
jmp 0x14002e1c6
xor ebp, ebp
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x14002e1d6
cvtsi2ss xmm0, rax
jmp 0x14002e1eb
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1401ab560
cvttss2si rcx, xmm0
movss xmm1, dword [0x1401c8a60]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
test bpl, bpl
je 0x14002e23b
cmp rax, 2
jb 0x14002e243
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14002e243
mov rcx, rax
call fcn.140050cf0
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
jb 0x14002e198
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
test rdx, rdx
je 0x14002e85f
mov r12, rdx
mov rax, rdx
shr rax, 0x3d
jne 0x14002e9e4
lea rcx, [r12*8]
call fcn.140190820
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x14002e815
call fcn.140190860
mov qword [rsi + 8], r12
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp r12, rax
jne 0x14002e81b
mov r11, qword [rsi + 0x10]
test r11, r11
je 0x14002e9d3
lea rcx, [rsi + 0x10]
mov r10, qword [r11 + 8]
lea r9, [r12 - 1]
test r9, r12
je 0x14002e87e
cmp r10, r12
jb 0x14002e881
mov rax, r10
xor edx, edx
div r12
mov r10, rdx
jmp 0x14002e881
mov rcx, qword [rsi]
xor eax, eax
mov qword [rsi], rax
test rcx, rcx
je 0x14002e871
call fcn.140190860
mov qword [rsi + 8], 0
jmp 0x14002e9d3
and r10, r9
mov rax, qword [rsi]
mov qword [rax + r10*8], rcx
mov rbp, qword [r11]
test rbp, rbp
je 0x14002e9d3
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r9
mov rbx, qword [rbp + 8]
test r9, r12
je 0x14002e8b9
cmp rbx, r12
jb 0x14002e8bc
mov rax, rbx
xor edx, edx
div r12
mov rbx, rdx
jmp 0x14002e8bc
and rbx, r9
cmp rbx, r10
jne 0x14002e8c9
mov r11, rbp
jmp 0x14002e9c7
mov rax, qword [rsi]
cmp qword [rax + rbx*8], 0
je 0x14002e9bd
mov rax, qword [rbp]
mov r15, rbp
test rax, rax
je 0x14002e999
movzx esi, byte [rbp + 0x27]
mov r8, rsi
test sil, sil
jns 0x14002e8f7
mov r8, qword [rbp + 0x18]
lea rdi, [rbp + 0x10]
mov r14, rsi
dec r14
mov r13, rbp
mov r15, r13
mov r13, rax
movzx eax, byte [rax + 0x27]
mov rcx, rax
test al, al
jns 0x14002e919
mov rcx, qword [r13 + 0x18]
cmp r8, rcx
jne 0x14002e999
lea rdx, [r13 + 0x10]
test al, al
jns 0x14002e929
mov rdx, qword [rdx]
mov rax, qword [rdi]
mov rcx, rdi
test sil, sil
cmovs rcx, rax
js 0x14002e958
test r8, r8
je 0x14002e989
cmp byte [rdx], al
jne 0x14002e999
xor eax, eax
cmp r14, rax
je 0x14002e989
mov cl, byte [rbp + rax + 0x11]
cmp cl, byte [rdx + rax + 1]
lea rax, [rax + 1]
je 0x14002e943
jmp 0x14002e999
test r8, r8
je 0x14002e989
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r8
call fcn.140193490
mov r8, qword [rsp + 0x30]
mov r10, qword [rsp + 0x38]
mov r9, qword [rsp + 0x20]
mov r11, qword [rsp + 0x40]
test eax, eax
jne 0x14002e999
mov rax, qword [r13]
mov r15, r13
test rax, rax
jne 0x14002e904
mov rax, qword [r15]
mov qword [r11], rax
mov rsi, qword [rsp + 0x28]
mov rax, qword [rsi]
mov rax, qword [rax + rbx*8]
mov rax, qword [rax]
mov qword [r15], rax
mov rax, qword [rsi]
mov rax, qword [rax + rbx*8]
mov qword [rax], rbp
jmp 0x14002e9c7
mov qword [rax + rbx*8], r11
mov r11, rbp
mov r10, rbx
mov rbp, qword [r11]
test rbp, rbp
jne 0x14002e89e
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1401a6a70
ud2