Function at 0x50e220
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x50e87a
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0xc0], rbx
lea rax, [0x0052efa0]
call fcn.0040d3a0
mov qword [rsp + 0x90], rax
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x005197a0]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
call fcn.00505ee0
test rdi, rdi
jne 0x50e59d
mov rdx, qword [rsp + 0x90]
cmp qword [rdx], 1
nop dword [rax]
jne 0x50e53b
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x50e2e7
mov rax, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
nop
call fcn.0050e8c0
jmp 0x50e300
mov rax, qword [rdx + 0x20]
mov rbx, qword [rdx + 0x28]
mov rcx, qword [rdx + 0x30]
call fcn.0050e8c0
nop dword [rax + rax]
test rax, rax
je 0x50e501
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x80], rbx
lea rax, [0x00528d60]
nop dword [rax]
call fcn.0040d3a0
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
mov rdx, qword [rax + 8]
mov rbx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, rdx
mov rcx, r9
call fcn.004f1000
mov rdi, qword [rsp + 0x68]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x0069b1b0], 0
jne 0x50e371
mov qword [rdi + 8], rax
jmp 0x50e388
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
nop dword [rax + rax]
call fcn.004605c0
mov rdi, rdx
mov byte [rdi], 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + 0x30]
mov rax, qword [rsp + 0x80]
call rdx
mov rbx, qword [rax + 8]
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x68]
call fcn.004e6780
test rax, rax
jge 0x50e4c7
lea rax, [0x00531cc0]
call fcn.0040d3a0
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
cmp dword [0x0069b1b0], 0
jne 0x50e3ee
mov rdx, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov rsi, qword [rsp + 0x68]
mov qword [rax + 0x20], rsi
jmp 0x50e40d
lea rdi, [rax + 8]
mov rdx, qword [rsp + 0x80]
call fcn.004606e0
lea rdi, [rax + 0x20]
mov rsi, qword [rsp + 0x68]
call fcn.00460720
mov qword [rsp + 0x60], rax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsi + 0x10]
mov rsi, qword [rsi + 8]
lea r8, [rdi - 1]
test r8, r8
jl 0x50e483
mov rsi, qword [rsi + rdi*8 - 8]
mov rdi, rsi
shr rsi, 1
or rdi, rsi
mov rsi, rdi
shr rdi, 2
or rdi, rsi
mov rsi, rdi
shr rdi, 4
or rdi, rsi
mov rsi, rdi
shr rdi, 8
or rdi, rsi
mov rsi, rdi
shr rdi, 0x10
or rdi, rsi
mov rsi, rdi
shr rdi, 0x20
or rdi, rsi
bsr rsi, rdi
mov rdi, 0xffffffffffffffff
cmove rsi, rdi
shl r8, 6
inc rsi
add rsi, r8
jmp 0x50e485
xor esi, esi
lea rdx, [rsi + 7]
sar rdx, 0x3f
shr rdx, 0x3d
add rdx, 7
lea rcx, [rsi + rdx]
sar rcx, 3
mov qword [rsp + 0x40], rcx
lea rax, [0x0051e200]
mov rbx, rcx
call fcn.00447120
mov rdi, qword [rsp + 0x90]
lea rdx, [rdi + 8]
mov rsi, qword [rsp + 0x40]
jmp 0x50e72d
lea rax, [0x00526820]
call fcn.0040d3a0
mov qword [rax + 8], 0x2e
lea rcx, [0x00547013]
mov qword [rax], rcx
lea rbx, [0x00583400]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x00526820]
call fcn.0040d3a0
mov qword [rax + 8], 0x1c
lea rcx, [0x00542ef4]
mov qword [rax], rcx
lea rbx, [0x00583400]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
movups xmmword [rsp + 0x98], xmm15
mov rax, qword [rdx]
call fcn.0040aa20
lea rcx, [0x0051d9c0]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rax
lea rax, [0x00545d2a]
mov ebx, 0x27
lea rcx, [rsp + 0x98]
mov edi, 1
mov rsi, rdi
nop
call fcn.0049c400
mov rcx, rbx
mov rbx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x48], rdi
lea rax, [0x0052b5e0]
call fcn.0040d3a0
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x00519860]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
nop dword [rax + rax]
call fcn.00505ee0
test rdi, rdi
je 0x50e6f3
lea rax, [0x005344a0]
call fcn.0040d3a0
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x00519820]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
call fcn.00505ee0
test rdi, rdi
je 0x50e6b6
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rsp + 0x70]
nop
call rcx
mov ecx, 0x26
mov rdi, rax
mov rsi, rbx
xor eax, eax
lea rbx, [0x00545a6d]
call fcn.0044b040
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], rbx
lea rax, [0x00526820]
call fcn.0040d3a0
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
cmp dword [0x0069b1b0], 0
jne 0x50e68d
mov rdx, qword [rsp + 0x58]
mov qword [rax], rdx
jmp 0x50e69a
mov rdi, rax
mov rdx, qword [rsp + 0x58]
call fcn.004606e0
lea rbx, [0x00583400]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x00526820]
nop dword [rax]
call fcn.0040d3a0
mov qword [rax + 8], 0x58
lea rcx, [0x005497f0]
mov qword [rax], rcx
lea rbx, [0x00583400]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x00526820]
call fcn.0040d3a0
mov qword [rax + 8], 0x58
lea rcx, [0x00549848]
mov qword [rax], rcx
lea rbx, [0x00583400]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov r8, qword [rdi + 0x10]
mov rbx, qword [rdi + 8]
mov r9, qword [rdi + 0x18]
cmp r8, rsi
jle 0x50e7b9
cmp byte [rbx], 0
jne 0x50e77f
dec r8
mov qword [rdi + 0x10], r8
lea r8, [r9 - 1]
mov qword [rdi + 0x18], r8
neg r8
sar r8, 0x3f
and r8d, 1
add r8, rbx
cmp dword [0x0069b1b0], 0
jne 0x50e76f
mov qword [rdi + 8], r8
jmp 0x50e72d
mov rcx, rdi
mov rdi, rdx
call fcn.00460740
mov rdi, rcx
jmp 0x50e72d
lea rax, [0x00526820]
call fcn.0040d3a0
mov qword [rax + 8], 0x20
lea rcx, [0x005442f8]
mov qword [rax], rcx
lea rbx, [0x00583400]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rcx, rsi
sub rsi, r8
nop
cmp rcx, rsi
jb 0x50e871
mov rdi, rcx
sub rcx, rsi
cmp r8, rcx
cmovl rcx, r8
mov rdx, rsi
sub rsi, rdi
sar rsi, 0x3f
and rsi, rdx
lea rdx, [rsi + rax]
cmp rbx, rdx
je 0x50e809
mov qword [rsp + 0x88], rax
mov rax, rdx
call fcn.004613e0
mov rax, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x38]
mov rbx, rax
mov rcx, rdi
mov rax, qword [rsp + 0x80]
call rdx
cmp dword [0x0069b1b0], 0
jne 0x50e83a
mov rdx, qword [rsp + 0x60]
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rbx
jmp 0x50e85a
mov rdi, qword [rsp + 0x60]
lea rdx, [rdi + 0x10]
mov rcx, rdi
mov rdi, rdx
call fcn.004605c0
lea rdi, [rcx + 0x18]
call fcn.00460700
mov rdx, rcx
mov rax, rdx
xor ebx, ebx
xor ecx, ecx
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, rsi
call fcn.00460b20
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045e400
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0050e220