Function at 0x140007740
Capabilities:
Check if file exists
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000794b
lea rax, [rbp - 0x49]
mov qword [rsp + 0x118], rdi
xor edi, edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
lea rcx, [rbp - 0x31]
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 - 0x49], rdi
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x31], edi
mov word [rbp - 0x2d], 0x100
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140007943
lea rax, [rbp - 0x41]
mov dword [rbp - 0x29], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x48], edi
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x40], edi
mov r9d, 0x220
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 - 0x25], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14000781a
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x140007943
mov rax, qword [rbp - 0x49]
lea r9, [rbp - 0x39]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rdi
movups xmmword [rbp + 7], xmm0
xor r8d, r8d
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x41]
lea rdx, [rbp - 0x19]
movups xmmword [rbp - 0x19], xmm0
mov dword [rbp - 0x19], 0x10000000
movups xmmword [rbp + 0x17], xmm0
lea ecx, [r8 + 2]
mov qword [rbp - 0x15], 2
movups xmmword [rbp + 0x37], xmm0
mov qword [rbp + 0x3f], rax
movups xmmword [rbp - 9], xmm0
mov dword [rbp + 3], edi
movups xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 2
mov dword [rbp + 0x17], 0x10000000
mov qword [rbp + 0x1b], 2
mov dword [rbp + 0x33], edi
mov dword [rbp + 0x37], 2
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x1400078ad
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x140007943
mov r9, qword [rbp - 0x41]
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
jne 0x140007925
mov rax, qword [rbp - 0x39]
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
jne 0x140007925
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140007915
mov word [rbx + rax*2 + 2], di
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x118]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140007b10
mov rbx, qword [rsp + 0x120]
add rsp, 0x100
pop rbp
ret