Function at 0x588a40
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x10]
cmp rax, qword [rcx + 0x10]
jbe 0x588dec
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x10], 0
jne 0x588daa
xor ecx, ecx
test rcx, rcx
jle 0x588dcf
lea rax, [0x006d4100]
mov qword [rsp], rax
nop
call fcn.0040e660
mov rax, qword [rsp + 8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov rbx, qword [rax + 0x18]
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 1
call fcn.0054fa40
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rdx
lea rdi, [rbx + 8]
mov qword [rsp + 0x80], rdi
cmp dword [0x0093b760], 0
jne 0x588d9d
mov qword [rbx + 8], rax
mov byte [rbx], 0
mov qword [rsp], rbx
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0054b2c0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rbx, [rcx - 1]
nop
test rbx, rbx
jl 0x588d96
mov rcx, qword [rdx + rcx*8 - 8]
bsr rcx, rcx
mov rdx, 0xffffffffffffffff
cmove rcx, rdx
shl rbx, 6
lea rcx, [rcx + rbx]
lea rcx, [rcx + 1]
test rcx, rcx
je 0x588d73
mov qword [rsp + 0x50], rcx
lea rax, [0x006b0d80]
mov qword [rsp], rax
lea rax, [rcx + 7]
sar rax, 0x3f
shr rax, 0x3d
lea rax, [rax + rcx]
lea rax, [rax + 7]
sar rax, 3
mov qword [rsp + 0x48], rax
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rax
call fcn.0044dd40
mov rax, qword [rsp + 0x50]
mov rcx, rax
sar rax, 0x3f
shr rax, 0x3d
add rax, rcx
sar rax, 3
shl rax, 3
sub rcx, rax
test rcx, rcx
mov eax, 8
cmove rcx, rax
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x588bee
mov rax, qword [rsp + 0x78]
nop
mov rcx, qword [rsp + 0x98]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rax
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
call fcn.004a0d40
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
cmp qword [rsp + 0x38], 0
jne 0x588d47
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jbe 0x588dc5
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x40
sbb rax, rax
mov rbx, qword [rsp + 0x78]
movzx esi, byte [rbx]
mov edi, 1
shl rdi, cl
and rdi, rax
lea rax, [rdi - 1]
and esi, eax
mov byte [rbx], sil
nop
mov rax, qword [rsp + 0x60]
mov rsi, qword [rax + 8]
mov rdi, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov qword [rsp], rsi
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rdx
call fcn.00559ec0
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbx
cmp dword [0x0093b760], 0
jne 0x588d35
mov qword [rsi + 8], rax
mov byte [rsi], 0
mov qword [rsp], rsi
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 8], rax
call fcn.0054bca0
cmp qword [rsp + 0x10], 0
jge 0x588be9
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc0], rax
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov rdi, qword [rsp + 0x80]
nop dword [rax]
call fcn.0046c940
jmp 0x588cd9
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rcx
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xb8], xmm0
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
xor ecx, ecx
jmp 0x588b69
nop dword [rax]
call fcn.0046c940
jmp 0x588b10
cmp byte [rax], 0
je 0x588dbb
mov rcx, 0xffffffffffffffff
jmp 0x588a8b
mov ecx, 1
jmp 0x588a8b
xor eax, eax
mov rcx, rdx
call fcn.0046cde0
lea rax, [0x006b0b80]
mov qword [rsp], rax
lea rax, [0x00770140]
mov qword [rsp + 8], rax
call fcn.004389a0
nop
call fcn.0046ac00
jmp fcn.00588a40