Function at 0x140041eec
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor esi, esi
mov ebx, r8d
mov r13, rdx
mov dword [rsp + 0x40], esi
mov r15, rcx
mov r12d, esi
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rsi
mov word [rbp + 0x60], si
cmp qword [rdx + 0x20], rsi
je 0x14004208f
lea r8d, [rsi + 0xd]
lea rdx, str.Not_Available
lea rcx, [rbp + 0x60]
call fcn.140009524
mov rcx, qword [r13 + 0x20]
lea rdx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
lea r14d, [rsi + 1]
mov eax, ebx
and eax, r14d
mov dword [rsp + 0x40], eax
je 0x140041f90
test byte [rsp + 0x48], r14b
je 0x140041f9c
test bl, 2
je 0x140041fe9
test byte [rsp + 0x48], r14b
je 0x140041fe9
call fcn.140018da4
cmp eax, r14d
jg 0x140041fe0
lea rdx, str.b:core_srcipcipc_channel_win.cc
lea rcx, [rsp + 0x50]
mov r9d, r14d
mov r8d, 0x109
mov r12d, 4
call fcn.140018824
lea rdx, str.Inconsistent_open_mode._Mode_:
lea rcx, [rax + 8]
call fcn.1400013e0
mov edx, ebx
mov rcx, rax
call fcn.1400097fc
test r12b, 4
jmp 0x14004207a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r13 + 0x20]
mov dword [rsp + 0x30], 2
lea r9, [r15 + 0x10a0]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400421c0
call fcn.140018da4
cmp eax, r14d
jg 0x140042076
lea rdx, str.b:core_srcipcipc_channel_win.cc
lea rcx, [rsp + 0x50]
mov r9d, r14d
mov r8d, 0x113
mov r12d, 8
call fcn.140018824
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
lea rdx, str.DuplicateHandle_failed._Error_:
mov edi, eax
call fcn.1400013e0
mov edx, edi
mov rcx, rax
call fcn.140007844
test r12b, 8
je 0x140042310
lea rcx, [rsp + 0x50]
call fcn.1400188b0
jmp 0x140042310
mov edi, ebx
mov r14d, 1
and edi, r14d
je 0x140042139
lea rbx, [rcx + 0x10e0]
lea rcx, [rbp + 0x80]
mov r8, rbx
call fcn.140042738
lea rcx, [rbp + 0x60]
cmp rcx, rax
je 0x1400420d2
lea rcx, [rbp + 0x60]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.1400093e4
cmp qword [rbp + 0x98], 8
jb 0x1400420e8
mov rcx, qword [rbp + 0x80]
call fcn.14009bc2c
cmp dword [rbx], esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x1388
setne al
cmp qword [rbp + 0x78], 8
lea rcx, [rbp + 0x60]
cmovae rcx, qword [rbp + 0x60]
mov byte [r15 + 0x10da], al
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov r9d, r14d
xor r8d, r8d
mov edx, 0x40080003
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [r15 + 0x10a0], rax
jmp 0x1400421c4
test bl, 2
je 0x1400421c4
lea r8, [rcx + 0x10e0]
lea rcx, [rbp + 0x80]
call fcn.140042738
lea rcx, [rbp + 0x60]
cmp rcx, rax
je 0x140042171
lea rcx, [rbp + 0x60]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.1400093e4
cmp qword [rbp + 0x98], 8
jb 0x140042187
mov rcx, qword [rbp + 0x80]
call fcn.14009bc2c
cmp qword [rbp + 0x78], 8
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x60]
cmovae rcx, qword [rbp + 0x60]
mov edx, 0xc0000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x40110000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x14004212d
mov edi, dword [rsp + 0x40]
cmp qword [r15 + 0x10a0], 0xffffffffffffffff
jne 0x140042284
call fcn.140018da4
cmp eax, r14d
jg 0x14004226c
mov r12d, 0x80
call sub.KERNEL32.dll_GetLastError
lea rdx, str.b:core_srcipcipc_channel_win.cc
lea rcx, [rsp + 0x50]
mov r9d, r14d
mov r8d, 0x135
mov dword [rsp + 0x20], eax
call fcn.14001888c
lea rdx, str.Unable_to_create_pipe__
lea rcx, [rax + 0x10]
call fcn.1400013e0
cmp qword [rbp + 0x78], 8
lea rdx, [rbp + 0x60]
cmovae rdx, qword [rbp + 0x60]
mov rcx, rax
call fcn.140018bd8
lea rcx, str.server
lea rbx, str.client
test edi, edi
lea rdx, str.__in
cmovne rbx, rcx
mov rcx, rax
call fcn.1400013e0
mov rdx, rbx
mov rcx, rax
call fcn.1400013e0
lea rdx, str._mode
mov rcx, rax
call fcn.1400013e0
test r12b, r12b
jns 0x140042310
lea rcx, [rsp + 0x50]
call fcn.140018b4c
jmp 0x140042310
mov ecx, gethostbyname
call fcn.14009bbc0
test rax, rax
je 0x1400422af
mov edx, 0xfffffffe
mov r8d, 0xffff
mov rcx, rax
lea r9d, [rdx + 4]
call fcn.1400478f8
mov rbx, rax
jmp 0x1400422b2
mov rbx, rsi
mov edi, esi
cmp byte [r15 + 0x10da], sil
jne 0x1400422c4
mov edi, dword [r15 + 0x10e0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x40], eax
call fcn.140027680
test edi, edi
je 0x1400422f0
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x40], edi
call fcn.140027680
or dword [r15 + 0x10dc], r14d
lea rcx, [r15 + 0x10b0]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
call fcn.140021eb0
mov sil, r14b
cmp qword [rbp + 0x78], 8
jb 0x140042320
mov rcx, qword [rbp + 0x60]
call fcn.14009bc2c
mov al, sil
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret