Function at 0x54a1a0
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x150]
cmp r12, qword [r14 + 0x10]
jbe 0x54cae7
push rbp
mov rbp, rsp
sub rsp, 0x1c8
mov qword [rsp + 0x1e0], rbx
mov qword [rsp + 0x1e8], rcx
mov rdx, qword [rax + 0x30]
mov r10, qword [rax + 0x38]
cmp qword [rax + 0x378], 1
nop dword [rax]
jne 0x54a29e
test sil, sil
je 0x54a1f9
mov rdi, rax
mov r8, rdx
mov rax, r10
jmp 0x54a2a7
mov r11, qword [0x006adf08]
cmp rdi, r11
jae 0x54cadb
shl rdi, 5
mov r11, qword [0x006adf00]
mov r12, qword [r11 + rdi]
mov r13, qword [r11 + rdi + 0x10]
sub rdx, r13
mov r13, qword [r11 + rdi + 8]
mov r11, qword [r11 + rdi + 0x18]
lea rdx, [r12 + rdx]
lea rdx, [rdx - 1]
test r12, r12
je 0x54cad6
mov rdi, rax
mov rax, rdx
cmp r12, 0xffffffffffffffff
jne 0x54a24e
neg rax
xor edx, edx
jmp 0x54a253
cqo
idiv r12
sub r10, r11
lea rdx, [r13 + r10]
lea rdx, [rdx - 1]
nop
test r13, r13
je 0x54cad1
mov r8, rax
mov rax, rdx
cmp r13, 0xffffffffffffffff
jne 0x54a27c
neg rax
xor edx, edx
jmp 0x54a281
cqo
idiv r13
test r8, r8
je 0x54a28b
test rax, rax
jne 0x54a2a7
xor eax, eax
xor ebx, ebx
mov rcx, rax
mov rdi, rbx
add rsp, 0x1c8
pop rbp
ret
mov rdi, rax
mov r8, rdx
mov rax, r10
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x1e8], rcx
mov qword [rsp + 0x1e0], rbx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], rax
mov rdx, qword [rdi + 0x60]
dec rdx
cmp rdx, 0xe
ja 0x54aa1a
mov byte [rsp + 0x1f8], sil
lea r9, [0x005ec160]
jmp qword [r9 + rdx*8]
xor edx, edx
xor r9d, r9d
xor r10d, r10d
xor r11d, r11d
xor r12d, r12d
xor r13d, r13d
xor r15d, r15d
xor edx, edx
mov qword [rsp + 0x178], rdx
xor edx, edx
mov qword [rsp + 0x198], rdx
xor edx, edx
mov qword [rsp + 0x180], rdx
xor edx, edx
test sil, sil
jne 0x54ab1a
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x190], r11
mov qword [rsp + 0x1a0], r12
mov qword [rsp + 0x170], rdx
mov qword [rsp + 0x168], r10
mov qword [rsp + 0x1a8], r13
lea rdx, [r9 + 7]
sar rdx, 0x3f
shr rdx, 0x3d
lea rdx, [r9 + rdx]
lea rdx, [rdx + 7]
mov qword [rsp + 0x158], rdx
imul r9, r8
lea rsi, [r9 + 7]
sar rsi, 0x3f
shr rsi, 0x3d
lea rcx, [rsi + r9]
lea rcx, [rcx + 7]
sar rcx, 3
inc rcx
mov qword [rsp + 0xd8], rcx
lea rax, [0x00565560]
mov rbx, rcx
call fcn.004435c0
mov qword [rsp + 0x1b8], rax
mov rbx, qword [rsp + 0xd8]
mov rcx, rbx
lea rax, [0x00565560]
call fcn.004435c0
mov rdx, qword [rsp + 0x158]
sar rdx, 3
mov qword [rsp + 0x108], rdx
mov rcx, qword [rsp + 0x1b8]
xor ebx, ebx
xor esi, esi
jmp 0x54ab4b
mov rax, r15
mov rbx, qword [rsp + 0x178]
xor ecx, ecx
xor edi, edi
add rsp, 0x1c8
pop rbp
ret
mov rbx, qword [rsp + 0x100]
inc rbx
mov rdx, qword [rsp + 0x108]
mov rcx, r12
mov rax, r10
mov r9, qword [rsp + 0x78]
cmp rbx, r9
jge 0x54b227
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x1b0], rcx
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x68], rsi
nop
mov rax, qword [rsp + 0x1e0]
mov rbx, qword [rsp + 0x1e8]
mov rdi, qword [rsp + 0xd8]
mov rsi, rdi
mov r8, rsi
call fcn.00462b00
nop word [rax + rax]
test rbx, rbx
jne 0x54b172
mov r8, qword [rsp + 0xd8]
cmp r8, 1
jb 0x54cac5
lea rsi, [r8 - 1]
mov rcx, rsi
neg rsi
sar rsi, 0x3f
and esi, 1
mov r10, qword [rsp + 0x1b0]
lea rax, [r10 + rsi]
nop dword [rax + rax]
cmp r8, 1
jb 0x54cab7
mov qword [rsp + 0x158], rcx
mov qword [rsp + 0x160], rax
movzx r11d, byte [r10]
mov r12, qword [rsp + 0x188]
lea rdi, [r12 + rsi]
cmp r11b, 1
ja 0x54ac29
test r11b, r11b
je 0x54ac93
mov rdx, qword [rsp + 0x108]
mov rbx, rdx
jmp 0x54ca8c
cmp r11b, 2
jne 0x54ac36
xor edx, edx
jmp 0x54ca64
cmp r11b, 3
jne 0x54ac4b
mov r11, qword [rsp + 0x108]
xor edx, edx
jmp 0x54c9c8
cmp r11b, 4
jne 0x54b157
mov rbx, rcx
mov rsi, rcx
mov r8, rcx
mov r9, qword [rsp + 0x108]
call fcn.00548c00
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x158]
mov r8, qword [rsp + 0xd8]
mov r10, qword [rsp + 0x1b0]
mov r12, qword [rsp + 0x188]
mov r11, qword [rsp + 0x1c0]
mov r13, qword [r11 + 0x60]
dec r13
cmp r13, 0xe
ja 0x54b145
lea rdx, [0x005ec1e0]
jmp qword [rdx + r13*8]
mov rdx, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x68]
jmp 0x54ab32
xor eax, eax
xor ebx, ebx
lea rcx, [0x005ea700]
lea rdi, [0x005e9b00]
add rsp, 0x1c8
pop rbp
ret
mov qword [rsp + 0x1b0], rcx
mov qword [rsp + 0x80], rbx
cmp qword [0x006ad4f0], rbx
je 0x54b18f
xor eax, eax
jmp 0x54b1b5
mov rdx, qword [0x006ad4f8]
mov rax, rbx
mov rbx, rcx
mov rcx, rdx
nop
call fcn.00404800
mov rcx, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x80]
test al, al
jne 0x54b1f9
nop dword [rax]
cmp qword [0x006ad500], rbx
je 0x54b1cd
xor eax, eax
jmp 0x54b1f5
mov rdx, qword [0x006ad508]
mov rax, rbx
mov rbx, rcx
mov rcx, rdx
nop dword [rax]
call fcn.00404800
mov rcx, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x80]
test al, al
je 0x54b214
xor eax, eax
xor ebx, ebx
lea rcx, [0x005ea700]
lea rdi, [0x005e9ad0]
add rsp, 0x1c8
pop rbp
ret
xor eax, eax
mov rdi, rcx
mov rcx, rbx
xor ebx, ebx
add rsp, 0x1c8
pop rbp
ret
mov rax, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x178]
xor ecx, ecx
xor edi, edi
add rsp, 0x1c8
pop rbp
ret
movzx r15d, byte [rdx + rdi]
shr r15b, 1
add r13d, r15d
mov byte [rax + rdx], r13b
inc rdx
cmp rdx, r11
jge 0x54c9db
cmp rdx, rcx
jae 0x54ca4d
movzx r13d, byte [rdx + rax]
jb 0x54c9b6
jmp 0x54ca45
mov rdx, r11
nop
jmp 0x54ca03
movzx ebx, byte [r13 + rdi]
add rbx, r11
mov rsi, rbx
shr rbx, 0x3f
add rbx, rsi
sar rbx, 1
add r15d, ebx
mov byte [rax + r13], r15b
lea r11, [r13 + 1]
cmp r11, rcx
jge 0x54ac93
jae 0x54ca39
mov r13, r11
sub r11, rdx
movzx r15d, byte [r13 + rax]
cmp r11, rcx
jae 0x54ca31
movzx r11d, byte [r11 + rax]
cmp r13, rcx
jb 0x54c9e2
mov rax, r13
call fcn.00459480
mov rax, r11
call fcn.00459480
mov rax, r11
nop dword [rax]
call fcn.00459480
mov rax, rdx
call fcn.00459480
mov rax, rdx
call fcn.00459480
movzx r13d, byte [rdx + rax]
add r11d, r13d
mov byte [rax + rdx], r11b
inc rdx
cmp rdx, rcx
jge 0x54ac93
movzx r11d, byte [rdx + rdi]
jb 0x54ca55
mov rax, rdx
call fcn.00459480
movzx r15d, byte [rdx + rax]
add r13d, r15d
mov byte [rax + r11], r13b
lea rdx, [r11 + 1]
cmp rdx, rcx
jge 0x54ac93
jae 0x54caaf
mov r11, rdx
sub rdx, rbx
movzx r13d, byte [r11 + rax]
cmp rdx, rcx
jb 0x54ca7c
mov rax, rdx
call fcn.00459480
mov rax, rdx
call fcn.00459480
mov eax, 1
xor ecx, ecx
nop
call fcn.00459540
mov eax, 1
xor ecx, ecx
call fcn.00459540
call fcn.004302c0
call fcn.004302c0
mov rax, rdi
mov rcx, r11
call fcn.00459480
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x28], sil
call fcn.00457200
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
movzx esi, byte [rsp + 0x28]
nop
jmp fcn.0054a1a0