Function at 0x1400f36f8
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 [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov qword [rsp + 0x48], r9
mov rsi, rcx
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x38], edx
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f3762
test byte [rcx + 0x1c], 1
je 0x1400f3762
cmp byte [rcx + 0x19], 5
jb 0x1400f3762
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f88]
mov edx, 0x1b
call fcn.1400049d8
xor ecx, ecx
or rax, 0xffffffffffffffff
mov qword [rsp + 0x30], rcx
mov edi, ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], ecx
test rsi, rsi
jne 0x1400f378c
mov ebx, 0x80070057
jmp 0x1400f39a2
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400f378c
test eax, eax
je 0x1400f37a2
dec eax
cmp word [rsi + rax*2], 0x5c
jne 0x1400f3782
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400874dc
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x1400f3815
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f39a2
test byte [rcx + 0x1c], 1
je 0x1400f39a2
cmp byte [rcx + 0x19], 2
jb 0x1400f39a2
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f88]
mov r9, rsi
call fcn.140005938
jmp 0x1400f39a2
test dword [rsp + 0x40], 0x400
je 0x1400f385e
mov ebx, 0x80070005
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f39a2
test byte [rcx + 0x1c], 1
je 0x1400f39a2
cmp byte [rcx + 0x19], 2
jb 0x1400f39a2
mov edx, 0x1d
mov dword [rsp + 0x20], 0x80070005
jmp 0x1400f37fd
mov r8d, dword [rsp + 0x38]
lea eax, [r8 - 1]
cmp eax, 0x13
ja 0x1400f3cbb
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], cx
jne 0x1400f3874
add edi, 0x106
lea rcx, [rsp + 0x30]
mov edx, edi
mov r8d, 2
call fcn.14000f99c
mov ebx, eax
test eax, eax
js 0x1400f399d
mov eax, edi
mov r8, rsi
mov edx, edi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x40], rax
call fcn.140039dd4
mov ebx, eax
test eax, eax
js 0x1400f39a2
lea r8, [rsp + 0x58]
mov rcx, rsi
lea rdx, [0x140147b60]
call fcn.140082ef4
mov ebx, eax
test eax, eax
js 0x1400f39a2
mov rbx, qword [rsp + 0x58]
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 0x1400f3a1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x1400f394a
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f3c1d
test byte [rcx + 0x1c], 1
je 0x1400f3c1d
cmp byte [rcx + 0x19], 2
jb 0x1400f3c1d
mov edx, 0x1f
mov r9, rbx
jmp 0x1400f3c09
mov r8, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call fcn.1400f327c
mov ebx, eax
test eax, eax
jns 0x1400f399d
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f399d
test byte [rcx + 0x1c], 1
je 0x1400f399d
cmp byte [rcx + 0x19], 2
jb 0x1400f399d
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f88]
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.140005938
mov rdi, qword [rsp + 0x30]
lea rsi, [0x14016f048]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400f39c7
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x1400f39d5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, rsi
je 0x1400f3a02
test byte [rcx + 0x1c], 1
je 0x1400f3a02
cmp byte [rcx + 0x19], 5
jb 0x1400f3a02
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f88]
mov edx, 0x26
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14013e290
add rsp, 0x2d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r8d, r8d
inc rdx
cmp word [rdi + rdx*2], r8w
jne 0x1400f3a22
mov qword [rsp + 0x68], rdx
movzx ecx, word [rbp - 0x64]
cmp cx, word [0x14014be54]
movzx eax, word [rbp - 0x62]
jne 0x1400f3a4f
cmp ax, word [0x14014be56]
je 0x1400f3b65
cmp cx, word [0x14014be58]
jne 0x1400f3a72
cmp ax, word [0x14014be5a]
jne 0x1400f3a72
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14014be5c]
je 0x1400f3b65
mov eax, edx
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
mov word [rdi + rax*2], r8w
lea r8, [rbp - 0x64]
call fcn.1400506ec
mov ebx, eax
test eax, eax
js 0x1400f39a2
test dword [rsp + 0x70], 0x400
je 0x1400f3aab
cmp dword [rbp - 0x6c], 0x80000013
jne 0x1400f3b86
test byte [rsp + 0x70], 0x10
je 0x1400f3b49
cmp dword [rsp + 0x38], 0x14
jae 0x1400f3b49
mov rdx, qword [rsp + 0x40]
lea r8, [0x140145788]
mov rcx, rdi
call fcn.1400506ec
mov ebx, eax
test eax, eax
js 0x1400f39a2
mov edx, dword [rsp + 0x38]
mov rcx, rdi
mov r9, qword [rsp + 0x48]
inc edx
mov r8, qword [rsp + 0x50]
call fcn.1400f36f8
mov ebx, eax
test eax, eax
jns 0x1400f3b65
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39a9
test byte [rcx + 0x1c], 1
je 0x1400f39a9
cmp byte [rcx + 0x19], 2
jb 0x1400f39a9
mov edx, 0x22
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f88]
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.140005938
jmp 0x1400f39a9
mov r8, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, qword [rsp + 0x50]
call fcn.1400f327c
mov ebx, eax
test eax, eax
js 0x1400f3c86
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
test eax, eax
je 0x1400f3bd3
mov rdx, qword [rsp + 0x68]
jmp 0x1400f3a31
mov ebx, 0x80070005
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39a9
test byte [rcx + 0x1c], 1
je 0x1400f39a9
cmp byte [rcx + 0x19], 2
jb 0x1400f39a9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f88]
mov edx, 0x21
mov r9, rdi
call fcn.1400058d8
jmp 0x1400f39a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400f3c35
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f3c1d
test byte [rcx + 0x1c], 1
je 0x1400f3c1d
cmp byte [rcx + 0x19], 2
jb 0x1400f3c1d
mov r9, qword [rsp + 0x58]
mov edx, 0x24
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f88]
mov dword [rsp + 0x20], edi
call fcn.140005938
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rdi, qword [rsp + 0x30]
jmp 0x1400f39a9
mov r8, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call fcn.1400f327c
mov ebx, eax
test eax, eax
jns 0x1400f399d
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f399d
test byte [rcx + 0x1c], 1
je 0x1400f399d
cmp byte [rcx + 0x19], 2
jb 0x1400f399d
mov edx, 0x25
jmp 0x1400f3986
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39a9
test byte [rcx + 0x1c], 1
je 0x1400f39a9
cmp byte [rcx + 0x19], 2
jb 0x1400f39a9
mov edx, 0x23
jmp 0x1400f3b2d
mov ebx, 0x80070057
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39a9
test byte [rcx + 0x1c], 1
je 0x1400f39a9
cmp byte [rcx + 0x19], 2
jb 0x1400f39a9
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140153f88]
mov dword [rsp + 0x20], 0x80070057
mov edx, 0x1e
call fcn.14000fa80
jmp 0x1400f39a9