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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov dword [rsp + 0x4c], 0
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x14001067e
mov eax, dword [rsp + 0x48]
and eax, 0x10
test eax, eax
je 0x14001067e
cmp dword [rsp + 0x2f0], 0
je 0x1400103c4
cmp dword [rsp + 0x2e8], 0
jne 0x1400103c4
mov eax, dword [rsp + 0x2e8]
shl eax, 1
mov r9, qword [rsp + 0x2d0]
lea r8, [0x14017de90]
mov edx, eax
lea rcx, str._sDirectory__s
call fcn.140013fd0
cmp qword [rsp + 0x2d8], 0
je 0x1400103b8
mov rdx, qword [rsp + 0x2d8]
lea rcx, [0x140187228]
call fcn.140013fd0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.140013fd0
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14001067e
mov r8, qword [rsp + 0x2d0]
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140145e84
test eax, eax
jne 0x140010673
lea r8, [0x140187234]
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140145eec
test eax, eax
jne 0x140010673
cmp qword [rsp + 0x2d8], 0
je 0x14001043c
mov rax, qword [rsp + 0x2d8]
mov qword [rsp + 0x60], rax
jmp 0x140010448
lea rax, [0x140187238]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x60]
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140145eec
test eax, eax
jne 0x140010673
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x140010673
lea rdx, [0x14018723c]
lea rcx, [rsp + 0x9c]
call fcn.1401458b4
test eax, eax
je 0x140010649
lea rdx, [0x140187240]
lea rcx, [rsp + 0x9c]
call fcn.1401458b4
test eax, eax
je 0x140010649
mov r8, qword [rsp + 0x2d0]
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140145e84
test eax, eax
jne 0x140010649
lea r8, [0x140187234]
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140145eec
test eax, eax
jne 0x140010649
mov rcx, qword [rsp + 0x40]
call fcn.140145b80
mov dword [rsp + 0x48], eax
lea r8, [rsp + 0x9c]
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140145eec
test eax, eax
jne 0x140010649
cmp dword [rsp + 0x2f0], 0
je 0x140010589
mov eax, dword [rsp + 0x70]
and eax, 0x10
test eax, eax
je 0x140010546
mov dword [rsp + 0x50], Ordinal_73
jmp 0x14001054e
mov dword [rsp + 0x50], Ordinal_73
mov eax, dword [rsp + 0x2e8]
shl eax, 1
lea rcx, [rsp + 0x9c]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x2e8]
lea r8, [0x14017de90]
mov edx, eax
lea rcx, str._s_3u__c_s_n
call fcn.140013fd0
cmp dword [rsp + 0x2f8], 0
jne 0x14001059e
mov eax, dword [rsp + 0x70]
and eax, 0x10
test eax, eax
jne 0x1400105da
cmp qword [rsp + 0x300], 0
je 0x1400105d8
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2]
mov r9, qword [rsp + 0x308]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x2e8]
call qword [rsp + 0x300]
mov dword [rsp + 0x4c], eax
jmp 0x140010649
cmp dword [rsp + 0x2e0], 0
je 0x140010649
lea rax, [rsp + 0x9c]
test rax, rax
je 0x140010649
mov eax, dword [rsp + 0x2e8]
inc eax
mov rcx, qword [rsp + 0x308]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x300]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x2f8]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x2f0]
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8d, 1
mov rdx, qword [rsp + 0x2d8]
mov rcx, qword [rsp + 0x40]
call fcn.140010310
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x140010668
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140010485
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x4c]
add rsp, 0x2c8
ret