Function at 0x496690
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x496c2f
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
lea rdx, [rcx + rax]
shr rdx, 1
mov qword [rsp + 0x70], rdx
mov rbx, rcx
sub rcx, rax
mov qword [rsp + 0x68], rcx
cmp rcx, 0x28
jg 0x496b3e
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rsi, qword [rsp + 0x90]
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rdx
lea rdi, [rbx - 1]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], rdi
call fcn.00496580
mov rax, qword [rsp + 0x98]
lea rcx, [rax + 1]
mov rdx, qword [rsp + 0x60]
jmp 0x496735
inc rcx
mov qword [rsp + 0x48], rcx
cmp rcx, rdx
jl 0x496b0c
xor ebx, ebx
test bl, bl
jne 0x496732
mov rbx, rdx
mov rsi, rcx
jmp 0x4967c7
inc rcx
mov qword [rsp + 0x58], rcx
cmp rcx, rdx
jl 0x496acd
xor edi, edi
test dil, dil
jne 0x496751
jmp 0x49676e
dec rdx
mov qword [rsp + 0x40], rdx
cmp rcx, rdx
jl 0x496a8a
xor edi, edi
test dil, dil
jne 0x49676b
cmp rcx, rdx
jge 0x4967ce
mov qword [rsp], rcx
lea rax, [rdx - 1]
mov qword [rsp + 0x40], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x90]
mov rbx, qword [rdx]
call rbx
mov rax, qword [rsp + 0x58]
lea rcx, [rax + 1]
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rdx
jmp 0x496754
mov rdi, qword [rsp + 0xa0]
sub rdi, rdx
cmp rdi, 5
jge 0x49691f
setl bl
mov qword [rsp + 0x40], rdx
test bl, bl
jne 0x496860
jmp 0x496867
dec rcx
mov qword [rsp + 0x48], rcx
cmp rsi, rcx
jl 0x4968e1
xor ebx, ebx
test bl, bl
jne 0x4967f1
jmp 0x49680d
inc rsi
mov qword [rsp + 0x50], rsi
cmp rsi, rcx
jl 0x4968aa
xor ebx, ebx
test bl, bl
jne 0x49680a
cmp rsi, rcx
jge 0x496867
mov qword [rsp], rsi
lea rax, [rcx - 1]
mov qword [rsp + 0x68], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x50]
lea rsi, [rax + 1]
mov rax, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rsi
jmp 0x4967f4
mov qword [rsp], rax
lea rax, [rcx - 1]
mov qword [rsp + 0x68], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xb0], rax
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov qword [rsp], rsi
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rdx]
call rcx
movzx ebx, byte [rsp + 0x10]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
jmp 0x49681d
lea rbx, [rcx - 1]
mov qword [rsp], rbx
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx]
call rbx
movzx ebx, byte [rsp + 0x10]
xor ebx, 1
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
jmp 0x496804
mov r8, qword [rsp + 0x68]
mov r9, r8
sar r8, 0x3f
shr r8, 0x3e
add r8, r9
sar r8, 2
cmp rdi, r8
jl 0x496944
cmp rdi, 5
jmp 0x4967e3
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rdx]
call rcx
movzx eax, byte [rsp + 0x10]
mov byte [rsp + 0x2f], al
test al, al
je 0x496a5c
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x58]
lea rbx, [rax - 1]
mov qword [rsp + 0x68], rbx
mov qword [rsp], rbx
mov rsi, qword [rsp + 0x98]
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x88]
mov rdi, qword [rdx]
call rdi
movzx eax, byte [rsp + 0x2f]
xor eax, 1
movzx eax, al
cmp byte [rsp + 0x10], 0
je 0x496a4f
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x70]
mov qword [rsp], rbx
mov rsi, qword [rsp + 0x98]
mov qword [rsp + 8], rsi
mov rdx, qword [rsp + 0x88]
mov rdi, qword [rdx]
call rdi
cmp byte [rsp + 0x10], 0
je 0x496a18
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
cmp rax, 1
setg bl
mov rax, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
jmp 0x4967e6
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rax, qword [rsp + 0x68]
dec rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x38]
inc rax
mov rcx, qword [rsp + 0x68]
jmp 0x4969fa
inc rax
mov rcx, qword [rsp + 0x68]
jmp 0x4969bc
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdx]
call rcx
mov rax, qword [rsp + 0x40]
lea rcx, [rax + 1]
jmp 0x496970
mov qword [rsp], rax
lea rcx, [rdx - 1]
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rcx]
mov rdx, rcx
call rbx
movzx edi, byte [rsp + 0x10]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
jmp 0x49677e
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx]
call rbx
movzx edi, byte [rsp + 0x10]
xor edi, 1
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
jmp 0x496764
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx]
call rbx
movzx ebx, byte [rsp + 0x10]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
jmp 0x496745
mov rdx, qword [rsp + 0x88]
mov qword [rsp], rdx
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rax
mov rsi, rcx
sar rcx, 0x3f
shr rcx, 0x3d
add rcx, rsi
sar rcx, 3
mov qword [rsp + 0x30], rcx
lea rdi, [rcx + rax]
mov qword [rsp + 0x18], rdi
lea rdi, [rax + rcx*2]
mov qword [rsp + 0x20], rdi
call fcn.00496580
mov rax, qword [rsp + 0x88]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x10], rdx
mov rbx, qword [rsp + 0x30]
mov rsi, rdx
sub rdx, rbx
mov qword [rsp + 0x18], rdx
lea rdx, [rsi + rbx]
mov qword [rsp + 0x20], rdx
call fcn.00496580
mov rax, qword [rsp + 0x88]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0xa0]
lea rbx, [rdx - 1]
mov qword [rsp + 0x10], rbx
mov rsi, qword [rsp + 0x30]
mov rdi, rbx
sub rbx, rsi
mov qword [rsp + 0x18], rbx
shl rsi, 1
sub rdi, rsi
mov qword [rsp + 0x20], rdi
call fcn.00496580
mov rax, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
jmp 0x4966e9
call fcn.00459290
jmp fcn.00496690