Function at 0x14001d050
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14002c0b8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0xd0], 0
call fcn.14001b420
mov qword [rsp + 0x48], rax
call fcn.14001b390
mov qword [rsp + 0x50], rax
call fcn.14001b2b0
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0x48], 0
je 0x14001d0e9
cmp qword [rsp + 0x50], 0
je 0x14001d0e9
cmp qword [rsp + 0xd8], 0
jne 0x14001d0fd
lea rcx, str.Failed_BuildXXXXXSid
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001d35d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
mov r8d, 1
mov edx, 6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x14001d15b
lea rcx, str.Failed_GetSecurityInfo_for_owner
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001d35d
mov eax, dword [rsp + 0x2b0]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], 0xe0002
mov dword [rsp + 0x68], 3
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x80], 2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x94], 1
mov dword [rsp + 0x90], 0x100f003f
mov dword [rsp + 0x98], 3
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0xac], 0
mov dword [rsp + 0xb0], 2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc8], 0
lea r9, [rsp + 0xd0]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
je 0x14001d28c
xor eax, eax
mov word [rsp + 0xf0], ax
lea rdi, [rsp + 0xf2]
xor eax, eax
mov ecx, 0xc6
rep stosb byte [rdi], al
mov r9d, dword [rsp + 0xc8]
lea r8, str.SetEntriesInAcl_Failed
lea rdx, [0x1400264b8]
lea rcx, [rsp + 0xf0]
call fcn.140007ad8
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001d35d
mov dword [rsp + 0x40], 0xc
jmp 0x14001d2a1
mov eax, dword [rsp + 0x40]
sub eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001d358
mov eax, dword [rsp + 0x40]
sub eax, 1
movsxd rdi, eax
lea rcx, str.MACHINESYSTEMCurrentControlSetServicesAEEngine
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
mov r8d, 0x80000005
mov edx, 4
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
je 0x14001d353
xor eax, eax
mov word [rsp + 0x1c0], ax
lea rdi, [rsp + 0x1c2]
xor eax, eax
mov ecx, 0xc6
rep stosb byte [rdi], al
mov r9d, dword [rsp + 0xc8]
lea r8, str.SetNamedSecurityInfo_failed
lea rdx, str._s__d
lea rcx, [rsp + 0x1c0]
call fcn.140007ad8
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001d296
mov eax, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140006d50
add rsp, 0x2a0
pop rdi
ret