Function at 0x59c020
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x59c67a
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, [0x00607420]
call fcn.0040da20
mov qword [rsp + 0x90], rax
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x005d85e0]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
call fcn.0057d9e0
test rdi, rdi
jne 0x59c39d
mov rdx, qword [rsp + 0x90]
cmp qword [rdx], 1
nop dword [rax]
jne 0x59c33b
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x59c0e7
mov rax, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
nop
call fcn.0059c6c0
jmp 0x59c100
mov rax, qword [rdx + 0x20]
mov rbx, qword [rdx + 0x28]
mov rcx, qword [rdx + 0x30]
call fcn.0059c6c0
nop dword [rax + rax]
test rax, rax
je 0x59c301
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x80], rbx
lea rax, [0x005f9120]
nop dword [rax]
call fcn.0040da20
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.004f16a0
mov rdi, qword [rsp + 0x68]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rcx
cmp dword [0x00803600], 0
jne 0x59c171
mov qword [rdi + 8], rax
jmp 0x59c188
lea rcx, [rdi + 8]
mov rdx, rdi
mov rdi, rcx
nop dword [rax + rax]
call fcn.00465600
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.004e6100
test rax, rax
jge 0x59c2c7
lea rax, [0x0060e5c0]
call fcn.0040da20
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
cmp dword [0x00803600], 0
jne 0x59c1ee
mov rdx, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov rsi, qword [rsp + 0x68]
mov qword [rax + 0x20], rsi
jmp 0x59c20d
lea rdi, [rax + 8]
mov rdx, qword [rsp + 0x80]
call fcn.00465720
lea rdi, [rax + 0x20]
mov rsi, qword [rsp + 0x68]
call fcn.00465760
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 0x59c283
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 0x59c285
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, [0x005e1460]
mov rbx, rcx
call fcn.0044a840
mov rdi, qword [rsp + 0x90]
lea rdx, [rdi + 8]
mov rsi, qword [rsp + 0x40]
jmp 0x59c52d
lea rax, [0x005f2680]
call fcn.0040da20
mov qword [rax + 8], 0x2e
lea rcx, [0x0062c8d8]
mov qword [rax], rcx
lea rbx, [0x0067cbc0]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x005f2680]
call fcn.0040da20
mov qword [rax + 8], 0x1c
lea rcx, [0x006274b5]
mov qword [rax], rcx
lea rbx, [0x0067cbc0]
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.0040b000
lea rcx, [0x005e0ba0]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rax
lea rax, [0x0062af1b]
mov ebx, 0x27
lea rcx, [rsp + 0x98]
mov edi, 1
mov rsi, rdi
nop
call fcn.004b94c0
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, [0x005ff100]
call fcn.0040da20
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x005d86a0]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
nop dword [rax + rax]
call fcn.0057d9e0
test rdi, rdi
je 0x59c4f3
lea rax, [0x00613f80]
call fcn.0040da20
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
lea rdi, [0x005d8660]
mov rsi, rax
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rsp + 0xc0]
call fcn.0057d9e0
test rdi, rdi
je 0x59c4b6
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, [0x0062ab26]
call fcn.0044e760
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], rbx
lea rax, [0x005f2680]
call fcn.0040da20
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
cmp dword [0x00803600], 0
jne 0x59c48d
mov rdx, qword [rsp + 0x58]
mov qword [rax], rdx
jmp 0x59c49a
mov rdi, rax
mov rdx, qword [rsp + 0x58]
call fcn.00465720
lea rbx, [0x0067cbc0]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x005f2680]
nop dword [rax]
call fcn.0040da20
mov qword [rax + 8], 0x58
lea rcx, [0x0062f028]
mov qword [rax], rcx
lea rbx, [0x0067cbc0]
mov rcx, rax
xor eax, eax
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x005f2680]
call fcn.0040da20
mov qword [rax + 8], 0x58
lea rcx, [0x0062f080]
mov qword [rax], rcx
lea rbx, [0x0067cbc0]
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 0x59c5b9
cmp byte [rbx], 0
jne 0x59c57f
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 [0x00803600], 0
jne 0x59c56f
mov qword [rdi + 8], r8
jmp 0x59c52d
mov rcx, rdi
mov rdi, rdx
call fcn.00465780
mov rdi, rcx
jmp 0x59c52d
lea rax, [0x005f2680]
call fcn.0040da20
mov qword [rax + 8], 0x20
lea rcx, [0x00628ba6]
mov qword [rax], rcx
lea rbx, [0x0067cbc0]
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 0x59c671
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 0x59c609
mov qword [rsp + 0x88], rax
mov rax, rdx
call fcn.00466440
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 [0x00803600], 0
jne 0x59c63a
mov rdx, qword [rsp + 0x60]
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rbx
jmp 0x59c65a
mov rdi, qword [rsp + 0x60]
lea rdx, [rdi + 0x10]
mov rcx, rdi
mov rdi, rdx
call fcn.00465600
lea rdi, [rcx + 0x18]
call fcn.00465740
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.00465b60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00463440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0059c020