Function at 0x140002ab0
Capabilities:
Create pipe

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x140
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400490b0]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [r11 - 0xc8], rsi
mov qword [r11 - 0xb8], rsi
mov qword [rsp + 0x98], rsi
mov dword [r11 - 0x18], esi
mov word [r11 - 0x14], 0x100
mov dword [r11 - 0x20], esi
mov word [r11 - 0x1c], 0x500
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [r11 - 0x18]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140002b74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._nCreateUserAccesseedNamedPipe:_AllocateAndInitializeSid___failed
call fcn.140007a70
mov dword [rsp + 0x60], esi
lea rdx, [0x1400470e8]
lea rcx, [rsp + 0x60]
call fcn.14000a654
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0xc0]
call fcn.14000afa0
mov dword [rsp + 0xc0], 0xc0000000
mov qword [rsp + 0xc4], 2
mov dword [rsp + 0xdc], esi
mov dword [rsp + 0xe0], 5
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140002c2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._nCreateUserAccesseedNamedPipe:_AllocateAndInitializeSid___failed
call fcn.140007a70
mov dword [rsp + 0x68], esi
lea rdx, [0x1400470e8]
lea rcx, [rsp + 0x68]
call fcn.14000a654
mov dword [rsp + 0xf0], 0xf003f
mov qword [rsp + 0xf4], 2
mov dword [rsp + 0x10c], esi
mov dword [rsp + 0x110], 2
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x118], rax
lea r9, [rsp + 0x90]
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea ecx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x140002cae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._nCreateUserAccesseedNamedPipe:_SetEntriesInAcl___failed
call fcn.140007a70
mov dword [rsp + 0x6c], esi
lea rdx, [0x1400470e8]
lea rcx, [rsp + 0x6c]
call fcn.14000a654
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x140002cfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._nCreateUserAccesseedNamedPipe:_SetEntriesInAcl___failed
call fcn.140007a70
mov dword [rsp + 0x88], esi
lea rdx, [0x1400470e8]
lea rcx, [rsp + 0x88]
call fcn.14000a654
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140002d36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._nCreateUserAccesseedNamedPipe:_InitializeSecurityDescriptor___failed
call fcn.140007a70
mov dword [rsp + 0x78], esi
lea rdx, [0x1400470e8]
lea rcx, [rsp + 0x78]
call fcn.14000a654
xor r9d, r9d
mov r8, qword [rsp + 0x90]
lea edx, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x140002d81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._nCreateUserAccesseedNamedPipe:_SetSecurityDescriptorDacl___failed
call fcn.140007a70
mov dword [rsp + 0x8c], esi
lea rdx, [0x1400470e8]
lea rcx, [rsp + 0x8c]
call fcn.14000a654
mov dword [rsp + 0xa8], 0x18
mov qword [rsp + 0xb0], rbx
mov dword [rsp + 0xb8], esi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov edx, 3
mov r9d, 0xff
lea r8d, [rdx + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140002ddb
jmp 0x140002e15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._nCreateUserAccesseedNamedPipe:_CreateNamedPipe___failed
call fcn.140007a70
mov dword [rsp + 0x64], esi
lea rdx, [0x1400470e8]
lea rcx, [rsp + 0x64]
call fcn.14000a654
nop
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002e25
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140002e38
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140002e4b
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x140002e59
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rdi
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140008de0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret