Function at 0x100002df4
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, 0x2c0
mov rax, qword [0x100005120]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rsi, rcx
mov rcx, rdx
mov rbx, rdx
mov qword [rsp + 0x58], rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
mov rcx, rsi
cmp eax, edi
jne 0x100002f5a
mov word [rsp + 0x40], di
call fcn.1000019b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x100002e84
cmp byte [0x1000056f3], dil
je 0x100002e5b
cmp byte [0x1000056f1], dil
jne 0x100002e6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.100001538
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1000056f1], dil
setne al
jmp 0x100003264
mov rdx, rsi
mov ecx, 0xd
call fcn.100001458
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov ebp, 2
lea r8, [rsp + 0x40]
mov edx, 0x9c040
mov rcx, rbx
mov r9d, ebp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
jne 0x100002f2b
mov al, byte [0x1000056f3]
cmp al, dil
je 0x100002ede
mov dl, byte [0x1000056f1]
cmp dl, dil
jne 0x100002ef1
mov ecx, ebp
call fcn.100001458
mov al, byte [0x1000056f3]
mov dl, byte [0x1000056f1]
cmp al, dil
jne 0x100002f23
cmp dl, dil
jne 0x100002f23
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne 0x100002f13
lea ecx, [rax + 0x19]
mov rdx, rsi
call fcn.100001458
jmp 0x100002f23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.100001538
mov rcx, rbx
jmp 0x100002e6f
cmp byte [0x1000056f3], dil
jne 0x100002f3e
mov ecx, 1
call fcn.100001458
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc qword [0x100005948]
inc qword [0x100006170]
jmp 0x100003262
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rbp, [rsi + rcx*2]
mov rcx, rsi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100002f8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.100001538
jmp 0x100002e75
bt eax, 0xb
mov rdx, rsi
mov ecx, 0xe
jb 0x100002fa2
mov ecx, 0xf
call fcn.100001458
inc qword [0x100005948]
sub rbp, rsi
sar rbp, 1
mov rcx, rbx
mov qword [rsp + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rbp
cmp rcx, 0x104
jge 0x10000311f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x104
mov r8, rbx
sub ecx, eax
movsxd rdx, ecx
mov rcx, qword [rsp + 0x50]
call fcn.100003cfe
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10000311f
lea rdx, [0x1000012a4]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, edi
je 0x100003100
lea rdx, [0x100001314]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, edi
je 0x100003100
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, rbp
cmp rcx, 0x104
jge 0x100003100
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x104
lea r8, [rsp + 0x8c]
sub ecx, eax
movsxd rdx, ecx
mov rcx, qword [rsp + 0x50]
call fcn.100003cfe
mov rcx, rsi
call fcn.1000019b0
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000030dc
cmp byte [0x1000056f3], dil
je 0x1000030b3
cmp byte [0x1000056f1], dil
jne 0x1000030fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.100001538
cmp byte [0x1000056f1], dil
jne 0x1000030fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x100003264
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.100002c98
mov rcx, rbp
cmp al, dil
je 0x100003287
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x100003010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [0x1000056f0], dil
je 0x100003262
lea rcx, [0x10000131c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 0x104
movsxd rcx, eax
add rcx, rbp
cmp rcx, rbx
jge 0x100003262
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
lea r8, [0x10000131c]
sub ecx, eax
movsxd rdx, ecx
mov rcx, qword [rsp + 0x50]
call fcn.100003cfe
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x100003262
lea rdx, [0x1000012a4]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, edi
je 0x100003243
lea rdx, [0x100001314]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, edi
je 0x100003243
test byte [rsp + 0x60], 0x10
je 0x100003243
lea rcx, [0x100001320]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x8c]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
add rcx, qword [rsp + 0x48]
add rcx, rbx
mov ebx, 0x104
cmp rcx, rbx
jge 0x100003243
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
lea r8, [rsp + 0x8c]
sub ecx, eax
movsxd rdx, ecx
mov rcx, qword [rsp + 0x50]
call fcn.100003cfe
lea r8, [0x100001320]
mov rdx, rbx
mov rcx, rsi
call fcn.100003cf2
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.100002df4
cmp al, dil
je 0x10000329b
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x100003189
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.100003cc0
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100002e75
mov rcx, rbp
jmp 0x100003290