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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14001b060]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r13, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoInitializeEx]
xor r15d, r15d
test eax, eax
js 0x140001d46
lea r12, [r13 + 0x10]
mov qword [rsp + 0x20], r12
lea r9, [0x1400161d8]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x1400161e8]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoCreateInstance]
test eax, eax
js 0x140001d40
mov rdi, qword [r12]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x50]
mov rcx, rbx
call qword [fcn.140001900]
xor edx, edx
mov rcx, rdi
call rbx
mov rax, qword [r13 + 0x18]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140001b46
mov ebx, r15d
mov qword [rsp + 0x40], rbx
jmp 0x140001b64
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140001b64
mov ecx, 0x8007000e
call fcn.140001f44
nop
test rbx, rbx
je 0x140001b91
mov rsi, qword [r12]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.140001900]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call rdi
mov edi, eax
jmp 0x140001b96
mov edi, 0x8007000e
test edi, edi
js 0x140001d37
mov byte [rsp + 0x30], 1
mov rbp, qword [r13 + 0x28]
test rbp, rbp
je 0x140001beb
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], r15w
jne 0x140001bb0
cmp rax, 5
jb 0x140001d37
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001c15
test al, 0x10
jne 0x140001c15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001c15
mov edi, 0x80004005
jmp 0x140001c15
mov qword [rsp + 0x38], 0x104
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
call fcn.140001d80
mov edi, eax
lea rbp, [rsp + 0x60]
test eax, eax
cmovs rbp, r15
mov byte [rsp + 0x30], r15b
test edi, edi
js 0x140001d37
test rbp, rbp
jne 0x140001c2c
mov rdi, r15
mov qword [rsp + 0x38], r15
jmp 0x140001c4d
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140001c4d
mov ecx, 0x8007000e
call fcn.140001f44
nop
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x48]
mov rcx, rsi
call qword [fcn.140001900]
mov rdx, rdi
mov rcx, r14
call rsi
test eax, eax
js 0x140001d2d
mov ecx, 0x20
call fcn.140007ca0
mov r15, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001cbc
mov dl, byte [r13 + 0x22]
mov cl, byte [r13 + 0x20]
mov rax, qword [r13 + 8]
lea r8, [0x140016140]
mov qword [r15], r8
mov dword [r15 + 8], 1
mov qword [r15 + 0x10], rax
mov byte [r15 + 0x18], cl
mov al, byte [rsp + 0x30]
mov byte [r15 + 0x19], al
mov byte [r15 + 0x1a], dl
jmp 0x140001cbf
xor r15d, r15d
test r15, r15
je 0x140001d2d
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x28]
mov rcx, rsi
call qword [fcn.140001900]
mov rdx, r15
mov rcx, r14
call rsi
test eax, eax
js 0x140001d17
mov byte [r13 + 0x21], 1
mov r14, qword [r12]
mov rax, qword [r14]
mov rsi, qword [rax + 0x40]
mov rcx, rsi
call qword [fcn.140001900]
mov rcx, r14
call rsi
mov byte [r13 + 0x21], 0
cmp byte [rsp + 0x30], 0
jne 0x140001d17
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [r15]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.140001900]
mov rcx, r15
call rsi
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoUninitialize]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140008070
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret