Function at 0x14001caa0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14008f010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r12, rdx
mov rbx, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c14
xor r13d, r13d
mov qword [rsp + 0x78], r13
mov edi, r13d
mov qword [rsp + 0x80], r13
mov r14d, r13d
mov dword [rsp + 0x88], r13d
mov word [rsp + 0x8c], 0x100
mov rax, qword [rbx]
mov rsi, qword [rax + 0x50]
mov qword [rsp + 0x68], rsi
test rsi, rsi
jne 0x14001cb46
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140020d70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.InitializeSecurityDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ccf7
mov edx, 1
mov rcx, r12
call rax
test eax, eax
je 0x14001ccf7
lea rdx, str.AllocateAndInitializeSid
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ccf7
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x88]
call rax
test eax, eax
je 0x14001ccf7
lea rdx, str.GetLengthSid
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ccf7
mov rcx, qword [rsp + 0x78]
call rax
lea r15d, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, r15d
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14001ccf7
lea rdx, str.InitializeAcl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ccf7
mov r8d, 2
mov edx, r15d
mov rcx, rdi
call rax
test eax, eax
je 0x14001ccf7
lea rdx, str.AddAccessAllowedAce
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ccf7
mov r9, qword [rsp + 0x78]
mov edx, 2
mov r8d, 0x10000000
mov rcx, rdi
call rax
test eax, eax
je 0x14001ccf7
lea rdx, str.SetSecurityDescriptorDacl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001ccf7
mov r8, qword [rsp + 0x80]
mov r15d, 1
test r8, r8
je 0x14001ccde
xor r9d, r9d
mov edx, r15d
mov rcx, r12
call rbx
test eax, eax
je 0x14001ccc8
mov r14d, r15d
mov dword [rsp + 0x60], r15d
cmp qword [rsp + 0x80], 0
jne 0x14001ccf7
jmp 0x14001ccde
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x80], r13
xor r9d, r9d
mov r8, rdi
mov edx, r15d
mov rcx, r12
call rbx
test eax, eax
cmovne r14d, r15d
mov dword [rsp + 0x60], r14d
cmp qword [rsp + 0x78], 0
je 0x14001cd20
lea rdx, str.FreeSid
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001cd20
mov rcx, qword [rsp + 0x78]
call rax
mov qword [rsp + 0x78], r13
test r14d, r14d
jne 0x14001cd54
test rdi, rdi
je 0x14001cd41
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, r13
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14001cd54
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rdi
jmp 0x14001cb19