Function at 0x1400fafe8
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov qword [rsp + 0x50], r9
mov rsi, rcx
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x38], edx
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400fb052
test byte [rcx + 0x1c], 1
je 0x1400fb052
cmp byte [rcx + 0x19], 5
jb 0x1400fb052
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015de88]
mov edx, 0x1b
call fcn.140004c6c
xor ecx, ecx
or rax, 0xffffffffffffffff
mov qword [rsp + 0x40], rcx
mov edi, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], ecx
test rsi, rsi
jne 0x1400fb077
mov ebx, 0x80070057
jmp 0x1400fb2b1
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400fb077
test eax, eax
je 0x1400fb08d
dec eax
cmp word [rsi + rax*2], 0x5c
jne 0x1400fb06d
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14008b878
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x1400fb100
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400fb2b1
test byte [rcx + 0x1c], 1
je 0x1400fb2b1
cmp byte [rcx + 0x19], 2
jb 0x1400fb2b1
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015de88]
mov r9, rsi
call fcn.140005ce8
jmp 0x1400fb2b1
test dword [rsp + 0x30], 0x400
je 0x1400fb149
mov ebx, 0x80070005
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400fb2b1
test byte [rcx + 0x1c], 1
je 0x1400fb2b1
cmp byte [rcx + 0x19], 2
jb 0x1400fb2b1
mov edx, 0x1d
mov dword [rsp + 0x20], 0x80070005
jmp 0x1400fb0e8
mov r8d, dword [rsp + 0x38]
lea eax, [r8 - 1]
cmp eax, 0x13
ja 0x1400fb5ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400fb15f
add eax, 0x106
mov ecx, 0xffffffff
mov qword [rsp + 0x58], rax
add rax, rax
cmp rax, rcx
jbe 0x1400fb189
mov ebx, 0x80070216
jmp 0x1400fb2b1
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0x30], rax
mov rdi, rax
test rax, rax
jne 0x1400fb1aa
mov ebx, 0x8007000e
jmp 0x1400fb2b1
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + 0x58]
mov r8, rsi
mov rcx, rdi
call fcn.14003b8c0
mov ebx, eax
test eax, eax
js 0x1400fb2b1
lea r8, [rsp + 0x40]
mov rcx, rsi
lea rdx, [0x140151490]
call fcn.140087120
mov ebx, eax
test eax, eax
js 0x1400fb2b1
mov rbx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x60], rax
cmp rax, rdx
jne 0x1400fb32e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x1400fb259
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x1400fb52c
test byte [rcx + 0x1c], 1
je 0x1400fb52c
cmp byte [rcx + 0x19], 2
jb 0x1400fb52c
mov edx, 0x1f
mov r9, rbx
jmp 0x1400fb518
mov r8, qword [rsp + 0x50]
mov rcx, rsi
mov rdx, qword [rsp + 0x48]
call fcn.1400fab7c
mov ebx, eax
test eax, eax
jns 0x1400fb2ac
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400fb2ac
test byte [rcx + 0x1c], 1
je 0x1400fb2ac
cmp byte [rcx + 0x19], 2
jb 0x1400fb2ac
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015de88]
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.140005ce8
mov rdi, qword [rsp + 0x30]
lea rsi, [0x1401782b0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400fb2d6
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x1400fb2e4
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x1400fb311
test byte [rcx + 0x1c], 1
je 0x1400fb311
cmp byte [rcx + 0x19], 5
jb 0x1400fb311
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015de88]
mov edx, 0x26
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401474d0
add rsp, 0x2d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r8d, r8d
inc rdx
cmp word [rdi + rdx*2], r8w
jne 0x1400fb331
mov qword [rsp + 0x68], rdx
movzx ecx, word [rbp - 0x64]
cmp cx, word [0x140155934]
movzx eax, word [rbp - 0x62]
jne 0x1400fb35e
cmp ax, word [0x140155936]
je 0x1400fb474
cmp cx, word [0x140155938]
jne 0x1400fb381
cmp ax, word [0x14015593a]
jne 0x1400fb381
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14015593c]
je 0x1400fb474
mov eax, edx
mov rcx, rdi
mov rdx, qword [rsp + 0x58]
mov word [rdi + rax*2], r8w
lea r8, [rbp - 0x64]
call fcn.140052af4
mov ebx, eax
test eax, eax
js 0x1400fb2b1
test dword [rsp + 0x70], 0x400
je 0x1400fb3ba
cmp dword [rbp - 0x6c], 0x80000013
jne 0x1400fb495
test byte [rsp + 0x70], 0x10
je 0x1400fb458
cmp dword [rsp + 0x38], 0x14
jae 0x1400fb458
mov rdx, qword [rsp + 0x58]
lea r8, [0x14014d7b8]
mov rcx, rdi
call fcn.140052af4
mov ebx, eax
test eax, eax
js 0x1400fb2b1
mov edx, dword [rsp + 0x38]
mov rcx, rdi
mov r9, qword [rsp + 0x50]
inc edx
mov r8, qword [rsp + 0x48]
call fcn.1400fafe8
mov ebx, eax
test eax, eax
jns 0x1400fb474
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x1400fb2b8
test byte [rcx + 0x1c], 1
je 0x1400fb2b8
cmp byte [rcx + 0x19], 2
jb 0x1400fb2b8
mov edx, 0x22
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015de88]
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.140005ce8
jmp 0x1400fb2b8
mov r8, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
call fcn.1400fab7c
mov ebx, eax
test eax, eax
js 0x1400fb595
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
test eax, eax
je 0x1400fb4e2
mov rdx, qword [rsp + 0x68]
jmp 0x1400fb340
mov ebx, 0x80070005
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x1400fb2b8
test byte [rcx + 0x1c], 1
je 0x1400fb2b8
cmp byte [rcx + 0x19], 2
jb 0x1400fb2b8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015de88]
mov edx, 0x21
mov r9, rdi
call fcn.140005c6c
jmp 0x1400fb2b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400fb544
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x1400fb52c
test byte [rcx + 0x1c], 1
je 0x1400fb52c
cmp byte [rcx + 0x19], 2
jb 0x1400fb52c
mov r9, qword [rsp + 0x40]
mov edx, 0x24
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015de88]
mov dword [rsp + 0x20], eax
call fcn.140005ce8
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rdi, qword [rsp + 0x30]
jmp 0x1400fb2b8
mov r8, qword [rsp + 0x50]
mov rcx, rsi
mov rdx, qword [rsp + 0x48]
call fcn.1400fab7c
mov ebx, eax
test eax, eax
jns 0x1400fb2ac
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400fb2ac
test byte [rcx + 0x1c], 1
je 0x1400fb2ac
cmp byte [rcx + 0x19], 2
jb 0x1400fb2ac
mov edx, 0x25
jmp 0x1400fb295
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x1400fb2b8
test byte [rcx + 0x1c], 1
je 0x1400fb2b8
cmp byte [rcx + 0x19], 2
jb 0x1400fb2b8
mov edx, 0x23
jmp 0x1400fb43c
mov ebx, 0x80070057
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x1400fb2b8
test byte [rcx + 0x1c], 1
je 0x1400fb2b8
cmp byte [rcx + 0x19], 2
jb 0x1400fb2b8
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x14015de88]
mov dword [rsp + 0x20], 0x80070057
mov edx, 0x1e
call fcn.1400103bc
jmp 0x1400fb2b8