Function at 0x1402adbd0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r12, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
cmp rax, 0x400
jb 0x1402add35
add rax, 0xfffffffffffffc00
mov qword [r12 + 0x20], rax
mov rdi, qword [r12 + 8]
mov rsi, qword [r12 + 0x10]
mov r14, qword [rdi]
add rdi, 8
mov qword [r12 + 8], rdi
cmp rsi, qword [r12 + 0x18]
je 0x1402adc4c
mov qword [rsi], r14
add qword [r12 + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401bb0d0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [r12]
mov rax, rdi
sub rax, r15
jbe 0x1402adc95
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea rbx, [rax + rcx]
inc rbx
shr rbx, 1
shl rbx, 3
mov rcx, rdi
sub rcx, rbx
mov r8, rsi
sub r8, rdi
mov rdx, rdi
call fcn.1401bcb50
sub rsi, rbx
mov qword [r12 + 0x10], rsi
sub qword [r12 + 8], rbx
jmp 0x1402adc27
mov rax, rsi
sub rax, r15
sar rax, 2
cmp rsi, r15
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x1402adf50
lea rcx, [rbx*8]
call fcn.1401b9cac
mov rcx, rbx
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea r8, [rax + rbx*8]
mov r9, rcx
sub rsi, rdi
je 0x1402add04
mov rbx, rsi
sar rbx, 3
and rsi, 0xfffffffffffffff8
mov r9, rsi
add r9, rcx
shl rbx, 3
xor esi, esi
mov rdx, qword [rdi + rsi]
mov qword [rcx + rsi], rdx
add rsi, 8
cmp rbx, rsi
jne 0x1402adcf3
mov qword [r12], rax
mov qword [r12 + 8], rcx
mov qword [r12 + 0x10], r9
mov qword [r12 + 0x18], r8
mov rsi, r9
test r15, r15
je 0x1402adc27
mov rcx, r15
call fcn.1401b9ce8
mov rsi, qword [r12 + 0x10]
jmp 0x1402adc27
mov rax, qword [r12]
mov rdi, qword [r12 + 0x10]
mov rbx, rdi
sub rbx, qword [r12 + 8]
mov rdx, qword [r12 + 0x18]
mov rcx, rdx
sub rcx, rax
cmp rbx, rcx
jae 0x1402ade26
mov ecx, 0x1000
cmp rdx, rdi
jne 0x1402adf2e
call fcn.1401b9cac
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, r12
call fcn.1401fc230
mov rdi, qword [r12 + 8]
mov rsi, qword [r12 + 0x10]
mov r14, qword [rdi]
add rdi, 8
mov qword [r12 + 8], rdi
cmp rsi, qword [r12 + 0x18]
jne 0x1402adc27
mov r15, qword [r12]
mov rax, rdi
sub rax, r15
ja 0x1402adc58
mov rax, rsi
sub rax, r15
sar rax, 2
cmp rsi, r15
mov ebx, 1
cmovne rbx, rax
mov rax, rbx
shr rax, 0x3d
jne 0x1402adf50
lea rcx, [rbx*8]
call fcn.1401b9cac
mov rcx, rbx
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea r8, [rax + rbx*8]
mov r9, rcx
sub rsi, rdi
je 0x1402add04
mov rbx, rsi
sar rbx, 3
and rsi, 0xfffffffffffffff8
mov r9, rsi
add r9, rcx
shl rbx, 3
xor esi, esi
mov rdx, qword [rdi + rsi]
mov qword [rcx + rsi], rdx
add rsi, 8
cmp rbx, rsi
jne 0x1402ade10
jmp 0x1402add04
sar rcx, 2
cmp rdx, rax
mov edi, 1
cmovne rdi, rcx
lea rax, [r12 + 0x20]
mov qword [rsp + 0x48], rax
mov rax, rdi
shr rax, 0x3d
jne 0x1402adf50
lea rcx, [rdi*8]
call fcn.1401b9cac
lea r14, [rsp + 0x28]
mov qword [r14], rax
add rbx, rax
mov qword [r14 + 0x10], rbx
mov qword [r14 + 8], rbx
lea rax, [rax + rdi*8]
mov qword [r14 + 0x18], rax
mov ecx, 0x1000
call fcn.1401b9cac
lea rdx, [rsp + 0x20]
mov qword [rdx], rax
mov rcx, r14
call fcn.1401fc100
mov rdi, qword [r12 + 0x10]
cmp rdi, qword [r12 + 8]
je 0x1402adf48
lea rbx, [rsp + 0x28]
add rdi, 0xfffffffffffffff8
mov rcx, rbx
mov rdx, rdi
call fcn.1401fc230
cmp rdi, qword [r12 + 8]
jne 0x1402adea4
mov rax, qword [r12 + 0x10]
mov rcx, qword [r12]
mov rdx, qword [rsp + 0x28]
mov qword [r12], rdx
mov qword [rsp + 0x28], rcx
mov rdx, qword [rsp + 0x30]
mov qword [r12 + 8], rdx
mov qword [rsp + 0x30], rdi
mov rdx, qword [rsp + 0x38]
mov qword [r12 + 0x10], rdx
mov qword [rsp + 0x38], rax
mov rdx, qword [r12 + 0x18]
mov rbx, qword [rsp + 0x40]
mov qword [r12 + 0x18], rbx
mov qword [rsp + 0x40], rdx
cmp rax, rdi
je 0x1402adf1b
sub rdi, rax
add rdi, 7
and rdi, 0xfffffffffffffff8
add rdi, rax
mov qword [rsp + 0x38], rdi
test rcx, rcx
je 0x1402adc30
call fcn.1401b9ce8
jmp 0x1402adc30
call fcn.1401b9cac
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov rcx, r12
call fcn.1401fc100
jmp 0x1402adc30
mov rax, rdi
jmp 0x1402adebf
call fcn.1401f9cb0
int3