Function at 0x10048ab70
Capabilities:
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0xb0
mov esi, dword [sym.bash.exe__rl_colored_stats]
mov r12, rcx
mov r13, rdx
mov r15d, r8d
test esi, esi
je 0x10048ad08
mov ebx, dword [sym.bash.exe_rl_filename_completion_desired]
test ebx, ebx
je 0x10048ad08
cmp r12, r13
je 0x10048add8
movzx ebx, byte [r12 - 1]
mov byte [r12 - 1], 0
test r13, r13
je 0x10048abd1
movzx eax, byte [r13]
test al, al
jne 0x10048ad78
lea r13, [0x1004f9afb]
mov qword [rbp - 0x88], r13
mov rcx, r13
call sym.bash.exe_tilde_expand
mov qword [rbp - 0x90], rax
mov rcx, rax
mov rax, qword [sym.bash.exe_rl_directory_completion_hook]
test rax, rax
je 0x10048ac0d
lea rcx, [rbp - 0x90]
call rax
mov rcx, qword [rbp - 0x90]
call sub.msys_2.0.dll_strlen
mov rcx, r12
mov r13, rax
call sub.msys_2.0.dll_strlen
lea ecx, [r13 + rax + 2]
movsxd rcx, ecx
call sym.bash.exe_xmalloc
mov rdx, qword [rbp - 0x90]
mov rcx, rax
mov rsi, rax
call fcn.1004d3420
mov rdx, qword [rbp - 0x90]
movsxd rax, r13d
cmp byte [rdx + rax - 1], 0x2f
je 0x10048ad90
mov byte [rsi + rax], 0x2f
lea rcx, [rsi + rax + 1]
mov rdx, r12
call fcn.1004d3420
mov r10d, dword [sym.bash.exe_rl_visible_stats]
test r10d, r10d
jne 0x10048ada0
mov r13d, dword [sym.bash.exe__rl_complete_mark_directories]
test r13d, r13d
je 0x10048acbf
cmp qword [sym.bash.exe_rl_directory_completion_hook], 0
mov qword [rbp - 0x88], 0
je 0x10048aea0
lea rdx, [rbp - 0x80]
mov rcx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10048acbc
mov eax, dword [rbp - 0x70]
mov r13d, 0x2f
and eax, 0xf000
cmp eax, 0x4000
je 0x10048acbf
xor r13d, r13d
mov r9d, dword [sym.bash.exe__rl_colored_stats]
test r9d, r9d
jne 0x10048adbb
mov rcx, rsi
call sym.bash.exe_xfree
mov byte [r12 - 1], bl
mov rcx, qword [rbp - 0x90]
call sym.bash.exe_xfree
test r13d, r13d
jne 0x10048ad58
mov eax, r14d
add rsp, 0xb0
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8, r12
mov edx, r15d
mov rcx, r12
call fcn.100489000
mov r11d, dword [sym.bash.exe_rl_filename_completion_desired]
mov r14d, eax
test r11d, r11d
je 0x10048aced
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 0x10048aced
jmp 0x10048abaa
test eax, eax
jne 0x10048af38
call sym.bash.exe_xfree
mov r13d, 0x2f
nop dword [rax + rax]
mov rax, qword [sym.bash.exe_rl_outstream]
mov ecx, r13d
add r14d, 1
mov rdx, qword [rax]
call sub.msys_2.0.dll_putc
jmp 0x10048aced
cmp al, 0x2f
je 0x10048ae80
mov qword [rbp - 0x88], r13
jmp 0x10048abdf
sub r13d, 1
movsxd rax, r13d
jmp 0x10048ac55
mov rcx, rsi
call fcn.100488e90
mov r9d, dword [sym.bash.exe__rl_colored_stats]
mov r13d, eax
test r9d, r9d
je 0x10048accf
mov r8, rsi
mov edx, r15d
mov rcx, r12
call fcn.100489000
mov r14d, eax
jmp 0x10048accf
mov rcx, r12
call sym.bash.exe_tilde_expand
mov r8d, dword [sym.bash.exe_rl_visible_stats]
mov qword [rbp - 0x90], rax
mov rcx, rax
test r8d, r8d
jne 0x10048aef8
mov r13d, dword [sym.bash.exe__rl_complete_mark_directories]
test r13d, r13d
jne 0x10048ae20
mov eax, dword [sym.bash.exe__rl_colored_stats]
test eax, eax
jne 0x10048ae60
call sym.bash.exe_xfree
jmp 0x10048aced
lea rdx, [rbp - 0x80]
call sub.msys_2.0.dll_stat
mov rcx, qword [rbp - 0x90]
test eax, eax
mov eax, dword [sym.bash.exe__rl_colored_stats]
jne 0x10048ae4f
mov edx, dword [rbp - 0x70]
and edx, 0xf000
cmp edx, 0x4000
je 0x10048ad40
test eax, eax
je 0x10048ae10
xor r13d, r13d
nop word cs:[rax + rax]
mov r8, rcx
mov edx, r15d
mov rcx, r12
call fcn.100489000
mov r14d, eax
jmp 0x10048acdc
movzx eax, byte [r13 + 1]
test al, al
jne 0x10048af20
lea r13, [0x1004f9afd]
jmp 0x10048ad80
cmp qword [sym.bash.exe_rl_filename_stat_hook], 0
je 0x10048ac97
mov rcx, rsi
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rsi
mov rcx, rax
call fcn.1004d3420
lea rcx, [rbp - 0x88]
mov qword [rbp - 0x88], rax
call qword [sym.bash.exe_rl_filename_stat_hook]
mov rcx, rsi
call sym.bash.exe_xfree
mov rsi, qword [rbp - 0x88]
jmp 0x10048ac97
call fcn.100488e90
mov edx, dword [sym.bash.exe__rl_colored_stats]
mov r13d, eax
test edx, edx
je 0x10048acdc
mov rcx, qword [rbp - 0x90]
jmp 0x10048ae60
cmp al, 0x2f
jne 0x10048ad80
cmp byte [r13 + 2], 0
je 0x10048abd1
jmp 0x10048ad80
mov r13d, 0x2f
jmp 0x10048ae60