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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14005e8d8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14000a10e
lea rax, [rsp + 0x60]
mov qword [rsp + 0x148], rdi
xor edi, edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov dl, 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov dword [rbp - 0x50], edi
mov word [rbp - 0x4c], 0x100
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140009ea3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_initialize_all_SID_for__s:__d_n_n
mov r8d, eax
call fcn.140005e60
jmp 0x14000a106
lea rax, [rsp + 0x68]
mov dword [rbp - 0x48], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x48]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, 0x20
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp - 0x44], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140009f12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_initialize_admin_SID_for__s:__d_n_n
mov r8d, eax
call fcn.140005e60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x14000a106
xorps xmm0, xmm0
mov dword [rbp - 0x40], 0x10000000
xor eax, eax
mov qword [rsp + 0x70], rdi
mov qword [rbp + 0x14], rax
lea r9, [rsp + 0x70]
mov rax, qword [rsp + 0x60]
lea rdx, [rbp - 0x40]
movups xmmword [rbp - 0x1c], xmm0
xor r8d, r8d
mov qword [rbp - 0x18], rax
mov rax, qword [rsp + 0x68]
movups xmmword [rbp - 0x2c], xmm0
mov qword [rbp + 0x18], rax
movups xmmword [rbp + 4], xmm0
lea ecx, [r8 + 2]
mov dword [rbp - 0x24], edi
movups xmmword [rbp - 0x3c], xmm0
mov qword [rbp - 0x3c], 2
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp - 0x20], 2
mov dword [rbp - 0x10], 0x10000000
mov qword [rbp - 0xc], 2
mov dword [rbp + 0xc], edi
mov dword [rbp + 0x10], 2
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
je 0x140009fbf
mov r8d, eax
lea rcx, str.Failed_to_set_ACL_entries_for__s:__d_n_n
mov rdx, rbx
call fcn.140005e60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x14000a106
mov r9, qword [rsp + 0x68]
mov edx, 1
mov qword [rsp + 0x30], rdi
mov r8d, edx
mov qword [rsp + 0x28], rdi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
test eax, eax
je 0x140009ff1
lea rcx, str.Failed_to_set_owner_security_info_for__s:__d_n_n
jmp 0x14000a024
mov rax, qword [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
test eax, eax
je 0x14000a055
lea rcx, str.Failed_to_set_DACL_info_for__s:__d_n_n
mov rdx, rbx
mov r8d, eax
call fcn.140005e60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000a106
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 3
mov qword [rbp - 0x66], rdi
mov dword [rbp - 0x5e], edi
mov word [rbp - 0x5a], di
cmp byte [rbx + rax + 1], dil
lea rax, [rax + 1]
jne 0x14000a082
mov byte [rax + rbx + 1], dil
mov rcx, rbx
lea rax, [0x140044fe0]
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rax
mov eax, 0x414
mov word [rbp - 0x68], ax
lea rax, [0x140044718]
mov qword [rbp - 0x58], rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14000a0cd
lea rcx, [rsp + 0x78]
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
lea rcx, [0x140044fe8]
call fcn.140005e60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str._nFiles_clean..._n
call fcn.140005e60
mov rdi, qword [rsp + 0x148]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14001a6e0
mov rbx, qword [rsp + 0x150]
add rsp, 0x130
pop rbp
ret