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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r9d, 0x104
mov rsi, rdx
mov rdi, rcx
mov r8, rdx
lea rcx, [rbp + 0x390]
lea edx, [r9 + 2]
call fcn.1400bfd28
lea rdx, [0x14034fa44]
lea rcx, [rbp + 0x390]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rax, qword [rdi]
inc dword [rdi + 0x260]
xor r9d, r9d
mov r8, rsi
mov rcx, rdi
lea edx, [r9 + 2]
call qword [rax + 0x10]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007810e
test byte [rsp + 0x30], 0x10
je 0x14007800d
cmp word [rsp + 0x5c], 0x2e
jne 0x140077fba
movzx eax, word [rsp + 0x5e]
cmp ax, 0x2e
je 0x14007800d
test ax, ax
je 0x14007800d
mov rax, qword [rdi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x30]
test al, al
je 0x140077ff5
lea r8, [rsp + 0x5c]
lea rcx, [rbp + 0x180]
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rbp + 0x180]
mov rcx, rdi
call fcn.140077f08
jmp 0x14007800d
mov rax, qword [rdi]
lea r9, str.skipping_directory
mov r8, rsi
mov edx, 2
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x268]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140078036
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140077f9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rdi + 0x268]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400781c3
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x14007819d
test byte [rsp + 0x30], 0x10
jne 0x14007815c
mov r9, qword [rdi]
inc dword [rdi + 0x25c]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [r9 + 0x38]
test al, al
je 0x14007815c
mov r9d, 0x104
lea rcx, [rbp + 0x180]
mov r8, rsi
lea edx, [r9 + 2]
call fcn.1400bfd28
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov r11, qword [rdi]
lea rdx, [rbp + 0x180]
mov rcx, rdi
call qword [r11 + 0x18]
test al, al
je 0x140078145
lea rcx, [rdi + 0xc]
lea rdx, [rsp + 0x30]
mov r8d, 0x250
call fcn.1400be580
mov r11, qword [rdi]
lea rdx, [rdi + 0xc]
mov rcx, rdi
call qword [r11 + 0x20]
mov rbx, qword [rsp + 0x20]
jmp 0x14007815c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rdi]
mov r9, rsi
mov edx, 2
mov rcx, rdi
mov r8d, eax
mov dword [rdi + 8], eax
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jbe 0x14007803f
cmp eax, 2
je 0x1400781da
xor al, al
jmp 0x1400781dc
mov rax, qword [rdi]
xor r9d, r9d
lea r8, [rbp + 0x180]
lea edx, [r9 + 4]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x268]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140078185
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007807a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [r11 + 0x40]
jmp 0x1400781da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rdi]
mov r9, rsi
mov edx, 3
mov rcx, rdi
mov r8d, eax
mov dword [rdi + 8], eax
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 2
setbe al
jmp 0x1400781dc
mov rax, qword [rdi]
xor r9d, r9d
lea r8, str.aborted
lea edx, [r9 + 3]
mov rcx, rdi
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6b0
pop rdi
pop rsi
pop rbp
ret