Function at 0x14001abac
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x14003e060]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov esi, edx
lea r8, [rsp + 0x58]
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
xor r14d, r14d
test eax, eax
jne 0x14001ac0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001ac1c
xor edx, edx
mov rcx, rbx
call fcn.14001aac4
jmp 0x14001ac1e
test byte [rsp + 0x58], 0x10
jne 0x14001ac45
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140028130
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r8, [rbp + 0x1d0]
mov edx, 0x104
mov rcx, rbx
call fcn.140016c78
test eax, eax
je 0x14001ac1c
lea r8, [rsp + 0x30]
lea rcx, [rbp + 0x1d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14001acbb
test esi, esi
je 0x14001ac1c
mov edx, dword [rsp + 0x30]
lea rcx, [rbp + 0x1d0]
and edx, 0xfffffff8
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14001ac1c
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001acca
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14000a4b0]
mov edx, eax
call fcn.140035314
jmp 0x14001ac1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001ac1c
lea r8, [rbp + 0x1d0]
mov edx, 0x505
mov rcx, rbx
call fcn.140016c78
test eax, eax
je 0x14001ac1c
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001ad8a
test esi, esi
je 0x14001ac1c
lea rax, [rbp - 0x54]
lea r8, [0x140009020]
lea rcx, [rbp + 0x3e0]
mov r9, rbx
mov edx, 0x103
mov qword [rsp + 0x20], rax
call fcn.140011a88
test eax, eax
js 0x14001ac1c
lea rcx, [rbp + 0x3e0]
mov edx, 0x80
mov word [rbp + 0x5e6], r14w
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14001ad7f
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001ad04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14001ad99
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001ac1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001ac1c
lea r8, [rbp + 0x1d0]
mov edx, 0x506
mov rcx, rbx
call fcn.140016c78
test eax, eax
je 0x14001ac1c
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001ae4e
test esi, esi
je 0x14001ac1c
lea rax, [rbp - 0x54]
lea r8, [0x140009020]
lea rcx, [rbp + 0x3e0]
mov r9, rbx
mov edx, 0x103
mov qword [rsp + 0x20], rax
call fcn.140011a88
test eax, eax
js 0x14001ac1c
lea rcx, [rbp + 0x3e0]
mov edx, 0x80
mov word [rbp + 0x5e6], r14w
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14001ac1c
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001adcf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14001ae5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001ac1c
mov eax, 1
jmp 0x14001ac1e