Function at 0x100498d10
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rcx
mov qword [rsp + 0xa0], r8
mov ebx, edx
call sub.msys_2.0.dll_strlen
mov ecx, dword [sym.bash.exe__rl_completion_prefix_display_length]
mov qword [rsp + 0x38], 0
movsxd rdx, eax
mov r8d, dword [sym.bash.exe__rl_colored_stats]
test ecx, ecx
lea r13, [rbp + rdx + 1]
setg dl
mov r9d, edx
cmp ebx, eax
jl 0x100498d64
test dl, dl
jne 0x100498ef8
test r8d, r8d
jne 0x100498ec0
test ebx, ebx
jne 0x100499073
movzx eax, byte [rbp]
mov r15, rbp
xor ebx, ebx
xor esi, esi
test al, al
je 0x100498fb2
mov rcx, qword [sym.bash.exe__rl_color_indicator]
lea rdi, [rsp + 0x38]
add rcx, 0x170
mov qword [rsp + 0x28], rcx
jmp 0x100498e52
cmp al, 0x7f
je 0x100498f20
mov r8, r13
lea rcx, [rsp + 0x36]
mov r9, rdi
mov rdx, r15
sub r8, r15
call sub.msys_2.0.dll_mbrtowc
mov r14, rax
cmp rax, 0xfffffffffffffffd
ja 0x100498fe0
test rax, rax
je 0x100498f90
movzx ecx, word [rsp + 0x36]
cmp cx, 0x5f
ja 0x100499000
mov r12d, 1
cmp cx, 0x40
ja 0x100498e10
cmp cx, 0x23
ja 0x100499030
cmp cx, 0x1f
jbe 0x100499013
nop dword [rax + rax]
mov rax, qword [sym.bash.exe_rl_outstream]
mov rcx, r15
mov r8, r14
add r15, r14
mov edx, 1
add esi, r12d
mov r9, qword [rax]
call sub.msys_2.0.dll_fwrite
test ebx, ebx
jle 0x100498e46
mov rdx, r15
movsxd rax, ebx
sub rdx, rbp
cmp rdx, rax
jge 0x100498f60
movzx eax, byte [r15]
test al, al
je 0x100498f90
cmp al, 0x1f
ja 0x100498da8
mov r12, qword [sym.bash.exe_rl_outstream]
mov ecx, 0x5e
mov rdx, qword [r12]
call sub.msys_2.0.dll_putc
mov r12, qword [r12]
call sub.msys_2.0.dll___locale_ctype_ptr
movzx r14d, byte [r15]
or r14d, 0x40
movzx ecx, r14b
movzx r8d, byte [rcx + rax + 1]
movsx ecx, r14b
and r8d, 3
cmp r8b, 2
je 0x100499040
mov rdx, r12
add esi, 2
add r15, 1
call sub.msys_2.0.dll_putc
mov qword [rdi], 0
jmp 0x100498e30
test ebx, ebx
je 0x100498f01
mov r8d, dword [sym.bash.exe__rl_colored_completion_prefix]
test r8d, r8d
jle 0x100499055
cmp ecx, ebx
jge 0x100498ee0
test dl, dl
jne 0x10049907c
call sym.bash.exe__rl_set_normal_color
mov r15, rbp
xor esi, esi
call sym.bash.exe__rl_print_prefix_color
jmp 0x1004990da
test r8d, r8d
je 0x100498d75
call sym.bash.exe__rl_set_normal_color
mov r15, rbp
xor ebx, ebx
xor esi, esi
mov rcx, qword [rsp + 0xa0]
call sym.bash.exe__rl_print_color_indicator
jmp 0x1004990da
mov r12, qword [sym.bash.exe_rl_outstream]
mov ecx, 0x5e
add esi, 2
add r15, 1
mov rdx, qword [r12]
call sub.msys_2.0.dll_putc
mov rdx, qword [r12]
mov ecx, 0x3f
call sub.msys_2.0.dll_putc
mov qword [rdi], 0
jmp 0x100498e30
call sym.bash.exe__rl_prep_non_filename_text
mov rcx, qword [rsp + 0x28]
call sym.bash.exe__rl_put_indicator
mov edx, dword [sym.bash.exe__rl_colored_stats]
test edx, edx
jne 0x100498fc8
xor ebx, ebx
movzx eax, byte [r15]
test al, al
jne 0x100498e52
nop word [rax + rax]
mov eax, dword [sym.bash.exe__rl_colored_stats]
test eax, eax
je 0x100498fb2
call sym.bash.exe__rl_prep_non_filename_text
mov rax, qword [sym.bash.exe__rl_color_indicator]
lea rcx, [rax + 0x170]
call sym.bash.exe__rl_put_indicator
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.bash.exe__rl_set_normal_color
mov rcx, qword [rsp + 0xa0]
xor ebx, ebx
call sym.bash.exe__rl_print_color_indicator
jmp 0x100498f7b
mov qword [rdi], 0
mov r12d, 1
mov r14d, 1
jmp 0x100498e10
lea eax, [rcx - 0x61]
mov r12d, 1
cmp ax, 0x1d
jbe 0x100498e10
call sub.msys_2.0.dll_wcwidth
mov r12d, eax
test eax, eax
mov eax, 1
cmovs r12d, eax
jmp 0x100498e10
lea eax, [rcx - 0x25]
cmp ax, 0x1a
jbe 0x100498e10
jmp 0x100499013
call sub.msys_2.0.dll___locale_ctype_ptr
movzx ecx, r14b
call fcn.100514970
mov ecx, eax
jmp 0x100498e9c
call sym.bash.exe__rl_set_normal_color
mov rcx, qword [rsp + 0xa0]
call sym.bash.exe__rl_print_color_indicator
mov ecx, dword [sym.bash.exe__rl_completion_prefix_display_length]
test ecx, ecx
setg r9b
cmp ebx, ecx
jle 0x1004990c0
test r9b, r9b
je 0x1004990c0
movsxd r10, ebx
mov esi, 0x2e
mov eax, 0x5f
mov rdi, qword [sym.bash.exe_rl_outstream]
lea r15, [rbp + r10]
mov ebx, 3
cmp byte [r15], 0x2e
cmove esi, eax
mov rdx, qword [rdi]
mov ecx, esi
call sub.msys_2.0.dll_putc
sub ebx, 1
jne 0x1004990a1
xor ebx, ebx
mov esi, 3
jmp 0x1004990da
mov ecx, dword [sym.bash.exe__rl_colored_completion_prefix]
test ecx, ecx
jg 0x100498ee0
movsxd r10, ebx
xor esi, esi
xor ebx, ebx
lea r15, [rbp + r10]
movzx eax, byte [r15]
test al, al
jne 0x100498d88
jmp 0x100498f90