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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
xor eax, eax
mov ebx, r9d
mov rsi, rdx
mov edi, eax
mov dword [rsp + 0x40], eax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a12c
test al, 0x10
je 0x14000a12c
xor eax, eax
cmp dword [rsp + 0x2e0], eax
je 0x140009efc
test ebx, ebx
jne 0x140009efc
lea r8, [0x1400ebf20]
lea rcx, str._sDirectory__s
mov r9, rbp
xor edx, edx
call fcn.14000bf0c
test rsi, rsi
je 0x140009ef0
lea rcx, [0x1400f5268]
mov rdx, rsi
call fcn.14000bf0c
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bf0c
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000a12c
mov r8, rbp
mov edx, 0x104
mov rcx, rax
call fcn.1400c44f8
xor ebp, ebp
test eax, eax
jne 0x14000a123
lea r8, [0x1400f5274]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c4470
test eax, eax
jne 0x14000a123
lea r8, [0x1400f5278]
test rsi, rsi
mov edx, 0x104
cmovne r8, rsi
mov rcx, rbx
call fcn.1400c4470
test eax, eax
jne 0x14000a123
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000a123
lea rdx, [0x1400f527c]
lea rcx, [rsp + 0x7c]
call fcn.1400c42d8
test eax, eax
je 0x14000a104
lea rdx, [0x1400f5280]
lea rcx, [rsp + 0x7c]
call fcn.1400c42d8
test eax, eax
je 0x14000a104
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c44f8
test eax, eax
jne 0x14000a104
lea r8, [0x1400f5274]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c4470
xor ecx, ecx
test eax, eax
jne 0x14000a104
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], cx
jne 0x140009ffd
lea r8, [rsp + 0x7c]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c4470
xor edx, edx
test eax, eax
jne 0x14000a100
mov ecx, dword [rsp + 0x2e0]
test ecx, ecx
je 0x14000a073
mov ecx, dword [rsp + 0x2d8]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x7c]
shr eax, 3
mov qword [rsp + 0x28], r8
mov r9d, ecx
not eax
lea edx, [rcx + rcx]
lea r8, [0x1400ebf20]
and eax, 2
lea rcx, str._s_3u__c_s_n
or eax, 0x44
mov dword [rsp + 0x20], eax
call fcn.14000bf0c
mov ecx, dword [rsp + 0x2e0]
xor edx, edx
cmp dword [rsp + 0x2e8], edx
jne 0x14000a0cc
test byte [rsp + 0x50], 0x10
je 0x14000a0cc
cmp dword [rsp + 0x2d0], edx
je 0x14000a100
mov rax, qword [rsp + 0x2f8]
mov r9d, dword [rsp + 0x2d8]
mov r8d, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x2f0]
inc r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov rdx, rsi
call fcn.140009e70
jmp 0x14000a0f4
mov r10, qword [rsp + 0x2f0]
test r10, r10
je 0x14000a100
mov r9, qword [rsp + 0x2f8]
mov ecx, dword [rsp + 0x2d8]
mov eax, edi
lea r8, [rbx + rax*2]
mov rdx, rbx
call r10
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14000a11a
jmp 0x14000a104
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009f8c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret