Function at 0x140085590
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r12
sub rsp, 0x100
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov esi, r8d
mov r12, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400855ed
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], 0xffffffffffffffff
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14008560c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rbx + 0x10]
xor edi, edi
mov qword [r11 + 0x18], rdi
jmp 0x14008560e
xor edi, edi
xor ecx, ecx
mov rax, qword [rbx + 0x10]
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov dword [rbx + 0x474], edi
mov byte [rsp + 0x40], cl
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.140084b40
lea r11, [rsp + 0x48]
cmp byte [rsp + 0x40], 0
cmove r11, rdi
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x40], rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rbx + 0x40], 0xffffffffffffffff
jne 0x1400856d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_create_pipe.___s
lea rcx, [rsp + 0xe0]
call fcn.140084e70
lea rdx, [0x1402524f8]
lea rcx, [rsp + 0xe0]
call sub.MSVCR90.dll__CxxThrowException
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 0x18], rax
mov rdx, qword [rbx + 0x10]
cmp qword [rdx + 0x18], 0
jne 0x14008572c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_create_pipe_event.___s
lea rcx, [rsp + 0x98]
call fcn.140084e70
lea rdx, [0x1402524f8]
lea rcx, [rsp + 0x98]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14008577d
cmp eax, 0x3e5
je 0x14008577b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Pipe_connecting_error.___s
lea rcx, [rsp + 0xc8]
call fcn.140084e70
lea rdx, [0x1402524f8]
lea rcx, [rsp + 0xc8]
call sub.MSVCR90.dll__CxxThrowException
jmp 0x1400857c1
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1400857c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Event_error.___s
lea rcx, [rsp + 0xb0]
call fcn.140084e70
lea rdx, [0x1402524f8]
lea rcx, [rsp + 0xb0]
call sub.MSVCR90.dll__CxxThrowException
nop
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret