Function at 0x1400a6cf0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov esi, r8d
mov r12, rdx
lea r9, [rbp + 0x5f8]
lea r8, [rbp - 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp - 0x70]
xor ebx, ebx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400a6d4d
cmp word [rbp + rcx*2 - 0x72], 0x5c
jne 0x1400a6d4d
mov word [rbp + rcx*2 - 0x72], bx
lea r9, [rbp + 0x5f8]
lea r8, [rbp + 0x1a0]
mov edx, 0x104
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x1a0]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400a6d94
cmp word [rbp + rcx*2 + 0x19e], 0x5c
jne 0x1400a6d94
mov word [rbp + rcx*2 + 0x19e], bx
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a6f6d
test al, 0x10
je 0x1400a6f6d
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a6dd7
test al, 0x10
je 0x1400a6f6d
cmp esi, 1
je 0x1400a6dd7
cmp esi, 2
jne 0x1400a6f6d
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x70]
call fcn.1400a79e0
test al, al
je 0x1400a6ed4
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x70]
mov r8b, 1
call fcn.1400a6b30
test al, al
je 0x1400a6f6d
lea r9, [rbp + 0x5f8]
lea r8, [rbp + 0x3b0]
lea rcx, [rbp - 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x3b0]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400a6e52
cmp word [rbp + rcx*2 + 0x3ae], 0x5c
jne 0x1400a6e52
mov word [rbp + rcx*2 + 0x3ae], bx
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a6f6d
test al, 0x10
je 0x1400a6f6d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x3b0]
repne scasw ax, word [rdi]
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x70], rbx
not rcx
mov qword [rsp + 0x68], rax
mov eax, 0x614
mov word [rbp + rcx*2 + 0x3b0], bx
lea rcx, [rsp + 0x58]
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov dword [rsp + 0x7c], ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], 3
mov word [rsp + 0x78], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
jmp 0x1400a6f6f
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
not rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov word [rbp + rcx*2 - 0x70], bx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rdi, [rbp + 0x1a0]
mov qword [rsp + 0x20], rbx
repne scasw ax, word [rdi]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1a0]
not rcx
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov word [rbp + rcx*2 + 0x1a0], bx
mov word [rsp + 0x40], ax
cmp esi, 2
jne 0x1400a6f5b
mov eax, 0x615
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
jmp 0x1400a6f6f
xor al, al
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret