Function at 0x100482a20
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov rbp, rcx
mov ecx, 8
mov dword [rsp + 0x128], edx
call sub.msys_2.0.dll_malloc
mov rsi, rax
test rax, rax
je 0x1004834cb
mov qword [rax], 0
mov edx, 0x2f
mov rcx, rbp
call sub.msys_2.0.dll_strrchr
mov r12, rax
test rax, rax
je 0x100482b71
mov rax, qword [sym.bash.exe_extended_glob]
mov edi, dword [rax]
test edi, edi
jne 0x100482b58
mov rax, r12
sub rax, rbp
lea ecx, [rax + 2]
mov r13d, eax
lea edi, [rax + 1]
call sub.msys_2.0.dll_malloc
mov rbx, rax
test rax, rax
je 0x1004835fe
mov r14d, edi
mov rdx, rbp
lea rbp, [r12 + 1]
mov rcx, rax
mov r8, r14
call sub.msys_2.0.dll_memcpy
mov byte [rbx + r14], 0
test edi, edi
je 0x1004835b3
mov rcx, rbx
call sym.bash.exe_glob_pattern_p
mov r14d, eax
cmp eax, 1
je 0x100482e28
cmp byte [r12 + 1], 0
je 0x100482d30
mov rcx, rbx
call fcn.100482070
mov rcx, rsi
call sub.msys_2.0.dll_free
mov edi, dword [rsp + 0x128]
and edi, 0xfffffffe
test dword [rsp + 0x128], 0x400
je 0x100482cd0
cmp byte [r12 + 1], 0x2a
je 0x100483440
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call sym.bash.exe_glob_vector
mov rsi, rax
test rax, rax
je 0x100482df0
lea rax, [sym.bash.exe_glob_error_return]
cmp rsi, rax
je 0x100482df0
mov dword [rsp + 0x28], 1
jmp 0x100482be3
mov edx, 0x2f
mov rcx, rbp
call sym.bash.exe_glob_dirscan
mov r12, rax
test rax, rax
jne 0x100482a84
mov dword [rsp + 0x28], 0
lea rbx, [0x10053abe2]
cmp byte [rbp], 0
je 0x100482c30
mov rcx, rsi
call sub.msys_2.0.dll_free
mov eax, dword [rsp + 0x128]
lea rdx, [0x10053abe0]
and eax, 0xfffffffe
mov edi, eax
or edi, 0x100
test dword [rsp + 0x128], 0x400
jne 0x100482c90
mov r8d, edi
mov rcx, rbp
call sym.bash.exe_glob_vector
mov rsi, rax
test rax, rax
je 0x100482de0
lea rax, [sym.bash.exe_glob_error_return]
cmp rsi, rax
je 0x100482de0
and edi, 0x10
lea rcx, [0x10053abe2]
cmove rcx, rbx
mov r8d, dword [rsp + 0x128]
mov rdx, rsi
call fcn.100481600
mov edx, dword [rsp + 0x28]
mov rsi, rax
test edx, edx
jne 0x100482d1e
mov rax, rsi
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
mov edx, 0x10
call fcn.100514510
mov rsi, rax
test rax, rax
je 0x1004835f0
xor edi, edi
add edi, 1
mov rcx, rdi
call sub.msys_2.0.dll_malloc
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x1004834d8
mov r8, rdi
mov rdx, rbx
call sub.msys_2.0.dll_memcpy
mov r8d, dword [rsp + 0x28]
test r8d, r8d
jne 0x100482dcc
mov qword [rsi + 8], 0
jmp 0x100482c10
cmp byte [rbp], 0x2a
jne 0x100482bbc
cmp byte [rbp + 1], 0x2a
jne 0x100482bbc
cmp byte [rbp + 2], 0
jne 0x100482bbc
test byte [rsp + 0x128], 0x10
je 0x10048359b
or eax, 0x310
mov edi, eax
jmp 0x100482bbc
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call sym.bash.exe_glob_vector
mov rsi, rax
lea rax, [sym.bash.exe_glob_error_return]
cmp rsi, rax
je 0x100482df0
test rsi, rsi
je 0x100482df0
test byte [rsp + 0x128], 0x10
jne 0x100483338
mov r8d, dword [rsp + 0x128]
mov rdx, rsi
mov rcx, rbx
call fcn.100481600
mov rsi, rax
mov rcx, rbx
call sub.msys_2.0.dll_free
jmp 0x100482c10
mov rcx, rsi
mov edx, 0x10
call fcn.100514510
mov rsi, rax
test rax, rax
je 0x1004835fb
cmp r14d, 2
jne 0x100482d8d
mov rcx, rbx
test dword [rsp + 0x128], 0x800
jne 0x100482d9a
call fcn.100482070
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.msys_2.0.dll_stat
test eax, eax
js 0x10048353c
mov eax, dword [rsp + 0x60]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10048353c
mov dword [rsp + 0x28], 1
jmp 0x100482c4b
call fcn.100482070
mov rcx, rbx
call sub.msys_2.0.dll_strlen
lea edi, [rax + 1]
mov rcx, rdi
call sub.msys_2.0.dll_malloc
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x100483622
mov r8, rdi
mov rdx, rbx
call sub.msys_2.0.dll_memcpy
mov rcx, rbx
call sub.msys_2.0.dll_free
jmp 0x100482c7e
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x100482df8
nop dword [rax + rax]
mov rcx, rbx
call sub.msys_2.0.dll_free
mov rax, qword [sym.bash.exe_terminating_signal]
mov edx, dword [rax]
test edx, edx
jne 0x100482ee0
mov rax, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rax]
test eax, eax
jne 0x100482ed0
call sym.bash.exe_run_pending_traps
jmp 0x100482c10
mov r15d, dword [rsp + 0x128]
mov eax, dword [rsp + 0x128]
and r15d, 0xfffffffe
and eax, 0x400
mov dword [rsp + 0x3c], eax
je 0x100482eec
cmp byte [rbx], 0x2a
mov rcx, rbx
je 0x100483390
mov r9d, edi
cmp edi, 3
jle 0x1004835c0
mov eax, edi
mov edx, edi
lea rax, [rcx + rax - 4]
jmp 0x100482e99
cmp byte [rax + 2], 0x2a
jne 0x100482e9f
cmp byte [rax + 1], 0x2a
jne 0x100482e9f
cmp byte [rax], 0x2f
jne 0x100482e9f
lea r8d, [rdx - 3]
sub rax, 3
mov r9d, edx
cmp r8d, 3
jle 0x100483593
mov edx, r8d
cmp byte [rax + 3], 0x2f
je 0x100482e70
mov r13d, r9d
cmp edx, edi
je 0x100483577
cmp r13d, 4
jbe 0x100482ebc
cmp byte [r12 + 1], 0x2a
je 0x100483513
mov dword [rsp + 0x28], 0
sub r13d, 1
jmp 0x100482ef7
call sym.bash.exe_throw_to_top_level
jmp 0x100482e1a
mov ecx, dword [rax]
call sym.bash.exe_termsig_handler
jmp 0x100482e09
mov dword [rsp + 0x28], 0
mov rcx, rbx
add r13, rcx
cmp byte [r13], 0x2f
jne 0x100482f06
mov byte [r13], 0
mov edx, r15d
or dh, 8
call sym.bash.exe_glob_filename
mov rcx, rbx
mov qword [rsp + 0x30], rax
call sub.msys_2.0.dll_free
mov r10, qword [rsp + 0x30]
test r10, r10
je 0x10048347a
lea rax, [sym.bash.exe_glob_error_return]
cmp r10, rax
je 0x1004834ff
mov r15, qword [r10]
test r15, r15
je 0x1004834f7
mov ebx, dword [rsp + 0x28]
test ebx, ebx
jne 0x10048334c
mov qword [rsp + 0x40], rsi
mov ebx, 1
mov rdi, r10
xor r13d, r13d
mov eax, dword [rsp + 0x128]
mov qword [rsp + 0x120], rbp
mov ebp, ebx
mov rbx, r10
and eax, 0xfffffdee
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x128]
or eax, 0x10
mov dword [rsp + 0x4c], eax
nop
mov r11d, dword [rsp + 0x3c]
mov r14d, dword [rsp + 0x30]
test r11d, r11d
je 0x100482fab
cmp byte [r12 + 1], 0x2a
je 0x100483138
cmp byte [r15], 0
jne 0x100482fbd
cmp byte [r12 + 1], 0
jne 0x10048314e
mov r10d, dword [rsp + 0x28]
test r10d, r10d
je 0x100482fd4
test r14d, 0x100
je 0x100483168
mov rcx, qword [rsp + 0x120]
mov r8d, r14d
mov rdx, r15
call sym.bash.exe_glob_vector
mov rsi, rax
test rax, rax
je 0x100483470
lea rax, [sym.bash.exe_glob_error_return]
cmp rsi, rax
je 0x1004830dd
mov eax, r14d
and eax, 0x10
mov dword [rsp + 0x48], eax
je 0x10048301b
cmp byte [r12 + 1], 0x2a
je 0x100483260
mov rcx, qword [rdi]
mov r8d, dword [rsp + 0x128]
mov rdx, rsi
and r14d, 0x1000
je 0x1004831f8
call fcn.100481600
xor r14d, r14d
mov r15, rax
mov rax, qword [rax]
mov edx, ebp
test rax, rax
je 0x100483060
xor eax, eax
nop dword [rax]
lea edx, [rax + 1]
cmp qword [r15 + rdx*8], 0
mov rax, rdx
jne 0x100483050
lea edx, [rdx + rbp]
mov rcx, qword [rsp + 0x40]
shl rdx, 3
call fcn.100514510
mov r11, rax
test rax, rax
je 0x10048362f
mov rax, qword [r15]
xor edx, edx
test rax, rax
je 0x100483330
nop dword [rax + rax]
mov ecx, ebp
add ebp, 1
lea r8d, [rcx - 1]
mov qword [r11 + r8*8], rax
lea eax, [rdx + 1]
mov rdx, rax
mov rax, qword [r15 + rax*8]
test rax, rax
jne 0x100483090
mov qword [r11 + rcx*8], 0
cmp rsi, r15
je 0x100483210
mov rcx, r15
mov qword [rsp + 0x40], r11
call sub.msys_2.0.dll_free
mov r11, qword [rsp + 0x40]
test r14d, r14d
jne 0x10048354e
mov qword [rsp + 0x40], r11
lea eax, [r13 + 1]
lea rdi, [rbx + rax*8]
mov r13, rax
mov r15, qword [rdi]
test r15, r15
jne 0x100482f90
mov rsi, qword [rsp + 0x40]
mov r10, rbx
mov rcx, qword [r10]
xor ebx, ebx
mov rdi, r10
test rcx, rcx
je 0x100483127
nop dword [rax]
call sub.msys_2.0.dll_free
lea eax, [rbx + 1]
mov rcx, qword [rdi + rax*8]
mov rbx, rax
test rcx, rcx
jne 0x100483110
mov r10, rdi
mov rcx, r10
call sub.msys_2.0.dll_free
jmp 0x100482c10
cmp byte [r12 + 2], 0x2a
je 0x100483310
cmp byte [r15], 0
jne 0x100482fbd
or r14d, 0x100
lea r15, [0x10053abe0]
jmp 0x100482fbd
mov edx, dword [rsp + 0x4c]
mov rcx, r15
call fcn.1004815a0
cmp eax, 0xfffffffe
jne 0x100482fd4
lea rdx, [rsp + 0x50]
mov rcx, r15
call sub.msys_2.0.dll_stat
test eax, eax
js 0x100482fd4
mov eax, dword [rsp + 0x60]
and eax, 0xf000
cmp eax, 0x4000
jne 0x100482fd4
cmp byte [r12 + 1], 0
jne 0x1004830dd
mov ecx, 0x10
call sub.msys_2.0.dll_malloc
mov rsi, rax
test rax, rax
je 0x100483470
mov ecx, 1
call sub.msys_2.0.dll_malloc
mov qword [rsi], rax
test rax, rax
je 0x10048360d
mov byte [rax], 0
or r14d, 0x1000
mov qword [rsi + 8], 0
jmp 0x100483003
call fcn.100481600
mov r15, rax
mov rax, qword [rax]
jmp 0x100483044
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x1004830cf
cmp byte [r12 + 1], 0x2a
jne 0x1004830cf
cmp byte [r12 + 2], 0x2a
jne 0x1004830cf
cmp byte [r12 + 3], 0
jne 0x1004830cf
mov rcx, rsi
mov qword [rsp + 0x40], r11
call sub.msys_2.0.dll_free
mov r11, qword [rsp + 0x40]
jmp 0x1004830cf
cmp byte [r12 + 2], 0x2a
jne 0x10048301b
movzx eax, byte [r12 + 3]
test al, al
je 0x10048327e
cmp al, 0x2f
jne 0x10048301b
mov rax, qword [rsi]
and r14d, 0x100
je 0x10048356f
mov r14d, dword [rsp + 0x128]
and r14d, 0x100
jne 0x100483588
mov edx, ebp
mov r15, rsi
test rax, rax
je 0x100483060
movzx ecx, byte [rax]
lea rdx, [rsi + 8]
test cl, cl
jne 0x10048304b
jmp 0x1004832d4
mov rcx, qword [rdx]
add rdx, 8
test rcx, rcx
je 0x1004832df
movzx ecx, byte [rcx]
mov r14d, eax
lea eax, [r14 + 1]
test cl, cl
je 0x1004832c2
mov eax, r14d
cdqe
shl rax, 3
lea rdx, [rsi + rax]
neg rax
mov rcx, qword [rdx]
add rdx, 8
mov qword [rdx + rax - 8], rcx
test rcx, rcx
jne 0x1004832ec
mov rax, qword [rsi]
mov r15, rsi
mov r14d, 1
jmp 0x100483044
cmp byte [r12 + 3], 0
jne 0x100483144
or r14d, 0x210
jmp 0x100483144
lea ecx, [rbp - 1]
jmp 0x1004830ac
mov dword [rsp + 0x28], 1
lea rcx, [0x10053abe2]
jmp 0x100482bf1
cmp byte [r12 + 1], 0x2a
jne 0x100482f54
cmp byte [r12 + 2], 0x2a
jne 0x100482f54
cmp byte [r12 + 3], 0
jne 0x100482f54
mov rcx, r10
call sub.msys_2.0.dll_free
cmp byte [r12 + 1], 0
je 0x1004835d2
xor ebx, ebx
jmp 0x100482b8a
cmp byte [rbx + 1], 0x2a
jne 0x100482e56
movzx eax, byte [rbx + 2]
cmp al, 0x2f
je 0x1004833aa
test al, al
jne 0x100482e56
mov rdx, rbx
mov rcx, rbx
jmp 0x1004833d1
test al, al
jne 0x1004835c7
movzx eax, byte [rcx]
mov r14, rcx
cmp al, 0x2a
jne 0x100483401
cmp byte [r14 + 1], 0x2a
mov rdx, rcx
jne 0x100483401
mov rcx, r14
movzx eax, byte [rcx + 2]
cmp al, 0x2f
jne 0x1004833b2
test al, al
je 0x1004833ba
movzx eax, byte [rcx + 3]
lea r14, [rcx + 3]
cmp al, 0x2f
jne 0x1004833fd
nop dword [rax]
movzx eax, byte [r14 + 1]
add r14, 1
cmp al, 0x2f
je 0x1004833f0
test al, al
jne 0x1004833c0
mov qword [rsp + 0x28], rcx
or r15d, 0x210
call sub.msys_2.0.dll_strlen
cmp byte [r14], 0
mov rcx, qword [rsp + 0x28]
mov r13, rax
mov edi, eax
jne 0x100482e56
mov dword [rsp + 0x28], 1
sub r13d, 1
jmp 0x100482ef7
cmp byte [r12 + 2], 0x2a
jne 0x100482b1e
cmp byte [r12 + 3], 0
jne 0x10048345a
or edi, 0x210
mov dword [rsp + 0x28], 1
mov rdx, rbx
jmp 0x100482bbc
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1004834a4
mov rcx, qword [rsi]
xor ebx, ebx
test rcx, rcx
je 0x10048349c
nop dword [rax]
call sub.msys_2.0.dll_free
lea eax, [rbx + 1]
mov rcx, qword [rsi + rax*8]
mov rbx, rax
test rcx, rcx
jne 0x100483488
mov rcx, rsi
call sub.msys_2.0.dll_free
mov rax, qword [sym.bash.exe_terminating_signal]
mov edx, dword [rax]
test edx, edx
jne 0x100483559
mov rax, qword [sym.bash.exe_interrupt_state]
mov eax, dword [rax]
test eax, eax
jne 0x100483565
call sym.bash.exe_run_pending_traps
xor esi, esi
jmp 0x100482c10
mov rcx, rsi
call sub.msys_2.0.dll_free
test rbx, rbx
je 0x1004834a4
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1004834a4
mov rcx, rbx
call sub.msys_2.0.dll_free
jmp 0x1004834a4
mov rcx, r10
call sub.msys_2.0.dll_free
mov rcx, rsi
call sub.msys_2.0.dll_free
lea rsi, [sym.bash.exe_glob_error_return]
jmp 0x100482c10
cmp byte [r12 + 2], 0x2a
jne 0x100482ebc
cmp byte [r12 + 3], 0
jne 0x100482ebc
mov dword [rsp + 0x28], 0
sub r13d, 4
jmp 0x100482ef7
mov rcx, rbx
call sub.msys_2.0.dll_free
mov rcx, rsi
call sub.msys_2.0.dll_free
jmp 0x100483507
mov r10, rbx
mov rsi, r11
jmp 0x1004830fc
mov ecx, dword [rax]
call sym.bash.exe_termsig_handler
jmp 0x1004834b5
call sym.bash.exe_throw_to_top_level
jmp 0x1004834c6
mov r15, rsi
jmp 0x100483044
mov dword [rsp + 0x28], 0
lea r13d, [r9 - 1]
jmp 0x100482ef7
mov r15, rsi
xor r14d, r14d
jmp 0x100483044
mov r13d, edx
jmp 0x100482eaa
mov edi, dword [rsp + 0x128]
and edi, 0xfffffdfe
or edi, 0x110
jmp 0x100482bbc
mov dword [rsp + 0x28], 1
jmp 0x100482b80
mov edx, edi
jmp 0x100482e9f
mov r14, rcx
mov rcx, rdx
jmp 0x100483401
mov rcx, rsi
mov edx, 0x10
call fcn.100514510
mov rsi, rax
test rax, rax
je 0x1004835fe
xor edi, edi
xor ebx, ebx
jmp 0x100482c4b
cmp dword [rsp + 0x28], 0
je 0x1004834cb
mov rsi, rbx
mov rcx, rsi
xor esi, esi
call sub.msys_2.0.dll_free
jmp 0x100482c10
mov r9, rsi
mov rsi, qword [rsp + 0x40]
mov rcx, r9
call sub.msys_2.0.dll_free
jmp 0x100483475
mov rcx, rsi
call sub.msys_2.0.dll_free
jmp 0x1004834ed
mov rcx, qword [r15]
mov rsi, qword [rsp + 0x40]
xor ebx, ebx
test rcx, rcx
je 0x100483652
call sub.msys_2.0.dll_free
lea eax, [rbx + 1]
mov rcx, qword [r15 + rax*8]
mov rbx, rax
test rcx, rcx
jne 0x10048363e
mov rcx, r15
call sub.msys_2.0.dll_free
jmp 0x100483475