Function at 0x10010d880
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, rdx
mov qword [rsp + 0x68], rdx
mov rbx, rcx
mov qword [rsp + 0x70], rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010d8e6
bt dword [rcx + 0x1c], 9
jae 0x10010d8e6
cmp byte [rcx + 0x19], 4
jb 0x10010d8e6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x50
call fcn.10001c854
xor edi, edi
cmp rbx, rdi
jne 0x10010d905
lea r8, [0x100009d78]
lea rcx, [0x100012468]
mov edx, 0x64f
call fcn.10009a050
cmp rsi, rdi
jne 0x10010d922
lea r8, [0x100012608]
lea rcx, [0x100012468]
mov edx, 0x650
call fcn.10009a050
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x250
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x58], rdi
mov rbp, rdi
mov qword [rsp + 0x40], rdi
mov qword [rsi], rdi
call sub.msvcrt.dll_memset
or rcx, 0xffffffffffffffff
xor eax, eax
xor edx, edx
mov rdi, rbx
repne scasw ax, word [rdi]
mov qword [rsp + 0x50], rdx
not rcx
lea rdi, [rcx - 1]
test rbx, rbx
jne 0x10010d988
lea r8, [0x100009d78]
lea rcx, [0x100009d18]
mov edx, 0xfe
call fcn.10009a050
and qword [rsp + 0x30], rbp
movsxd rax, edi
xor esi, esi
mov qword [rsp + 0x48], rsi
lea rcx, [rbx + rax*2]
test edi, edi
je 0x10010d9ab
sub rcx, 2
dec edi
cmp word [rcx], 0x5c
je 0x10010d99b
xor ecx, ecx
mov eax, edi
lea rdx, [rsp + 0x30]
cmp word [rbx + rax*2], 0x5c
setne cl
lea r8d, [rcx + rdi]
mov rcx, rbx
call fcn.10009bac4
mov ebx, eax
test eax, eax
js 0x10010d9dc
mov rsi, qword [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x48], rsi
jmp 0x10010d9e1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10010d9ec
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x10010dcd0
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10010da2c
bt dword [rcx + 0x1c], 9
jae 0x10010da2c
cmp byte [rcx + 0x19], 4
jb 0x10010da2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x51
mov r9, rsi
call fcn.10001db08
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010dcd7
lea r8, [rsp + 0x38]
lea rdx, [0x10000a054]
mov rcx, rsi
call fcn.10009bb88
mov ebx, eax
test eax, eax
js 0x10010dcc7
lea r8, [rsp + 0x58]
lea rdx, [0x100002934]
mov rcx, rsi
call fcn.10009bb88
mov ebx, eax
test eax, eax
js 0x10010dcc7
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x10010daf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010dae5
bt dword [rcx + 0x1c], 9
jae 0x10010dae5
cmp byte [rcx + 0x19], 2
jb 0x10010dae5
mov r9, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x52
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10010dc76
test rbp, rbp
je 0x10010db0d
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebp, ebp
mov qword [rsp + 0x40], rbp
lea rsi, [rsp + 0xac]
lea rdi, [0x10000a05c]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x10010dbd8
lea rsi, [rsp + 0xac]
lea rdi, [0x10000a060]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x10010dbd8
lea rdx, [0x100009280]
lea rcx, [rsp + 0xac]
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x10010dbd8
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xac]
call fcn.10009bb88
mov rbp, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x10010dc55
test byte [rsp + 0x80], 0x10
je 0x10010dbb5
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.10010d880
mov ebx, eax
test eax, eax
js 0x10010dc55
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
add qword [rsi], rax
jmp 0x10010dbd8
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x50]
add qword [rcx], rax
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10010daf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x10010dc55
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010dc45
bt dword [rcx + 0x1c], 9
jae 0x10010dc45
cmp byte [rcx + 0x19], 2
jb 0x10010dc45
mov r9, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x53
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10010dc5c
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x10010dc71
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
cmp rax, 0xffffffffffffffff
je 0x10010dc91
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp qword [rsp + 0x38], 0
je 0x10010dcb2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x10010dcde
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10010dcd7
mov rcx, qword [0x1001653b8]
jmp 0x10010dc98
lea rdi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10010dcf3
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10010dd2e
cmp rcx, rdi
je 0x10010dd55
bt dword [rcx + 0x1c], 9
jae 0x10010dd2e
cmp byte [rcx + 0x19], 2
jb 0x10010dd2e
mov r9, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x54
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10010dd55
bt dword [rcx + 0x1c], 9
jae 0x10010dd55
cmp byte [rcx + 0x19], 4
jb 0x10010dd55
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x55
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret