Function at 0x14002ca70
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov r15, qword [rcx + 8]
sub rdi, rax
mov r12, rdi
sar r12, 3
and rdi, 0xfffffffffffffff8
add rdi, rax
mov rcx, qword [rcx + 0x10]
cmp r15, rcx
jae 0x14002cba1
cmp rdi, r15
je 0x14002cc17
lea rcx, [r15 - 8]
mov rdx, r15
cmp rcx, r15
jae 0x14002cafa
mov rdx, r15
test rdx, rdx
je 0x14002cd7c
mov r8, qword [rcx]
mov qword [rdx], r8
mov qword [rcx], 0
add rcx, 8
add rdx, 8
cmp rcx, r15
jb 0x14002cad7
lea rcx, [rdi + 8]
mov qword [rbx + 8], rdx
cmp r15, rcx
je 0x14002cb67
mov rbx, r15
sub rbx, rcx
sar rbx, 3
shl rbx, 3
lea rcx, [rbx + r12*8]
neg rbx
lea r12, [rax + rcx]
add r12, 0xfffffffffffffff8
xor r13d, r13d
mov rcx, qword [r12 + r13]
mov qword [r12 + r13], 0
mov rax, qword [r15 + r13 - 8]
mov qword [r15 + r13 - 8], rcx
test rax, rax
je 0x14002cb5e
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rax
add rcx, 8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140219008]
add r13, 0xfffffffffffffff8
cmp rbx, r13
jne 0x14002cb27
mov rcx, qword [r14]
mov qword [r14], 0
mov rax, qword [rdi]
mov qword [rdi], rcx
test rax, rax
je 0x14002cc35
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rax
add rcx, 8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140219008]
jmp 0x14002cc35
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
sub r15, rax
sar r15, 3
inc r15
mov rdx, r15
shr rdx, 0x3d
jne 0x14002cdd4
sub rcx, rax
mov r13, rcx
sar r13, 2
cmp r13, r15
cmovbe r13, r15
movabs rax, 0x1fffffffffffffff
lea rdx, [rbx + 0x18]
movabs r8, 0x7ffffffffffffff8
cmp rcx, r8
cmovae r13, rax
mov qword [rsp + 0x50], rdx
test r13, r13
je 0x14002cc3d
cmp r13, rax
ja 0x14002cdd9
lea rcx, [r13*8]
call fcn.14013a754
jmp 0x14002cc3f
test rdi, rdi
je 0x14002cd7c
mov rax, qword [r14]
mov qword [rdi], rax
mov qword [r14], 0
lea rax, [rdi + 8]
mov qword [rbx + 8], rax
mov r14, rdi
jmp 0x14002cd59
xor eax, eax
lea r15, [rsp + 0x30]
mov qword [r15], rax
lea rcx, [rax + r12*8]
mov qword [r15 + 0x10], rcx
mov qword [r15 + 8], rcx
lea rax, [rax + r13*8]
mov qword [r15 + 0x18], rax
mov rcx, r15
mov rdx, r14
call fcn.14002cde0
mov r14, qword [r15 + 8]
mov rax, qword [rbx]
mov rcx, r14
cmp rax, rdi
je 0x14002cc9b
mov rcx, r14
mov rdx, rdi
mov r8, qword [rdx - 8]
mov qword [rcx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rcx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rax
jne 0x14002cc7b
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x40]
mov rdx, qword [rbx + 8]
cmp rdx, rdi
je 0x14002ccda
test rax, rax
je 0x14002cd7c
mov rcx, qword [rdi]
mov qword [rax], rcx
mov qword [rdi], 0
add rdi, 8
add rax, 8
cmp rdi, rdx
jne 0x14002ccae
mov rcx, qword [rsp + 0x38]
mov rdi, qword [rbx + 8]
mov r15, qword [rbx]
mov qword [rbx], rcx
mov qword [rsp + 0x38], r15
mov qword [rbx + 8], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 0x10], rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], r15
cmp rdi, r15
je 0x14002cd4c
add rdi, 0xfffffffffffffff8
mov qword [rsp + 0x40], rdi
je 0x14002cda8
mov rax, qword [rdi]
test rax, rax
je 0x14002cd42
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rax
add rcx, 8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140219008]
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
jne 0x14002cd0a
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14002cd59
mov rcx, rdi
call fcn.14013a790
mov qword [rsi], r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14013bb80
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140170320
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.140170320
call fcn.140153cb0
call fcn.14016f5e0
int3