Function at 0x528760
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x28]
cmp rax, qword [rcx + 0x10]
jbe 0x528770
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbp
lea rbp, [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
mov qword [rsp], rax
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 8], rcx
call fcn.0050b740
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax]
nop
test rcx, rcx
je 0x52872e
mov rdx, qword [rax + 8]
cmp rdx, 2
jge 0x528704
mov rdx, qword [0x008452d0]
mov rbx, qword [0x008452d8]
test rdx, rdx
jne 0x5286cd
nop
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
lea rbx, [rdx - 1]
nop dword [rax + rax]
test rbx, rbx
jl 0x5286c6
mov rcx, qword [rcx + rdx*8 - 8]
bsr rcx, rcx
mov rdx, 0xffffffffffffffff
cmove rcx, rdx
shl rbx, 6
lea rcx, [rcx + rbx]
lea rcx, [rcx + 1]
lea rdx, [rcx + 7]
sar rdx, 0x3f
shr rdx, 0x3d
lea rcx, [rdx + rcx]
lea rcx, [rcx + 7]
sar rcx, 3
lea rdx, [rcx - 0xb]
mov rbx, qword [rsp + 0xd0]
cmp rdx, rbx
jl 0x528681
mov qword [rsp + 0x48], rcx
lea rax, [0x0064f680]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rcx
call fcn.0044dcc0
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x48]
nop
cmp rcx, 1
jbe 0x528765
mov byte [rax + 1], 2
mov rbx, qword [rsp + 0xd0]
mov rdx, rcx
sub rcx, rbx
lea rsi, [rcx - 1]
cmp rdx, rsi
jb 0x52875d
cmp rsi, 2
jb 0x528750
lea rsi, [rdx - 2]
mov rdi, rsi
neg rsi
sar rsi, 0x3f
and rsi, 2
add rsi, rax
cmp rdx, rcx
jb 0x528745
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rcx
mov qword [rsp], rsi
lea rax, [rcx - 3]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rdi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
call fcn.00528780
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov rdx, rax
sub rax, rcx
mov rbx, rcx
sub rcx, rdx
sar rcx, 0x3f
and rcx, rbx
mov rsi, qword [rsp + 0x58]
add rcx, rsi
mov rdi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
cmp qword [rsp + 0x28], 0
jne 0x528649
mov byte [rbx + rsi - 1], 0
mov rbx, qword [rsp + 0xd0]
cmp rax, rbx
cmovg rax, rbx
mov rbx, qword [rsp + 0xc8]
cmp rcx, rbx
jne 0x528627
mov byte [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp], xmm0
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rdx
call fcn.004f9de0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rdx
mov byte [rsp + 0x80], 0
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 8], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x10], rax
call fcn.00529be0
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rax
nop dword [rax + rax]
call fcn.004ec060
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0xf8], xmm0
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rax
call fcn.0046d4e0
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
jmp 0x52850c
mov qword [rsp + 0xe0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x100], r8
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
nop
ret
mov rax, qword [0x008452a0]
mov rcx, qword [0x008452a8]
mov qword [rsp + 0xe0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rcx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
xor ecx, ecx
jmp 0x5283c9
mov qword [rsp + 0xe0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rbx
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
cmp rdx, 0x7fffffff
jle 0x528725
mov rdx, qword [0x008452c0]
mov rbx, qword [0x008452c8]
nop dword [rax + rax]
jmp 0x528385
xor edx, edx
xor ebx, ebx
jmp 0x528385
mov rdx, qword [0x008452e0]
mov rbx, qword [0x008452e8]
nop dword [rax]
jmp 0x528385
mov rax, rcx
mov rcx, rdx
call fcn.0046cca0
mov eax, 2
mov rcx, rsi
call fcn.0046cca0
mov rcx, rsi
call fcn.0046cc60
mov eax, 1
call fcn.0046cbe0
nop
call fcn.0046aa00
jmp fcn.00528300