Function at 0x140008a20
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rdi, rcx
xor r13d, r13d
mov r14d, r13d
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x60], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x140008b05
xor r9d, r9d
or r8, rax
lea rdx, str.Failed_to_create_connection
lea rcx, [rsp + 0x78]
call fcn.14000fb80
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x58], rax
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
or r8, rbx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140010560
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1400355e8]
lea rcx, [rsp + 0x40]
call fcn.14001436c
nop
lea rcx, [rbp - 0x10]
call fcn.1400128b0
mov r15, rax
lea rax, vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], r15
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], r13
or r8, 0xffffffffffffffff
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x78]
call fcn.140010560
nop
lea rcx, [rsp + 0x78]
call fcn.1400112c0
nop
lea rcx, [rsp + 0x78]
call fcn.1400112c0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 0xe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x78], rax
mov rax, qword [rbp - 0x68]
mov rcx, r13
mov qword [rbp - 0x68], rcx
test rax, rax
je 0x140008bb9
mov rcx, rax
call fcn.140013924
mov rcx, qword [rbp - 0x68]
call fcn.1400137cc
mov rax, qword [rbp - 0x78]
mov rcx, r13
mov qword [rbp - 0x78], rcx
test rax, rax
je 0x140008bda
mov rcx, rax
call fcn.140013924
mov rcx, qword [rbp - 0x78]
call fcn.1400137cc
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x78]
cmp qword [rdi + 0x78], r8
je 0x140008d43
lea rdx, [0x14002ee78]
call fcn.14000fb80
lea rcx, [rdi + 0x40]
lea r8, [rbp + 0x58]
mov rdx, rax
call fcn.140012020
lea rdx, [rbp - 0x48]
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r8d, dword [rbp + 0x58]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi + 0x70], rax
mov qword [rbp - 0x50], rax
cmp esi, 0x217
je 0x140008cb4
cmp esi, 0x3e5
jne 0x140008cc5
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140008c73
dec eax
jne 0x140008c8e
lea r14d, [rax + 1]
jmp 0x140008c8e
mov rax, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x78]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test r14d, r14d
je 0x140008b20
test r15, r15
je 0x140008ca6
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008db5
mov rax, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x78]
mov rcx, rdi
call qword [rax + 8]
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.Failed_to_create_connection
lea rcx, [rsp + 0x78]
call fcn.14000fb80
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x68], rax
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140010560
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1400355e8]
lea rcx, [rsp + 0x40]
call fcn.14001436c
nop
lea rdx, str.Failed_to_create_connection
call fcn.14000fb80
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x68], rax
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140010560
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1400355e8]
lea rcx, [rsp + 0x40]
call fcn.14001436c
nop
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret