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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x510
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rdi, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1400a9ea2
mov eax, 1
jmp 0x1400aa147
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a9e98
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x1402b5010]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140351950]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400a9ef2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a9ef2
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [0x1403518c0]
call qword [rax]
mov r8, r15
lea rdx, [0x1403398e0]
lea rcx, [rsp + 0x78]
call fcn.14004bec0
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 r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400aa109
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400aa0ff
test byte [rbp - 0x60], 0x10
jne 0x1400aa0ea
lea rdx, str.desktop.ini
lea rcx, [rbp - 0x34]
call fcn.14027c4d8
test eax, eax
je 0x1400aa0ea
mov rbx, r12
lea r9, [rbp - 0x34]
mov r8, r15
lea rdx, [0x140339848]
lea rcx, [rsp + 0x48]
call fcn.14004bec0
mov rsi, rax
lea rax, [rsp + 0x78]
cmp rax, rsi
je 0x1400a9fc9
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400a9fa9
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14004e2e0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.14004dec0
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400a9fe6
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14004e2e0
lea rcx, [rbp - 0x34]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x1400aa073
lea rdx, [0x140339858]
mov rcx, rax
call fcn.14027c4d8
test eax, eax
jne 0x1400aa073
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400aa083
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 0x1400aa083
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.14027b2c0
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]
test eax, eax
jne 0x1400aa083
lea rbx, [rbp + 0x1f0]
jmp 0x1400aa083
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.140084e80
test eax, eax
jne 0x1400aa0ea
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 8], rax
jne 0x1400aa0a1
mov rcx, rdi
call fcn.140056660
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x1400aa0e5
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r12
cmp qword [rcx + 0x18], 8
jb 0x1400aa0cc
mov rax, qword [rcx]
jmp 0x1400aa0cf
mov rax, rcx
mov word [rax], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
call fcn.14004e350
nop
add qword [rdi + 8], 0x20
lea rdx, [rbp - 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400a9f43
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400aa125
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14004e2e0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400aa135
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400aa145
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.14012a2b0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret