Function at 0x14010d3c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
test ecx, ecx
je 0x14010d3f1
mov r15, rdx
test rdx, rdx
je 0x14010d3f1
mov r13, r9
mov rdi, r8
mov ebx, ecx
test r8, r8
jne 0x14010d416
test r13, r13
jne 0x14010d416
mov dword [0x140210064], 0x3f
mov ebp, 0x3f
mov eax, ebp
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, dword [0x140217d70]
mov ebp, 0xffffffff
cmp esi, ebx
jge 0x14010d400
movsxd rax, esi
mov rcx, qword [r15 + rax*8]
test rcx, rcx
je 0x14010d400
lea rdx, [0x1401c4ff7]
call fcn.1401a08b0
test eax, eax
je 0x14010d481
test esi, esi
jne 0x14010d45f
mov dword [0x140217d70], 1
mov qword [0x140217d78], 1
mov esi, 1
test rdi, rdi
je 0x14010d48e
mov al, byte [rdi]
cmp al, 0x2d
je 0x14010d46e
cmp al, 0x2b
jne 0x14010d48e
xor ecx, ecx
cmp al, 0x2d
sete cl
mov edx, 2
sub edx, ecx
inc rdi
jmp 0x14010d4a4
inc esi
mov dword [0x140217d70], esi
jmp 0x14010d400
lea rcx, str.POSIXLY_CORRECT
call fcn.14019b828
xor edx, edx
test rax, rax
setne dl
add edx, edx
mov r11d, dword [rsp + 0xf8]
mov rax, qword [0x140217d78]
mov r14, rax
cmp rax, 1
mov dword [rsp + 0x4c], edx
jne 0x14010d591
cmp edx, 2
je 0x14010d56e
cmp edx, 1
je 0x14010d669
test edx, edx
jne 0x14010d591
movsxd rax, esi
mov qword [rsp + 0x38], rax
mov rcx, qword [r15 + rax*8]
test rcx, rcx
je 0x14010d483
test r11d, r11d
setne al
mov dl, byte [rcx]
cmp dl, 0x2b
sete r8b
xor r12d, r12d
cmp dl, 0x2d
je 0x14010dbbe
mov rdx, rsi
and al, r8b
jne 0x14010dbc1
mov rax, qword [rsp + 0x38]
lea r8, [r15 + rax*8]
add r8, 8
mov r9d, edx
xor r12d, r12d
mov rsi, rdx
lea eax, [r9 + r12]
add eax, 1
mov dword [0x140217d70], eax
mov rcx, qword [r8 + r12*8]
test rcx, rcx
je 0x14010d483
test r11d, r11d
setne al
mov r10b, byte [rcx]
cmp r10b, 0x2b
sete dl
inc r12
cmp r10b, 0x2d
je 0x14010d563
and al, dl
je 0x14010d52c
mov rdx, rsi
add esi, r12d
jmp 0x14010dbc1
movsxd rax, esi
mov rax, qword [r15 + rax*8]
test rax, rax
je 0x14010d591
mov al, byte [rax]
cmp al, 0x2d
je 0x14010d591
test r11d, r11d
je 0x14010d400
cmp al, 0x2b
jne 0x14010d400
xor eax, eax
mov qword [rsp + 0x38], rax
xor r12d, r12d
mov rbp, r14
mov r10d, 0xffffffff
movsxd r14, esi
test r13, r13
je 0x14010d796
mov rax, r14
mov r14d, r11d
mov qword [rsp + 0x60], rax
mov rcx, qword [r15 + rax*8]
lea rdx, [0x1401c4ff7]
mov r8d, 2
mov qword [rsp + 0x50], rcx
call fcn.1401a0ad0
test eax, eax
je 0x14010d603
test r14d, r14d
je 0x14010d659
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0x2b
mov r10d, 0xffffffff
mov r14, qword [rsp + 0x60]
jne 0x14010d796
cmp rbp, 1
je 0x14010d623
jmp 0x14010d796
cmp rbp, 1
jne 0x14010d659
mov qword [0x140217d78], 2
mov ebp, 2
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rbp]
mov qword [rsp + 0x58], rcx
mov edx, 0x3d
call fcn.140183c90
test rax, rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], r15
je 0x14010d6a0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x50]
sub rax, rcx
jmp 0x14010d6b8
mov r10d, 0xffffffff
mov r14, qword [rsp + 0x60]
jmp 0x14010d796
movsxd rax, esi
mov rax, qword [r15 + rax*8]
test rax, rax
mov rbp, r14
je 0x14010d691
mov cl, byte [rax]
cmp cl, 0x2d
je 0x14010d691
test r11d, r11d
je 0x14010dc21
cmp cl, 0x2b
jne 0x14010dc21
xor eax, eax
mov qword [rsp + 0x38], rax
xor r12d, r12d
jmp 0x14010d59e
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1401a0a10
mov rcx, rax
add rcx, rsi
mov qword [rsp + 0x78], rcx
mov rbp, qword [r13]
test rbp, rbp
mov r10d, 0xffffffff
je 0x14010d73a
sub rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], r13
add r13, 0x20
mov r15d, 0xffffffff
xor r14d, r14d
mov rsi, r12
mov rcx, qword [rsp + 0x58]
mov rdx, rbp
mov r12, rax
mov r8, rax
call fcn.1401a0ad0
test eax, eax
je 0x14010d706
mov r10d, r15d
mov rax, r12
mov r12, rsi
jmp 0x14010d725
mov rcx, rbp
call fcn.1401a0a10
cmp r12, rax
je 0x14010d746
mov rax, r12
mov r10d, r14d
test r15d, r15d
mov r12, rsi
jns 0x14010db66
mov rbp, qword [r13]
inc r14d
add r13, 0x20
mov r15d, r10d
test rbp, rbp
jne 0x14010d6e1
jmp 0x14010d74c
mov r15, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x40]
jmp 0x14010d791
mov r10d, r14d
mov r12, rsi
test r10d, r10d
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x60]
js 0x14010d784
mov eax, r10d
shl rax, 5
mov r13, qword [rsp + 0x80]
mov ecx, dword [r13 + rax + 8]
xor eax, eax
xor edi, edi
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
jmp 0x14010d800
mov r13, qword [rsp + 0x80]
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
test rdi, rdi
je 0x14010d841
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x58], r10d
mov rsi, qword [r15 + r14*8]
movsx r14d, byte [rsi + rbp]
mov rcx, rdi
mov edx, r14d
call fcn.140183c90
test rax, rax
je 0x14010d849
mov rdi, rax
lea rax, [rsi + rbp]
xor ecx, ecx
cmp byte [rdi + 1], 0x3a
mov rdx, rsi
jne 0x14010d7e3
xor ecx, ecx
cmp byte [rdi + 2], 0x3a
sete cl
inc ecx
inc rax
mov qword [rsp + 0x78], rax
movsx eax, byte [rdi]
mov dword [0x140210064], eax
mov al, 1
mov r10d, dword [rsp + 0x58]
mov rsi, qword [rsp + 0x40]
test ecx, ecx
je 0x14010d8b9
cmp ecx, 1
je 0x14010d8f5
xor r8d, r8d
cmp ecx, 2
jne 0x14010d928
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + 1]
cmp byte [rcx], 0x3d
cmovne rax, rcx
cmp byte [rax], 0
jne 0x14010d90e
mov qword [0x140217d68], 0
xor r8d, r8d
jmp 0x14010d928
cmp dword [0x140210060], 0
mov rdx, qword [rsp + 0x40]
je 0x14010d88b
mov rsi, qword [r15]
mov ecx, 2
call fcn.1401849e8
lea rdx, str._s:_invalid_option_______c_n
mov rcx, rax
mov r8, rsi
mov r9d, r14d
call fcn.14000cb70
mov rbp, qword [0x140217d78]
movsxd rdx, dword [0x140217d70]
mov rsi, qword [r15 + rdx*8]
lea rax, [rbp + 1]
mov qword [0x140217d78], rax
cmp byte [rsi + rbp + 1], 0
jne 0x14010d3f1
inc edx
mov dword [0x140217d70], edx
mov qword [0x140217d78], 1
jmp 0x14010d3f1
mov ecx, 1
test al, al
je 0x14010d8db
lea rax, [rbp + 1]
mov qword [0x140217d78], rax
cmp byte [rdx + rbp + 1], 0
mov ecx, 1
cmovne rcx, rax
mov qword [0x140217d78], rcx
mov qword [0x140217d68], 0
xor r8d, r8d
mov rbp, rcx
jmp 0x14010d928
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + 1]
cmp byte [rcx], 0x3d
cmovne rax, rcx
cmp byte [rax], 0
je 0x14010db30
mov qword [0x140217d68], rax
mov qword [0x140217d78], 1
xor r8d, r8d
mov ebp, 1
xor r9d, r9d
test r12d, r12d
je 0x14010d97d
cmp dword [rsp + 0x4c], 0
jne 0x14010d97d
cmp rbp, 1
jne 0x14010d97d
lea r11d, [r9 + 1]
mov rax, qword [rsp + 0x38]
lea rbp, [r15 + rax*8]
cmp r12d, 2
mov dword [rsp + 0x58], r10d
jb 0x14010da1e
mov dword [rsp + 0x4c], r8d
mov eax, r12d
shr eax, 1
cmp eax, 1
mov r10d, 1
cmova r10d, eax
cmp r12d, 4
jae 0x14010d994
mov r8, r15
xor esi, esi
jmp 0x14010d9ed
cmp rbp, 1
jne 0x14010daed
lea r11d, [r9 + rsi]
add r11d, 1
jmp 0x14010dae6
mov r14d, r10d
and r14d, 0xfffffffe
mov r8, r15
mov rax, qword [rsp + 0x38]
lea rcx, [r15 + rax*8]
add rcx, 8
lea ebx, [r12 - 2]
xor esi, esi
mov rdx, qword [rcx + rsi*8 - 8]
lea edi, [rbx + 1]
movsxd rdi, edi
mov rax, qword [rbp + rdi*8]
mov qword [rcx + rsi*8 - 8], rax
mov qword [rbp + rdi*8], rdx
mov rax, qword [rcx + rsi*8]
movsxd rbx, ebx
mov rdx, qword [rbp + rbx*8]
mov qword [rcx + rsi*8], rdx
mov qword [rbp + rbx*8], rax
add rsi, 2
add ebx, 0xfffffffe
cmp r14, rsi
jne 0x14010d9b2
test r10b, 1
mov r15, r8
mov r10d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x4c]
je 0x14010da1e
mov rax, qword [rbp + rsi*8]
mov ecx, esi
not ecx
add ecx, r12d
movsxd rcx, ecx
mov rdx, qword [rbp + rcx*8]
mov qword [rbp + rsi*8], rdx
mov qword [rbp + rcx*8], rax
lea r14d, [r11 + r12]
cmp r14d, 2
jb 0x14010dac7
mov ecx, r14d
shr ecx, 1
cmp ecx, 1
mov r10d, 1
cmova r10d, ecx
cmp r14d, 4
jae 0x14010da48
xor edi, edi
jmp 0x14010da9e
mov esi, r10d
and esi, 0xfffffffe
mov rax, qword [rsp + 0x38]
lea rcx, [r15 + rax*8]
add rcx, 8
add r12d, r9d
xor edi, edi
mov rdx, qword [rcx + rdi*8 - 8]
movsxd r12, r12d
mov rax, qword [rbp + r12*8]
mov qword [rcx + rdi*8 - 8], rax
mov qword [rbp + r12*8], rdx
mov rax, qword [rcx + rdi*8]
lea edx, [r12 - 1]
movsxd rdx, edx
mov rbx, qword [rbp + rdx*8]
mov qword [rcx + rdi*8], rbx
mov qword [rbp + rdx*8], rax
add rdi, 2
add r12d, 0xfffffffe
cmp rsi, rdi
jne 0x14010da60
test r10b, 1
mov r10d, dword [rsp + 0x58]
je 0x14010dac7
mov rax, qword [rbp + rdi*8]
mov ecx, edi
not ecx
add r14d, ecx
movsxd rcx, r14d
mov rdx, qword [rbp + rcx*8]
mov qword [rbp + rdi*8], rdx
mov qword [rbp + rcx*8], rax
test r8b, r8b
je 0x14010dae1
mov rax, qword [rbp]
mov ecx, r9d
mov rdx, qword [rbp + rcx*8]
mov qword [rbp], rdx
mov qword [rbp + rcx*8], rax
add r11d, dword [rsp + 0x38]
mov dword [0x140217d70], r11d
test r10d, r10d
js 0x14010db25
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x14010db02
mov dword [rax], r10d
mov ecx, r10d
shl rcx, 5
mov rax, qword [r13 + rcx + 0x10]
mov ebp, dword [r13 + rcx + 0x18]
test rax, rax
je 0x14010d400
mov dword [rax], ebp
xor ebp, ebp
jmp 0x14010d400
mov ebp, dword [0x140210064]
jmp 0x14010d400
lea eax, [rsi + 1]
cmp eax, ebx
jge 0x14010dc44
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x140217d68], rax
mov qword [0x140217d78], 1
mov r9d, 1
mov r8b, 1
mov ebp, 1
jmp 0x14010d92b
cmp dword [0x140210060], 0
je 0x14010d3f1
mov eax, r15d
shl rax, 5
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rcx + rax]
mov rax, qword [rsp + 0x68]
mov rsi, qword [rax]
mov ecx, 2
call fcn.1401849e8
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
lea rdx, str._s:_option___s_is_ambiguous__could_be_____s_or_____s__n
mov rcx, rax
mov r8, rsi
mov r9, qword [rsp + 0x50]
call fcn.14000cb70
jmp 0x14010d3f1
mov rdx, rsi
mov qword [rsp + 0x40], rdx
lea rdx, [0x1401c4ff7]
call fcn.1401a08b0
test eax, eax
je 0x14010dbe6
mov rbp, r14
mov r11d, dword [rsp + 0xf8]
jmp 0x14010d59e
mov rax, qword [rsp + 0x38]
lea r10, [r15 + rax*8]
cmp r12d, 2
mov r14, qword [rsp + 0x40]
jb 0x14010dd18
mov ecx, r12d
shr ecx, 1
cmp ecx, 1
mov r8d, 1
cmova r8d, ecx
cmp r12d, 4
jae 0x14010dca7
xor edx, edx
jmp 0x14010dcf8
inc esi
mov dword [0x140217d70], esi
mov qword [0x140217d68], rax
mov dword [0x140210064], 1
mov ebp, 1
jmp 0x14010d400
cmp dword [0x140210060], 0
je 0x14010ddd9
mov rsi, qword [r15]
mov ecx, 2
mov ebx, r10d
call fcn.1401849e8
lea rdx, str._s:_argument_required_for_option__
mov rcx, rax
mov r8, rsi
call fcn.14000cb70
test ebx, ebx
js 0x14010ddba
mov eax, ebx
shl rax, 5
mov rsi, qword [r13 + rax]
mov ecx, 2
call fcn.1401849e8
lea rdx, str.___s_n
mov rcx, rax
mov r8, rsi
call fcn.14000cb70
jmp 0x14010ddd9
mov r9d, r8d
and r9d, 0xfffffffe
mov rax, qword [rsp + 0x38]
lea rsi, [r15 + rax*8]
add rsi, 8
lea ebx, [r12 - 2]
xor edx, edx
mov r11, qword [rsi + rdx*8 - 8]
lea eax, [rbx + 1]
cdqe
mov rcx, qword [r10 + rax*8]
mov qword [rsi + rdx*8 - 8], rcx
mov qword [r10 + rax*8], r11
mov rax, qword [rsi + rdx*8]
movsxd rbx, ebx
mov rcx, qword [r10 + rbx*8]
mov qword [rsi + rdx*8], rcx
mov qword [r10 + rbx*8], rax
add rdx, 2
add ebx, 0xfffffffe
cmp r9, rdx
jne 0x14010dcc2
test r8b, 1
je 0x14010dd18
mov rax, qword [r10 + rdx*8]
mov ecx, edx
not ecx
add ecx, r12d
movsxd rcx, ecx
mov rbx, qword [r10 + rcx*8]
mov qword [r10 + rdx*8], rbx
mov qword [r10 + rcx*8], rax
test r12d, r12d
je 0x14010ddab
lea eax, [r12 + 1]
shr eax, 1
cmp eax, 1
mov r8d, 1
cmova r8d, eax
cmp r12d, 3
jae 0x14010dd3f
xor edx, edx
jmp 0x14010dd8f
mov r9d, r8d
and r9d, 0xfffffffe
mov rax, qword [rsp + 0x38]
lea rdi, [r15 + rax*8]
add rdi, 8
xor edx, edx
mov esi, r12d
mov rax, qword [rdi + rdx*8 - 8]
movsxd rsi, esi
mov rbx, qword [r10 + rsi*8]
mov qword [rdi + rdx*8 - 8], rbx
mov qword [r10 + rsi*8], rax
mov rax, qword [rdi + rdx*8]
lea ebx, [rsi - 1]
movsxd rbx, ebx
mov rcx, qword [r10 + rbx*8]
mov qword [rdi + rdx*8], rcx
mov qword [r10 + rbx*8], rax
add rdx, 2
add esi, 0xfffffffe
cmp r9, rdx
jne 0x14010dd58
test r8b, 1
je 0x14010ddab
mov rax, qword [r10 + rdx*8]
sub r12d, edx
movsxd rcx, r12d
mov rbx, qword [r10 + rcx*8]
mov qword [r10 + rdx*8], rbx
mov qword [r10 + rcx*8], rax
inc r14d
mov dword [0x140217d70], r14d
jmp 0x14010d400
movsx esi, byte [rdi]
mov ecx, 2
call fcn.1401849e8
lea rdx, str.__c_n
mov rcx, rax
mov r8d, esi
call fcn.14000cb70
inc dword [0x140217d70]
mov dword [0x140210064], 0x3a
mov ebp, 0x3a
jmp 0x14010d400