Function at 0x10049a7c0
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov eax, dword [sym.bash.exe__rl_colored_stats]
mov rbx, rcx
mov rsi, rdx
mov ebp, r8d
test eax, eax
je 0x10049a940
mov r13d, dword [sym.bash.exe_rl_filename_completion_desired]
test r13d, r13d
je 0x10049a940
cmp rbx, rsi
je 0x10049aa30
movzx r12d, byte [rbx - 1]
mov byte [rbx - 1], 0
test rsi, rsi
je 0x10049a818
movzx eax, byte [rsi]
test al, al
jne 0x10049a9d0
lea rsi, [0x10053d0db]
mov rcx, rsi
mov qword [rsp + 0x28], rsi
call sym.bash.exe_tilde_expand
mov qword [rsp + 0x20], rax
mov rcx, rax
mov rax, qword [sym.bash.exe_rl_directory_completion_hook]
test rax, rax
je 0x10049a84c
lea rcx, [rsp + 0x20]
call rax
mov rcx, qword [rsp + 0x20]
call sub.msys_2.0.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.msys_2.0.dll_strlen
lea ecx, [rsi + rax + 2]
movsxd rcx, ecx
call sym.bash.exe_xmalloc
mov rdx, qword [rsp + 0x20]
mov rcx, rax
mov r13, rax
call fcn.100514770
mov rcx, qword [rsp + 0x20]
movsxd rax, esi
lea rdx, [rax - 1]
cmp byte [rcx + rax - 1], 0x2f
je 0x10049a894
mov byte [r13 + rax], 0x2f
mov rdx, rax
lea rcx, [r13 + rdx + 1]
mov rdx, rbx
call fcn.100514770
mov esi, dword [sym.bash.exe_rl_visible_stats]
test esi, esi
jne 0x10049aa00
mov esi, dword [sym.bash.exe__rl_complete_mark_directories]
test esi, esi
je 0x10049a8f8
cmp qword [sym.bash.exe_rl_directory_completion_hook], 0
mov qword [rsp + 0x28], 0
je 0x10049aab8
lea rdx, [rsp + 0x30]
mov rcx, r13
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10049a8f6
mov eax, dword [rsp + 0x40]
mov esi, 0x2f
and eax, 0xf000
cmp eax, 0x4000
je 0x10049a8f8
xor esi, esi
mov r11d, dword [sym.bash.exe__rl_colored_stats]
test r11d, r11d
jne 0x10049aa1a
mov rcx, r13
call sym.bash.exe_xfree
mov byte [rbx - 1], r12b
mov rcx, qword [rsp + 0x20]
call sym.bash.exe_xfree
test esi, esi
jne 0x10049a9b0
mov eax, edi
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rbx
mov edx, ebp
mov rcx, rbx
call fcn.100498d10
mov r12d, dword [sym.bash.exe_rl_filename_completion_desired]
mov edi, eax
test r12d, r12d
je 0x10049a926
mov eax, dword [sym.bash.exe_rl_visible_stats]
or eax, dword [sym.bash.exe__rl_complete_mark_directories]
or eax, dword [sym.bash.exe__rl_colored_stats]
je 0x10049a926
jmp 0x10049a7f6
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov r8d, dword [sym.bash.exe__rl_colored_stats]
and edx, 0xf000
mov rax, rcx
cmp edx, 0x4000
jne 0x10049aa87
test r8d, r8d
jne 0x10049ab3c
call sym.bash.exe_xfree
mov esi, 0x2f
mov rax, qword [sym.bash.exe_rl_outstream]
mov ecx, esi
add edi, 1
mov rdx, qword [rax]
call sub.msys_2.0.dll_putc
jmp 0x10049a926
cmp al, 0x2f
jne 0x10049a81f
movzx eax, byte [rsi + 1]
test al, al
je 0x10049ab30
cmp al, 0x2f
jne 0x10049a81f
cmp byte [rsi + 2], 0
je 0x10049a818
jmp 0x10049a81f
mov rcx, r13
call fcn.100498bb0
mov r11d, dword [sym.bash.exe__rl_colored_stats]
mov esi, eax
test r11d, r11d
je 0x10049a908
mov r8, r13
mov edx, ebp
mov rcx, rbx
call fcn.100498d10
mov edi, eax
jmp 0x10049a908
mov rcx, rbx
call sym.bash.exe_tilde_expand
mov r10d, dword [sym.bash.exe_rl_visible_stats]
mov qword [rsp + 0x20], rax
mov rcx, rax
test r10d, r10d
jne 0x10049ab08
mov esi, dword [sym.bash.exe__rl_complete_mark_directories]
test esi, esi
jne 0x10049aa70
mov r8d, dword [sym.bash.exe__rl_colored_stats]
test r8d, r8d
jne 0x10049aaa0
call sym.bash.exe_xfree
jmp 0x10049a926
lea rdx, [rsp + 0x30]
call sub.msys_2.0.dll_stat
test eax, eax
je 0x10049a978
mov rax, qword [rsp + 0x20]
mov edx, dword [sym.bash.exe__rl_colored_stats]
mov rcx, rax
test edx, edx
je 0x10049aa66
xor esi, esi
nop word cs:[rax + rax]
mov r8, rcx
mov edx, ebp
mov rcx, rbx
call fcn.100498d10
mov edi, eax
jmp 0x10049a914
cmp qword [sym.bash.exe_rl_filename_stat_hook], 0
je 0x10049a8d0
mov rcx, r13
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, r13
mov rcx, rax
call fcn.100514770
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call qword [sym.bash.exe_rl_filename_stat_hook]
mov rcx, r13
call sym.bash.exe_xfree
mov r13, qword [rsp + 0x28]
jmp 0x10049a8d0
call fcn.100498bb0
mov r9d, dword [sym.bash.exe__rl_colored_stats]
mov esi, eax
test r9d, r9d
je 0x10049a914
mov rcx, qword [rsp + 0x20]
jmp 0x10049aaa0
lea rsi, [0x10053d0dd]
jmp 0x10049a81f
mov esi, 0x2f
jmp 0x10049aaa0