Function at 0x10010d3d4
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 0x10010d43a
bt dword [rcx + 0x1c], 9
jae 0x10010d43a
cmp byte [rcx + 0x19], 4
jb 0x10010d43a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x50
call fcn.10001c7b8
xor edi, edi
cmp rbx, rdi
jne 0x10010d459
lea r8, [0x100009df8]
lea rcx, [0x100012498]
mov edx, 0x64f
call fcn.100099ad8
cmp rsi, rdi
jne 0x10010d476
lea r8, [0x100012638]
lea rcx, [0x100012498]
mov edx, 0x650
call fcn.100099ad8
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 0x10010d4dc
lea r8, [0x100009df8]
lea rcx, [0x100009d98]
mov edx, 0xfe
call fcn.100099ad8
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 0x10010d4ff
sub rcx, 2
dec edi
cmp word [rcx], 0x5c
je 0x10010d4ef
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.10009b4ec
mov ebx, eax
test eax, eax
js 0x10010d530
mov rsi, qword [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x48], rsi
jmp 0x10010d535
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10010d540
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x10010d824
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10010d580
bt dword [rcx + 0x1c], 9
jae 0x10010d580
cmp byte [rcx + 0x19], 4
jb 0x10010d580
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x51
mov r9, rsi
call fcn.10001da24
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010d82b
lea r8, [rsp + 0x38]
lea rdx, [0x10000a0d4]
mov rcx, rsi
call fcn.10009b5b0
mov ebx, eax
test eax, eax
js 0x10010d81b
lea r8, [rsp + 0x58]
lea rdx, [0x100002954]
mov rcx, rsi
call fcn.10009b5b0
mov ebx, eax
test eax, eax
js 0x10010d81b
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 0x10010d64c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010d639
bt dword [rcx + 0x1c], 9
jae 0x10010d639
cmp byte [rcx + 0x19], 2
jb 0x10010d639
mov r9, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x52
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10010d7ca
test rbp, rbp
je 0x10010d661
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebp, ebp
mov qword [rsp + 0x40], rbp
lea rsi, [rsp + 0xac]
lea rdi, [0x10000a0dc]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x10010d72c
lea rsi, [rsp + 0xac]
lea rdi, [0x10000a0e0]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x10010d72c
lea rdx, [0x100009300]
lea rcx, [rsp + 0xac]
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x10010d72c
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xac]
call fcn.10009b5b0
mov rbp, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x10010d7a9
test byte [rsp + 0x80], 0x10
je 0x10010d709
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.10010d3d4
mov ebx, eax
test eax, eax
js 0x10010d7a9
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
add qword [rsi], rax
jmp 0x10010d72c
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 0x10010d64c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x10010d7a9
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010d799
bt dword [rcx + 0x1c], 9
jae 0x10010d799
cmp byte [rcx + 0x19], 2
jb 0x10010d799
mov r9, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x53
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10010d7b0
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x10010d7c5
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 0x10010d7e5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp qword [rsp + 0x38], 0
je 0x10010d806
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 0x10010d832
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10010d82b
mov rcx, qword [0x1001653b8]
jmp 0x10010d7ec
lea rdi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10010d847
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10010d882
cmp rcx, rdi
je 0x10010d8a9
bt dword [rcx + 0x1c], 9
jae 0x10010d882
cmp byte [rcx + 0x19], 2
jb 0x10010d882
mov r9, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x54
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x10010d8a9
bt dword [rcx + 0x1c], 9
jae 0x10010d8a9
cmp byte [rcx + 0x19], 4
jb 0x10010d8a9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x55
call fcn.10001c7b8
mov eax, ebx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret