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

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004c5f9
lea rax, [rbp + 0x58]
mov qword [rsp + 0x120], rdi
xor edi, edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x48]
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 [rbp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov dword [rbp + 0x48], edi
mov word [rbp + 0x4c], 0x100
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14004c2ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_initialize_all_SID_for__ws:__d_n_n
mov r8d, eax
call fcn.14000c200
mov rdi, qword [rsp + 0x120]
add rsp, 0x128
pop rbx
pop rbp
ret
lea rax, [rsp + 0x60]
mov dword [rbp + 0x50], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x50]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, reloc.WLDAP32.dll_Ordinal_32
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 + 0x54], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14004c368
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_initialize_admin_SID_for__ws:__d_n_n
mov r8d, eax
call fcn.14000c200
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rdi, qword [rsp + 0x120]
add rsp, 0x128
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x58]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x14004c397
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_convert_all_SID_to_string_for__ws:__d_n_n
jmp 0x14004c469
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x14004c3e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_convert_admin_SID_to_string_for__ws:__d_n_n
mov r8d, eax
call fcn.14000c200
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
jmp 0x14004c5eb
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x10000000
xor eax, eax
mov qword [rsp + 0x68], rdi
mov qword [rbp - 0x2c], rax
lea r9, [rsp + 0x68]
mov rax, qword [rsp + 0x70]
lea rdx, [rbp - 0x80]
movups xmmword [rbp - 0x5c], xmm0
xor r8d, r8d
mov qword [rbp - 0x58], rax
mov rax, qword [rsp + 0x78]
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x28], rax
movups xmmword [rbp - 0x3c], xmm0
lea ecx, [r8 + 2]
mov dword [rbp - 0x64], edi
movups xmmword [rbp - 0x7c], xmm0
mov qword [rbp - 0x7c], 2
movups xmmword [rbp - 0x4c], xmm0
mov dword [rbp - 0x60], 2
mov dword [rbp - 0x50], 0x10000000
mov qword [rbp - 0x4c], 2
mov dword [rbp - 0x34], edi
mov dword [rbp - 0x30], 2
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x14004c49b
lea rcx, str.Failed_to_set_ACL_entries_for__ws:__d_n_n
mov rdx, rbx
mov r8d, eax
call fcn.14000c200
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rdi, qword [rsp + 0x120]
add rsp, 0x128
pop rbx
pop rbp
ret
mov r9, qword [rsp + 0x60]
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_SetNamedSecurityInfoW]
test eax, eax
je 0x14004c4db
mov r8d, eax
lea rcx, str.Failed_to_set_owner_security_info_for__ws:__d_n_n
mov rdx, rbx
call fcn.14000c200
jmp 0x14004c5d1
mov rax, qword [rsp + 0x68]
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_SetNamedSecurityInfoW]
test eax, eax
je 0x14004c51e
mov r8d, eax
lea rcx, str.Failed_to_set_DACL_info_for__ws:__d_n_n
mov rdx, rbx
call fcn.14000c200
jmp 0x14004c5d1
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rax, 0xffffffffffffffff
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 3
mov qword [rbp + 2], rdi
mov dword [rbp + 0xa], edi
mov word [rbp + 0xe], di
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x14004c550
mov word [rbx + rax*2 + 2], di
mov rcx, rbx
lea rax, [0x1400f4ed8]
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rax
mov eax, 0x414
mov word [rbp], ax
lea rax, [0x1400dc984]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004c5b8
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x14004c5b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_delete_file__ws:__d_n_n
mov r8d, eax
call fcn.14000c200
jmp 0x14004c5d1
mov r9d, Ordinal_200
lea rcx, str._ws_n_c_c_deleted_n_n
mov rdx, rbx
lea r8d, [r9 - 4]
call fcn.14000c200
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x120]
add rsp, 0x128
pop rbx
pop rbp
ret