Function at 0x1400f2ce4
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 [0x14016d608]
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 [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1400f2d4e
test byte [rcx + 0x1c], 1
je 0x1400f2d4e
cmp byte [rcx + 0x19], 5
jb 0x1400f2d4e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov edx, 0x1b
call fcn.140004968
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 0x1400f2d78
mov ebx, 0x80070057
jmp 0x1400f2f8e
inc rax
cmp word [rsi + rax*2], cx
jne 0x1400f2d78
test eax, eax
je 0x1400f2d8e
dec eax
cmp word [rsi + rax*2], 0x5c
jne 0x1400f2d6e
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140086fc0
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x1400f2e01
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1400f2f8e
test byte [rcx + 0x1c], 1
je 0x1400f2f8e
cmp byte [rcx + 0x19], 2
jb 0x1400f2f8e
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov r9, rsi
call fcn.1400058c8
jmp 0x1400f2f8e
test dword [rsp + 0x40], 0x400
je 0x1400f2e4a
mov ebx, 0x80070005
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1400f2f8e
test byte [rcx + 0x1c], 1
je 0x1400f2f8e
cmp byte [rcx + 0x19], 2
jb 0x1400f2f8e
mov edx, 0x1d
mov dword [rsp + 0x20], 0x80070005
jmp 0x1400f2de9
mov r8d, dword [rsp + 0x38]
lea eax, [r8 - 1]
cmp eax, 0x13
ja 0x1400f32a7
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], cx
jne 0x1400f2e60
add edi, 0x106
lea rcx, [rsp + 0x30]
mov edx, edi
mov r8d, 2
call fcn.14000f570
mov ebx, eax
test eax, eax
js 0x1400f2f89
mov eax, edi
mov r8, rsi
mov edx, edi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x40], rax
call fcn.140039a84
mov ebx, eax
test eax, eax
js 0x1400f2f8e
lea r8, [rsp + 0x58]
mov rcx, rsi
lea rdx, [0x140146b90]
call fcn.1400829d8
mov ebx, eax
test eax, eax
js 0x1400f2f8e
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 0x1400f300b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x1400f2f36
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x1400f3209
test byte [rcx + 0x1c], 1
je 0x1400f3209
cmp byte [rcx + 0x19], 2
jb 0x1400f3209
mov edx, 0x1f
mov r9, rbx
jmp 0x1400f31f5
mov r8, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call fcn.1400f2868
mov ebx, eax
test eax, eax
jns 0x1400f2f89
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1400f2f89
test byte [rcx + 0x1c], 1
je 0x1400f2f89
cmp byte [rcx + 0x19], 2
jb 0x1400f2f89
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.1400058c8
mov rdi, qword [rsp + 0x30]
lea rsi, [0x14016d090]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400f2fb3
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x1400f2fc1
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x1400f2fee
test byte [rcx + 0x1c], 1
je 0x1400f2fee
cmp byte [rcx + 0x19], 5
jb 0x1400f2fee
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov edx, 0x26
call fcn.140004968
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14013cc00
add rsp, 0x2d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r8d, r8d
inc rdx
cmp word [rdi + rdx*2], r8w
jne 0x1400f300e
mov qword [rsp + 0x68], rdx
movzx ecx, word [rbp - 0x64]
cmp cx, word [0x14014ae94]
movzx eax, word [rbp - 0x62]
jne 0x1400f303b
cmp ax, word [0x14014ae96]
je 0x1400f3151
cmp cx, word [0x14014ae98]
jne 0x1400f305e
cmp ax, word [0x14014ae9a]
jne 0x1400f305e
movzx eax, word [rbp - 0x60]
cmp ax, word [0x14014ae9c]
je 0x1400f3151
mov eax, edx
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
mov word [rdi + rax*2], r8w
lea r8, [rbp - 0x64]
call fcn.14005034c
mov ebx, eax
test eax, eax
js 0x1400f2f8e
test dword [rsp + 0x70], 0x400
je 0x1400f3097
cmp dword [rbp - 0x6c], 0x80000013
jne 0x1400f3172
test byte [rsp + 0x70], 0x10
je 0x1400f3135
cmp dword [rsp + 0x38], 0x14
jae 0x1400f3135
mov rdx, qword [rsp + 0x40]
lea r8, [0x1401447d4]
mov rcx, rdi
call fcn.14005034c
mov ebx, eax
test eax, eax
js 0x1400f2f8e
mov edx, dword [rsp + 0x38]
mov rcx, rdi
mov r9, qword [rsp + 0x48]
inc edx
mov r8, qword [rsp + 0x50]
call fcn.1400f2ce4
mov ebx, eax
test eax, eax
jns 0x1400f3151
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x1400f2f95
test byte [rcx + 0x1c], 1
je 0x1400f2f95
cmp byte [rcx + 0x19], 2
jb 0x1400f2f95
mov edx, 0x22
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.1400058c8
jmp 0x1400f2f95
mov r8, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, qword [rsp + 0x50]
call fcn.1400f2868
mov ebx, eax
test eax, eax
js 0x1400f3272
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
test eax, eax
je 0x1400f31bf
mov rdx, qword [rsp + 0x68]
jmp 0x1400f301d
mov ebx, 0x80070005
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x1400f2f95
test byte [rcx + 0x1c], 1
je 0x1400f2f95
cmp byte [rcx + 0x19], 2
jb 0x1400f2f95
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov edx, 0x21
mov r9, rdi
call fcn.140005868
jmp 0x1400f2f95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1400f3221
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x1400f3209
test byte [rcx + 0x1c], 1
je 0x1400f3209
cmp byte [rcx + 0x19], 2
jb 0x1400f3209
mov r9, qword [rsp + 0x58]
mov edx, 0x24
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152fc8]
mov dword [rsp + 0x20], edi
call fcn.1400058c8
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rdi, qword [rsp + 0x30]
jmp 0x1400f2f95
mov r8, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
call fcn.1400f2868
mov ebx, eax
test eax, eax
jns 0x1400f2f89
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1400f2f89
test byte [rcx + 0x1c], 1
je 0x1400f2f89
cmp byte [rcx + 0x19], 2
jb 0x1400f2f89
mov edx, 0x25
jmp 0x1400f2f72
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x1400f2f95
test byte [rcx + 0x1c], 1
je 0x1400f2f95
cmp byte [rcx + 0x19], 2
jb 0x1400f2f95
mov edx, 0x23
jmp 0x1400f3119
mov ebx, 0x80070057
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x1400f2f95
test byte [rcx + 0x1c], 1
je 0x1400f2f95
cmp byte [rcx + 0x19], 2
jb 0x1400f2f95
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140152fc8]
mov dword [rsp + 0x20], 0x80070057
mov edx, 0x1e
call fcn.14000f654
jmp 0x1400f2f95