Function at 0x14002f740
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002f776
jmp 0x14002fbf3
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov byte [rsp + 0xc8], 0
mov byte [rsp + 0xc9], 0
mov byte [rsp + 0xca], 0
mov byte [rsp + 0xcb], 0
mov byte [rsp + 0xcc], 0
mov byte [rsp + 0xcd], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14002f814
jmp 0x14002fbf3
mov byte [rsp + 0xd0], 0
mov byte [rsp + 0xd1], 0
mov byte [rsp + 0xd2], 0
mov byte [rsp + 0xd3], 0
mov byte [rsp + 0xd4], 0
mov byte [rsp + 0xd5], 5
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14002f8b1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x14002fbf3
mov dword [rsp + 0xe0], 0
lea rax, [rsp + 0xe4]
mov rdi, rax
xor eax, eax
mov ecx, 0x5c
rep stosb byte [rdi], al
mov eax, 0x30
imul rax, rax, 0
mov dword [rsp + rax + 0xe0], 0x10000000
mov eax, 0x30
imul rax, rax, 0
mov dword [rsp + rax + 0xe4], 2
mov eax, 0x30
imul rax, rax, 0
mov dword [rsp + rax + 0xe8], 0
mov eax, 0x30
imul rax, rax, 0
mov dword [rsp + rax + 0xfc], 0
mov eax, 0x30
imul rax, rax, 0
mov dword [rsp + rax + 0x100], 2
mov eax, 0x30
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + rax + 0x108], rcx
mov eax, 0x30
imul rax, rax, 1
mov dword [rsp + rax + 0xe0], 0x10000000
mov eax, 0x30
imul rax, rax, 1
mov dword [rsp + rax + 0xe4], 2
mov eax, 0x30
imul rax, rax, 1
mov dword [rsp + rax + 0xe8], 0
mov eax, 0x30
imul rax, rax, 1
mov dword [rsp + rax + 0xfc], 0
mov eax, 0x30
imul rax, rax, 1
mov dword [rsp + rax + 0x100], 2
mov eax, 0x30
imul rax, rax, 1
mov rcx, qword [rsp + 0x80]
mov qword [rsp + rax + 0x108], rcx
mov qword [rsp + 0x88], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0xe0]
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14002fa1a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x14002fbf3
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x80]
mov r8d, 1
mov edx, 1
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14002fa8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14002fbf3
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 4
mov edx, 1
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14002faff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14002fbf3
mov edx, 0x80
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov dword [rsp + 0x98], 3
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
cmp word [rax + rcx*2], 0
jne 0x14002fb47
mov rax, qword [rsp + 0x68]
xor ecx, ecx
mov rdx, qword [rsp + 0x160]
mov word [rdx + rax*2 + 2], cx
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xa0], rax
lea rax, [0x140162df8]
mov qword [rsp + 0xa8], rax
mov eax, 0x414
mov word [rsp + 0xb0], ax
lea rax, [0x140162dfc]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002fbcc
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14015a6e0
add rsp, 0x150
pop rdi
ret