Function at 0x1400f3708
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 0x1400f3772
test byte [rcx + 0x1c], 1
je 0x1400f3772
cmp byte [rcx + 0x19], 5
jb 0x1400f3772
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f98]
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 0x1400f379c
mov ebx, 0x80070057
jmp 0x1400f39b2
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400f379c
test eax, eax
je 0x1400f37b2
dec eax
cmp word [rsi + rax*2], 0x5c
jne 0x1400f3792
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 0x1400f3825
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f39b2
test byte [rcx + 0x1c], 1
je 0x1400f39b2
cmp byte [rcx + 0x19], 2
jb 0x1400f39b2
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f98]
mov r9, rsi
call fcn.140005938
jmp 0x1400f39b2
test dword [rsp + 0x40], 0x400
je 0x1400f386e
mov ebx, 0x80070005
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f39b2
test byte [rcx + 0x1c], 1
je 0x1400f39b2
cmp byte [rcx + 0x19], 2
jb 0x1400f39b2
mov edx, 0x1d
mov dword [rsp + 0x20], 0x80070005
jmp 0x1400f380d
mov r8d, dword [rsp + 0x38]
lea eax, [r8 - 1]
cmp eax, 0x13
ja 0x1400f3ccb
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], cx
jne 0x1400f3884
add edi, 0x106
lea rcx, [rsp + 0x30]
mov edx, edi
mov r8d, 2
call fcn.14000f99c
mov ebx, eax
test eax, eax
js 0x1400f39ad
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 0x1400f39b2
lea r8, [rsp + 0x58]
mov rcx, rsi
lea rdx, [0x140147b60]
call fcn.140082ef4
mov ebx, eax
test eax, eax
js 0x1400f39b2
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 0x1400f3a2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x1400f395a
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f3c2d
test byte [rcx + 0x1c], 1
je 0x1400f3c2d
cmp byte [rcx + 0x19], 2
jb 0x1400f3c2d
mov edx, 0x1f
mov r9, rbx
jmp 0x1400f3c19
mov r8, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call fcn.1400f328c
mov ebx, eax
test eax, eax
jns 0x1400f39ad
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f39ad
test byte [rcx + 0x1c], 1
je 0x1400f39ad
cmp byte [rcx + 0x19], 2
jb 0x1400f39ad
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f98]
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 0x1400f39d7
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x1400f39e5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, rsi
je 0x1400f3a12
test byte [rcx + 0x1c], 1
je 0x1400f3a12
cmp byte [rcx + 0x19], 5
jb 0x1400f3a12
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f98]
mov edx, 0x26
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14013e2a0
add rsp, 0x2d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r8d, r8d
inc rdx
cmp word [rdi + rdx*2], r8w
jne 0x1400f3a32
mov qword [rsp + 0x68], rdx
movzx ecx, word [rbp - 0x64]
cmp cx, word [0x14014be54]
movzx eax, word [rbp - 0x62]
jne 0x1400f3a5f
cmp ax, word [0x14014be56]
je 0x1400f3b75
cmp cx, word [0x14014be58]
jne 0x1400f3a82
cmp ax, word [0x14014be5a]
jne 0x1400f3a82
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14014be5c]
je 0x1400f3b75
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 0x1400f39b2
test dword [rsp + 0x70], 0x400
je 0x1400f3abb
cmp dword [rbp - 0x6c], 0x80000013
jne 0x1400f3b96
test byte [rsp + 0x70], 0x10
je 0x1400f3b59
cmp dword [rsp + 0x38], 0x14
jae 0x1400f3b59
mov rdx, qword [rsp + 0x40]
lea r8, [0x140145788]
mov rcx, rdi
call fcn.1400506ec
mov ebx, eax
test eax, eax
js 0x1400f39b2
mov edx, dword [rsp + 0x38]
mov rcx, rdi
mov r9, qword [rsp + 0x48]
inc edx
mov r8, qword [rsp + 0x50]
call fcn.1400f3708
mov ebx, eax
test eax, eax
jns 0x1400f3b75
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39b9
test byte [rcx + 0x1c], 1
je 0x1400f39b9
cmp byte [rcx + 0x19], 2
jb 0x1400f39b9
mov edx, 0x22
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f98]
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.140005938
jmp 0x1400f39b9
mov r8, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, qword [rsp + 0x50]
call fcn.1400f328c
mov ebx, eax
test eax, eax
js 0x1400f3c96
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
test eax, eax
je 0x1400f3be3
mov rdx, qword [rsp + 0x68]
jmp 0x1400f3a41
mov ebx, 0x80070005
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39b9
test byte [rcx + 0x1c], 1
je 0x1400f39b9
cmp byte [rcx + 0x19], 2
jb 0x1400f39b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f98]
mov edx, 0x21
mov r9, rdi
call fcn.1400058d8
jmp 0x1400f39b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400f3c45
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f3c2d
test byte [rcx + 0x1c], 1
je 0x1400f3c2d
cmp byte [rcx + 0x19], 2
jb 0x1400f3c2d
mov r9, qword [rsp + 0x58]
mov edx, 0x24
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153f98]
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 0x1400f39b9
mov r8, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call fcn.1400f328c
mov ebx, eax
test eax, eax
jns 0x1400f39ad
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f39ad
test byte [rcx + 0x1c], 1
je 0x1400f39ad
cmp byte [rcx + 0x19], 2
jb 0x1400f39ad
mov edx, 0x25
jmp 0x1400f3996
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39b9
test byte [rcx + 0x1c], 1
je 0x1400f39b9
cmp byte [rcx + 0x19], 2
jb 0x1400f39b9
mov edx, 0x23
jmp 0x1400f3b3d
mov ebx, 0x80070057
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x1400f39b9
test byte [rcx + 0x1c], 1
je 0x1400f39b9
cmp byte [rcx + 0x19], 2
jb 0x1400f39b9
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140153f98]
mov dword [rsp + 0x20], 0x80070057
mov edx, 0x1e
call fcn.14000fa80
jmp 0x1400f39b9