Function at 0x1400f6d50
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 [0x140172608]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov qword [rsp + 0x40], r9
mov rsi, rcx
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x38], edx
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400f6dba
test byte [rcx + 0x1c], 1
je 0x1400f6dba
cmp byte [rcx + 0x19], 5
jb 0x1400f6dba
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov edx, 0x1b
call fcn.140004b74
xor ecx, ecx
or rax, 0xffffffffffffffff
mov qword [rsp + 0x50], rcx
mov edi, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], ecx
test rsi, rsi
jne 0x1400f6ddf
mov ebx, 0x80070057
jmp 0x1400f7019
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400f6ddf
test eax, eax
je 0x1400f6df5
dec eax
cmp word [rsi + rax*2], 0x5c
jne 0x1400f6dd5
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400896e0
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x1400f6e68
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400f7019
test byte [rcx + 0x1c], 1
je 0x1400f7019
cmp byte [rcx + 0x19], 2
jb 0x1400f7019
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov r9, rsi
call fcn.140005b60
jmp 0x1400f7019
test dword [rsp + 0x30], 0x400
je 0x1400f6eb1
mov ebx, 0x80070005
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400f7019
test byte [rcx + 0x1c], 1
je 0x1400f7019
cmp byte [rcx + 0x19], 2
jb 0x1400f7019
mov edx, 0x1d
mov dword [rsp + 0x20], 0x80070005
jmp 0x1400f6e50
mov r8d, dword [rsp + 0x38]
lea eax, [r8 - 1]
cmp eax, 0x13
ja 0x1400f7332
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400f6ec7
add eax, 0x106
mov ecx, 0xffffffff
mov qword [rsp + 0x58], rax
add rax, rax
cmp rax, rcx
jbe 0x1400f6ef1
mov ebx, 0x80070216
jmp 0x1400f7019
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 0x1400f6f12
mov ebx, 0x8007000e
jmp 0x1400f7019
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.14003ac00
mov ebx, eax
test eax, eax
js 0x1400f7019
lea r8, [rsp + 0x50]
mov rcx, rsi
lea rdx, [0x14014b880]
call fcn.140084fcc
mov ebx, eax
test eax, eax
js 0x1400f7019
mov rbx, qword [rsp + 0x50]
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 0x1400f7096
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x1400f6fc1
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x1400f7294
test byte [rcx + 0x1c], 1
je 0x1400f7294
cmp byte [rcx + 0x19], 2
jb 0x1400f7294
mov edx, 0x1f
mov r9, rbx
jmp 0x1400f7280
mov r8, qword [rsp + 0x40]
mov rcx, rsi
mov rdx, qword [rsp + 0x48]
call fcn.1400f68e0
mov ebx, eax
test eax, eax
jns 0x1400f7014
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400f7014
test byte [rcx + 0x1c], 1
je 0x1400f7014
cmp byte [rcx + 0x19], 2
jb 0x1400f7014
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.140005b60
mov rdi, qword [rsp + 0x30]
lea rsi, [0x1401720a0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400f703e
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x1400f704c
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp rcx, rsi
je 0x1400f7079
test byte [rcx + 0x1c], 1
je 0x1400f7079
cmp byte [rcx + 0x19], 5
jb 0x1400f7079
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov edx, 0x26
call fcn.140004b74
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140141cf0
add rsp, 0x2d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r8d, r8d
inc rdx
cmp word [rdi + rdx*2], r8w
jne 0x1400f7099
mov qword [rsp + 0x68], rdx
movzx ecx, word [rbp - 0x64]
cmp cx, word [0x14014fb84]
movzx eax, word [rbp - 0x62]
jne 0x1400f70c6
cmp ax, word [0x14014fb86]
je 0x1400f71dc
cmp cx, word [0x14014fb88]
jne 0x1400f70e9
cmp ax, word [0x14014fb8a]
jne 0x1400f70e9
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14014fb8c]
je 0x1400f71dc
mov eax, edx
mov rcx, rdi
mov rdx, qword [rsp + 0x58]
mov word [rdi + rax*2], r8w
lea r8, [rbp - 0x64]
call fcn.140051874
mov ebx, eax
test eax, eax
js 0x1400f7019
test dword [rsp + 0x70], 0x400
je 0x1400f7122
cmp dword [rbp - 0x6c], 0x80000013
jne 0x1400f71fd
test byte [rsp + 0x70], 0x10
je 0x1400f71c0
cmp dword [rsp + 0x38], 0x14
jae 0x1400f71c0
mov rdx, qword [rsp + 0x58]
lea r8, [0x140149494]
mov rcx, rdi
call fcn.140051874
mov ebx, eax
test eax, eax
js 0x1400f7019
mov edx, dword [rsp + 0x38]
mov rcx, rdi
mov r9, qword [rsp + 0x40]
inc edx
mov r8, qword [rsp + 0x48]
call fcn.1400f6d50
mov ebx, eax
test eax, eax
jns 0x1400f71dc
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x1400f7020
test byte [rcx + 0x1c], 1
je 0x1400f7020
cmp byte [rcx + 0x19], 2
jb 0x1400f7020
mov edx, 0x22
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.140005b60
jmp 0x1400f7020
mov r8, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
call fcn.1400f68e0
mov ebx, eax
test eax, eax
js 0x1400f72fd
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
test eax, eax
je 0x1400f724a
mov rdx, qword [rsp + 0x68]
jmp 0x1400f70a8
mov ebx, 0x80070005
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x1400f7020
test byte [rcx + 0x1c], 1
je 0x1400f7020
cmp byte [rcx + 0x19], 2
jb 0x1400f7020
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov edx, 0x21
mov r9, rdi
call fcn.140005afc
jmp 0x1400f7020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400f72ac
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x1400f7294
test byte [rcx + 0x1c], 1
je 0x1400f7294
cmp byte [rcx + 0x19], 2
jb 0x1400f7294
mov r9, qword [rsp + 0x50]
mov edx, 0x24
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e00]
mov dword [rsp + 0x20], eax
call fcn.140005b60
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rdi, qword [rsp + 0x30]
jmp 0x1400f7020
mov r8, qword [rsp + 0x40]
mov rcx, rsi
mov rdx, qword [rsp + 0x48]
call fcn.1400f68e0
mov ebx, eax
test eax, eax
jns 0x1400f7014
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400f7014
test byte [rcx + 0x1c], 1
je 0x1400f7014
cmp byte [rcx + 0x19], 2
jb 0x1400f7014
mov edx, 0x25
jmp 0x1400f6ffd
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x1400f7020
test byte [rcx + 0x1c], 1
je 0x1400f7020
cmp byte [rcx + 0x19], 2
jb 0x1400f7020
mov edx, 0x23
jmp 0x1400f71a4
mov ebx, 0x80070057
mov rcx, qword [0x1401720a0]
lea rsi, [0x1401720a0]
cmp rcx, rsi
je 0x1400f7020
test byte [rcx + 0x1c], 1
je 0x1400f7020
cmp byte [rcx + 0x19], 2
jb 0x1400f7020
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140157e00]
mov dword [rsp + 0x20], 0x80070057
mov edx, 0x1e
call fcn.14000ffdc
jmp 0x1400f7020