Function at 0x1004165de
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1f8
mov rdi, rcx
mov rsi, rdx
mov rbp, r8
mov qword [rsp + 0x258], r9
mov r8d, 0x808
lea rdx, global___FUNCTION__.143
lea rcx, [0x100452800]
call dbg.updatecontext_f
test rbp, rbp
jne 0x100416630
mov rcx, rsi
call sym.opendir
mov rbp, rax
test rax, rax
je 0x10041665a
lea r15, [rsp + 0xd0]
lea r14, [rsp + 0xc8]
lea r13, [0x100452800]
lea r12, global___FUNCTION__.143
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
jmp 0x100416680
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, rsi
lea rdx, [0x100452c18]
mov rcx, rdi
call dbg.a_respond
jmp 0x1004168bd
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call dbg.a_readdir_sub
test eax, eax
jne 0x1004168b4
mov rdx, qword [rsp + 0xc8]
test rdx, rdx
je 0x1004168b4
add rdx, 0x18
mov dword [rsp + 0x28], 0x81c
mov qword [rsp + 0x20], r13
mov r9, r12
mov r8d, 0x2f
mov rcx, rsi
call dbg.mystrjoin2
mov rbx, rax
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call sym.stat
test eax, eax
jns 0x100416713
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, rbx
lea rdx, [0x100452c48]
mov rcx, rdi
call dbg.a_respond
mov rcx, rbx
call dbg.mydelete2
jmp 0x100416680
mov eax, dword [rsp + 0x50]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10041677b
mov rax, qword [rsp + 0xc8]
lea rcx, [rax + 0x18]
call dbg.is_system_dir
test eax, eax
je 0x100416745
mov rcx, rbx
call dbg.mydelete2
jmp 0x100416680
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x79e8], 0
je 0x10041676e
mov r9, qword [rsp + 0x258]
mov r8d, 0
mov rdx, rbx
mov rcx, rdi
call dbg.a_removedir_sub
mov rcx, rbx
call dbg.mydelete2
jmp 0x100416680
cmp eax, 0x8000
je 0x10041678f
mov rcx, rbx
call dbg.mydelete2
jmp 0x100416680
cmp qword [rsp + 0x258], 0
je 0x1004167ca
mov rax, qword [rsp + 0xc8]
lea rdx, [rax + 0x18]
mov r8d, 0x10
mov rcx, qword [rsp + 0x258]
call sym.fnmatch
test eax, eax
je 0x1004167ca
mov rcx, rbx
call dbg.mydelete2
jmp 0x100416680
lea rdx, [0x100452c75]
mov rcx, rdi
call dbg.irlist_add_delayed
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], rbx
mov dword [rsp + 0x20], 0x83e
mov r9, r13
mov r8, r12
mov edx, 1
mov ecx, pe_nt_image_headers64
call dbg.mymalloc2
mov rbx, qword [rsp + 0x38]
mov qword [rbx + 0x28], rax
mov rdx, qword [rsp + 0x40]
mov qword [rax], rdx
mov rdx, qword [rsp + 0x48]
mov qword [rax + 8], rdx
mov rdx, qword [rsp + 0x50]
mov qword [rax + 0x10], rdx
mov rdx, qword [rsp + 0x58]
mov qword [rax + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rax + 0x20], rdx
mov rdx, qword [rsp + 0x68]
mov qword [rax + 0x28], rdx
mov rdx, qword [rsp + 0x70]
mov qword [rax + 0x30], rdx
mov rdx, qword [rsp + 0x78]
mov qword [rax + 0x38], rdx
mov rdx, qword [rsp + 0x80]
mov qword [rax + 0x40], rdx
mov rdx, qword [rsp + 0x88]
mov qword [rax + 0x48], rdx
mov rdx, qword [rsp + 0x90]
mov qword [rax + 0x50], rdx
mov rdx, qword [rsp + 0x98]
mov qword [rax + 0x58], rdx
mov rdx, qword [rsp + 0xa0]
mov qword [rax + 0x60], rdx
mov rdx, qword [rsp + 0xa8]
mov qword [rax + 0x68], rdx
mov rdx, qword [rsp + 0xb0]
mov qword [rax + 0x70], rdx
mov rdx, qword [rsp + 0xb8]
mov qword [rax + 0x78], rdx
jmp 0x100416680
mov rcx, rbp
call sym.closedir
nop
add rsp, 0x1f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret