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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1801d8040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x18013d976
jmp 0x18013dde8
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 0x18013da14
jmp 0x18013dde8
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 0x18013dab1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x18013dde8
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
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_SetEntriesInAclA]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18013dc0f
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 0x18013dde8
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_SetNamedSecurityInfoA]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18013dc82
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 0x18013dde8
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_SetNamedSecurityInfoA]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18013dcf4
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 0x18013dde8
mov edx, 0x80
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
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 0x18013dd3c
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, [0x1802035c4]
mov qword [rsp + 0xa8], rax
mov eax, 0x414
mov word [rsp + 0xb0], ax
lea rax, [0x1802035c0]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18013ddc1
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
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.180142e20
add rsp, 0x150
pop rdi
ret