Function at 0x5157e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x515a7f
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rbx
xor edx, edx
jmp 0x515820
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
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]
lea rbx, [rdx - 1]
nop
test rbx, rbx
jl 0x5158a6
mov rsi, qword [rcx + 8]
mov rdx, qword [rsi + rdx*8 - 8]
mov rsi, rdx
shr rdx, 1
or rsi, rdx
mov rdx, rsi
shr rsi, 2
or rsi, rdx
mov rdx, rsi
shr rsi, 4
or rdx, rsi
mov rsi, rdx
shr rdx, 8
or rsi, rdx
mov rdx, rsi
shr rsi, 0x10
or rsi, rdx
mov rdx, rsi
shr rsi, 0x20
or rdx, rsi
shl rbx, 6
bsr rdx, rdx
mov rsi, 0xffffffffffffffff
cmove rdx, rsi
lea rdx, [rbx + rdx]
lea rdx, [rdx + 1]
jmp 0x5158a8
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, [0x0054fba0]
mov rbx, rcx
call fcn.0044db20
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]
call fcn.00472780
nop dword [rax]
test rbx, rbx
jne 0x515a69
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rdx + 0x10]
lea rdi, [rsi - 1]
test rdi, rdi
jl 0x51597c
mov r8, qword [rdx + 8]
mov rsi, qword [r8 + rsi*8 - 8]
mov r8, rsi
shr rsi, 1
or r8, rsi
mov rsi, r8
shr r8, 2
or rsi, r8
mov r8, rsi
shr rsi, 4
or r8, rsi
mov rsi, r8
shr r8, 8
or rsi, r8
mov r8, rsi
shr rsi, 0x10
or r8, rsi
mov rsi, r8
shr r8, 0x20
or rsi, r8
shl rdi, 6
bsr rsi, rsi
mov r8, 0xffffffffffffffff
cmove rsi, r8
lea rsi, [rdi + rsi]
lea rsi, [rsi + 1]
jmp 0x51597e
xor esi, esi
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rbx
mov rdi, qword [rsp + 0x38]
mov r8, rdi
shl rdi, 3
sub rdi, rsi
test rdi, rdi
jle 0x5159c4
nop dword [rax]
test r8, r8
jbe 0x515a74
mov rsi, qword [rsp + 0x58]
movzx r9d, byte [rsi]
mov rcx, rdi
shr r9b, cl
cmp rcx, 8
sbb edi, edi
and r9d, edi
mov byte [rsi], r9b
lea rax, [0x00560b60]
call fcn.0040e820
mov qword [rsp + 0x40], rax
mov rbx, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax + 8]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov r8, rsi
mov rax, rdx
call fcn.004c3500
mov rdx, qword [rsp + 0x40]
mov qword [rdx + 0x10], rbx
mov qword [rdx + 0x18], rcx
cmp dword [0x00737ad0], 0
je 0x515a1c
call fcn.00468cc0
mov qword [r11], rax
mov rcx, qword [rdx + 8]
mov qword [r11 + 8], rcx
mov qword [rdx + 8], rax
mov byte [rdx], 0
cmp qword [rdx + 0x10], 0
setne cl
movzx ecx, cl
test rcx, rcx
je 0x515813
mov rax, rdx
mov rbx, qword [rsp + 0x50]
nop
call fcn.004b8d20
test rax, rax
jl 0x515a54
mov rdx, qword [rsp + 0x40]
jmp 0x515813
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rax, qword [rsp + 0x60]
add rsp, 0x68
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.00469060
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00466d80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.005157e0