Function at 0x58bbc0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x58be78
sub rsp, 0x70
mov qword [rsp + 0x68], rbp
lea rbp, [rsp + 0x68]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rbx
xor edx, edx
jmp 0x58bc09
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov rdx, rdi
mov qword [rsp + 0x60], rdx
mov rcx, qword [rax + 0x30]
mov rax, rbx
call rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rcx + 0x10]
mov rbx, qword [rcx + 8]
lea rsi, [rdx - 1]
test rsi, rsi
jl 0x58bc8e
mov rdx, qword [rbx + rdx*8 - 8]
mov rdi, rdx
shr rdx, 1
or rdi, rdx
mov rdx, rdi
shr rdi, 2
or rdx, rdi
mov rdi, rdx
shr rdx, 4
or rdi, rdx
mov rdx, rdi
shr rdi, 8
or rdx, rdi
mov rdi, rdx
shr rdx, 0x10
or rdi, rdx
mov rdx, rdi
shr rdi, 0x20
or rdx, rdi
bsr rdx, rdx
mov rdi, 0xffffffffffffffff
cmove rdx, rdi
shl rsi, 6
lea rdx, [rsi + rdx]
lea rdx, [rdx + 1]
jmp 0x58bc90
xor edx, edx
lea rsi, [rdx + 7]
sar rsi, 0x3f
shr rsi, 0x3d
lea rcx, [rsi + rdx]
lea rcx, [rcx + 7]
sar rcx, 3
mov qword [rsp + 0x38], rcx
lea rax, [0x005ee060]
mov rbx, rcx
call fcn.00449bc0
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x90]
mov rcx, rax
mov rdi, qword [rsp + 0x38]
mov rsi, rdi
mov r8, rsi
mov rax, qword [rsp + 0x88]
nop
call fcn.0046ede0
test rbx, rbx
jne 0x58be5e
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rdx + 0x10]
mov rdi, qword [rdx + 8]
lea r8, [rsi - 1]
nop
test r8, r8
jl 0x58bd62
mov rsi, qword [rdi + rsi*8 - 8]
mov rdi, rsi
shr rsi, 1
or rdi, rsi
mov rsi, rdi
shr rdi, 2
or rsi, rdi
mov rdi, rsi
shr rsi, 4
or rdi, rsi
mov rsi, rdi
shr rdi, 8
or rsi, rdi
mov rdi, rsi
shr rsi, 0x10
or rdi, rsi
mov rsi, rdi
shr rdi, 0x20
or rsi, rdi
bsr rsi, rsi
mov rdi, 0xffffffffffffffff
cmove rsi, rdi
shl r8, 6
lea rsi, [r8 + rsi]
lea rsi, [rsi + 1]
jmp 0x58bd64
xor esi, esi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rcx
mov rdi, qword [rsp + 0x38]
mov r8, rdi
shl rdi, 3
sub rdi, rsi
nop dword [rax]
test rdi, rdi
jle 0x58bda9
test r8, r8
jbe 0x58be6d
cmp rdi, 8
sbb esi, esi
mov r9, qword [rsp + 0x58]
movzx r10d, byte [r9]
mov rcx, rdi
shr r10b, cl
and r10d, esi
mov byte [r9], r10b
lea rax, [0x00606f00]
call fcn.0040d720
mov qword [rsp + 0x40], rax
mov rcx, qword [rax + 8]
mov rbx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov r8, rsi
mov rax, rcx
mov rcx, rdx
call fcn.005332e0
mov rdi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x0081ed80], 0
jne 0x58bdfa
mov qword [rdi + 8], rax
jmp 0x58be0c
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
call fcn.00464600
mov rdi, rdx
mov byte [rdi], 0
cmp qword [rdi + 0x10], 0
setne cl
movzx ecx, cl
nop word [rax + rax]
test rcx, rcx
je 0x58bbf9
mov rax, rdi
mov rbx, qword [rsp + 0x50]
call fcn.005288c0
test rax, rax
jl 0x58be45
mov rdi, qword [rsp + 0x40]
jmp 0x58bbf9
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
xor eax, eax
mov rcx, rax
call fcn.00464aa0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0058bbc0