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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x550], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1400a6370
mov eax, 1
jmp 0x1400a65e9
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a6366
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x1402b0010]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14034adc0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400a63c0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a63c0
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [0x14034adb0]
call qword [rax]
mov r8, r14
lea rdx, [0x140333b08]
lea rcx, [rsp + 0x78]
call fcn.14004bce0
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a65ab
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400a65a1
test byte [rbp - 0x60], 0x10
jne 0x1400a658c
lea rdx, str.desktop.ini
lea rcx, [rbp - 0x34]
call fcn.1402779b8
test eax, eax
je 0x1400a658c
lea r9, [rbp - 0x34]
mov r8, r14
lea rdx, [0x140333af8]
lea rcx, [rsp + 0x48]
call fcn.14004bce0
mov rdi, rax
lea rax, [rsp + 0x78]
cmp rax, rdi
je 0x1400a6494
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400a6474
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14004e100
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r15
mov word [rsp + 0x78], r15w
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14004dce0
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400a64b1
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14004e100
lea rcx, [rbp - 0x34]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x1400a6531
lea rdx, [0x140333c20]
mov rcx, rax
call fcn.1402779b8
test eax, eax
jne 0x1400a6531
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400a6531
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + Ordinal_41]
test eax, eax
jne 0x1400a6531
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1402767a0
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
call qword [rax + Ordinal_26]
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x1400a6543
mov rcx, rbx
call fcn.140056010
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x1400a6587
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r15
cmp qword [rcx + 0x18], 8
jb 0x1400a656e
mov rax, qword [rcx]
jmp 0x1400a6571
mov rax, rcx
mov word [rax], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
call fcn.14004e170
nop
add qword [rbx + 8], 0x20
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400a6411
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400a65c7
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14004e100
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400a65d7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a65e7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
xor eax, eax
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x550]
add rsp, 0x510
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret