Function at 0x549760
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x549a18
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 0x5497a9
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 0x54982e
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 0x549830
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, [0x006a5020]
mov rbx, rcx
call fcn.0044a860
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.00472b00
test rbx, rbx
jne 0x5499fe
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rdx + 0x10]
mov rdi, qword [rdx + 8]
lea r8, [rsi - 1]
nop
test r8, r8
jl 0x549902
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 0x549904
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 0x549949
test r8, r8
jbe 0x549a0d
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, [0x006c5d40]
call fcn.0040d960
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.00525720
mov rdi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x0098e150], 0
jne 0x54999a
mov qword [rdi + 8], rax
jmp 0x5499ac
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
call fcn.00465b00
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 0x549799
mov rax, rdi
mov rbx, qword [rsp + 0x50]
call fcn.0051ae20
test rax, rax
jl 0x5499e5
mov rdi, qword [rsp + 0x40]
jmp 0x549799
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.00465fa0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00463940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00549760