Function at 0x4e9170
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4e945a
sub rsp, 0x38
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
cmp byte [rsp + 0x59], 0
je 0x4e91b7
mov rbx, rcx
add rbx, 4
mov qword [rsp + 0x28], rbx
mov qword [rax], rsi
mov qword [rax + 8], 0
movzx ebp, byte [rsp + 0x58]
mov byte [rax + 0x10], bpl
mov rcx, rdx
sub rcx, 0xfffffffffffffea4
mov rbx, rcx
sar rbx, 0x3f
shr rbx, 0x3d
add rbx, rcx
sar rbx, 3
cmp rdx, 0xfffffffffffffea4
jl 0x4e9450
mov qword [rsp + 0x20], rbx
cmp rbx, 0x57
jge 0x4e9450
mov rbx, rdx
sub rbx, 0xfffffffffffffea4
mov rcx, rbx
sar rcx, 0x3f
and rcx, 7
add rbx, rcx
and rbx, 7
sub rbx, rcx
mov rcx, rbx
mov qword [rsp + 0x30], rbx
cmp rbx, 0x13
jge 0x4e93e4
mov rbp, 0x13
sub rbp, rbx
lea rbx, [0x00839d60]
cmp rbp, 0x14
jae 0x4e9449
lea rbx, [rbx + rbp*8]
mov rbx, qword [rbx]
cmp rbx, rsi
jbe 0x4e93e4
mov rdx, qword [rax]
lea rbp, [0x00839d60]
cmp rcx, 0x14
jae 0x4e93dd
lea rbp, [rbp + rcx*8]
mov rbp, qword [rbp]
imul rbp, rdx
mov qword [rax], rbp
mov qword [rsp], rax
call fcn.004e9030
mov rbx, qword [rsp + 0x40]
mov qword [rsp], rbx
lea rsi, [0x00842060]
mov rbx, qword [rsp + 0x20]
cmp rbx, 0x57
jae 0x4e93d6
imul rbx, rbx, 0x18
add rsi, rbx
lea rdi, [rsp + 8]
mov rcx, qword [rsi]
mov qword [rdi], rcx
mov rcx, qword [rsi + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rsi + 0x10]
mov qword [rdi + 0x10], rcx
call fcn.004e90e0
mov rax, qword [rsp + 0x28]
cmp rax, 0
jle 0x4e92e0
inc rax
mov rbx, rax
add rbx, 4
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0x40]
mov qword [rsp], rbx
call fcn.004e9030
mov rdi, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 8]
mov rbp, qword [rsp + 0x28]
cmp rcx, 0x40
jae 0x4e93cf
shl rbp, cl
mov rsi, rbp
mov rax, qword [rdx + 0x10]
sub rax, 0x3f
mov rbx, qword [rdi + 8]
cmp rbx, rax
jg 0x4e93c0
mov rbx, qword [rdx]
mov rbp, 0x3f
sub rbp, rbx
mov rbx, rbp
inc rbx
mov rbp, qword [rdi + 8]
mov r8, rax
sub r8, rbp
add rbx, r8
mov rax, rbx
mov rcx, rax
dec rcx
mov rbp, 1
cmp rcx, 0x40
jae 0x4e93bc
shl rbp, cl
mov rdx, rbp
mov rbx, qword [rdi]
mov rbp, 1
mov rcx, rax
cmp rax, 0x40
jae 0x4e93b8
shl rbp, cl
dec rbp
and rbx, rbp
mov rax, rbx
mov rbx, rdx
sub rbx, rsi
cmp rbx, rax
jge 0x4e93ae
mov rbx, rdx
add rbx, rsi
cmp rbx, rax
jle 0x4e93ae
mov byte [rsp + 0x68], 0
add rsp, 0x38
ret
mov byte [rsp + 0x68], 1
add rsp, 0x38
ret
xor ebp, ebp
jmp 0x4e9382
xor ebp, ebp
jmp 0x4e9369
mov rbx, qword [rdx]
mov rax, 0x3f
sub rax, rbx
jmp 0x4e9356
xor ebp, ebp
jmp 0x4e9318
call fcn.00439d40
ud2
call fcn.00439d40
ud2
mov qword [rsp], rax
call fcn.004e9030
mov rbx, qword [rsp + 0x40]
mov qword [rsp], rbx
lea rsi, [0x0083a280]
mov rbx, qword [rsp + 0x30]
cmp rbx, 8
jae 0x4e9442
imul rbx, rbx, 0x18
add rsi, rbx
lea rdi, [rsp + 8]
mov rcx, qword [rsi]
mov qword [rdi], rcx
mov rcx, qword [rsi + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rsi + 0x10]
mov qword [rdi + 0x10], rcx
call fcn.004e90e0
mov rbx, qword [rsp + 0x28]
add rbx, 4
mov qword [rsp + 0x28], rbx
jmp 0x4e928c
call fcn.00439d40
ud2
call fcn.00439d40
ud2
mov byte [rsp + 0x68], 0
add rsp, 0x38
ret
call fcn.00465260
jmp fcn.004e9170