Function at 0x140034740
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x8070
call fcn.14009f8b0
sub rsp, rax
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rsp + 0x8060], rax
or r14, 0xffffffffffffffff
xor edi, edi
or rbp, r14
mov r12d, edx
mov r15, rcx
mov esi, edi
test rcx, rcx
jne 0x1400347a1
call fcn.140084fc0
lea rcx, str.pipe___ERROR_invalid_parameter
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140046c70
or eax, r14d
jmp 0x1400349bc
mov eax, dword [0x1400eeef8]
mov qword [rsp + 0x80b0], rbx
mov ebx, eax
inc eax
mov dword [0x1400eeef8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, str..PipeW32PosixPipe._08x._08x
mov dword [rsp + 0x20], ebx
mov r9d, eax
lea rcx, [rsp + 0x60]
mov edx, 0x8000
call fcn.140028f60
cmp eax, 0xffffffff
jne 0x140034804
call fcn.140084fc0
mov dword [rax], 0x83
call fcn.140084fc0
lea rcx, str.pipe___ERROR_sprintf_s__d
mov edx, dword [rax]
call fcn.140046c70
jmp 0x140034980
mov edx, edi
mov dword [rsp + 0x50], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], edi
test r12d, r12d
mov dword [rsp + 0x28], 0x1000
mov r9d, 1
setne dl
mov dword [rsp + 0x40], 0x18
add edx, 2
mov dword [rsp + 0x20], 0x1000
bts edx, 0x1e
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140034891
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034510
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
call fcn.140084fc0
lea rcx, str.pipe___CreateNamedPipe___ERROR:_d
mov edx, dword [rax]
call fcn.140046c70
jmp 0x140034980
mov edx, 0x80000000
mov qword [rsp + 0x30], rdi
mov eax, 0xc0000000
mov dword [rsp + 0x28], 0x40000080
test r12d, r12d
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x40]
cmovne edx, eax
lea rcx, [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140034900
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034510
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
call fcn.140084fc0
lea rcx, str.pipe___ERROR_CreateFile___:_d
mov edx, dword [rax]
call fcn.140046c70
jmp 0x140034980
mov ecx, 0xc0
call fcn.140088334
mov ecx, 0xc0
mov rdi, rax
call fcn.140088334
mov rsi, rax
test rdi, rdi
je 0x14003495d
test rax, rax
je 0x14003495d
xor edx, edx
mov r8d, 0xc0
mov rcx, rdi
call fcn.14007a110
xor edx, edx
mov r8d, 0xc0
mov rcx, rsi
call fcn.14007a110
mov qword [rdi + 0x90], r14
xor eax, eax
mov qword [rsi + 0x90], rbp
mov qword [r15], rdi
mov qword [r15 + 8], rsi
jmp 0x1400349b4
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.140084fc0
lea rcx, str.pip___ERROR:_d
mov edx, dword [rax]
call fcn.140046c70
test r14, r14
je 0x140034989
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x140034997
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1400349a4
mov rcx, rdi
call fcn.14007a8b4
test rsi, rsi
je 0x1400349b1
mov rcx, rsi
call fcn.14007a8b4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x80b0]
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.140078840
mov rbp, qword [rsp + 0x80b8]
add rsp, 0x8070
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret