Function at 0x140010c10
Capabilities:
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x8070
call fcn.14004f660
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x8060], rax
xor r13d, r13d
mov r12, 0xffffffffffffffff
mov r14d, edx
mov rsi, rcx
mov r15, r12
mov ebp, r13d
mov edi, r13d
test rcx, rcx
jne 0x140010ca1
call fcn.14003d440
lea rcx, str.pipe___ERROR_invalid_parameter
xor r9d, r9d
mov qword [rsp + 0x30], rcx
lea rdx, str.fileio_pipe
mov qword [rsp + 0x28], r13
lea rcx, str.C:__w1_scontribwin32win32compat_fileio.c
mov r8d, 0xc7
mov dword [rsp + 0x20], 7
mov dword [rax], socket
call fcn.14001ae20
mov eax, r12d
jmp 0x140010f76
mov qword [rsp + 0x80c0], rbx
mov ebx, dword [0x14008433c]
lea eax, [rbx + 1]
mov dword [0x14008433c], 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.140001860
cmp eax, r12d
jne 0x140010cfc
call fcn.14003d440
mov ebx, 0xcf
lea rsi, str.pipe___ERROR_sprintf_s__d
mov dword [rax], 0x83
jmp 0x140010efd
mov edx, r13d
mov dword [rsp + 0x50], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], r13d
test r14d, r14d
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 r15, rax
cmp rax, r12
jne 0x140010dd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xe
jg 0x140010d8a
je 0x140010d83
mov edx, eax
sub edx, 1
je 0x140010db5
sub edx, 1
je 0x140010da7
sub edx, 1
je 0x140010da7
cmp edx, 2
je 0x140010da0
jmp 0x140010dba
mov ebx, 0xc
jmp 0x140010dba
cmp eax, 0x32
je 0x140010db5
cmp eax, 0x50
je 0x140010dae
cmp eax, 0x7b
je 0x140010da7
cmp eax, 0x522
jne 0x140010dba
mov ebx, 0xd
jmp 0x140010dba
mov ebx, 2
jmp 0x140010dba
mov ebx, setsockopt
jmp 0x140010dba
mov ebx, 0x82
call fcn.14003d440
lea rsi, str.pipe___CreateNamedPipe___ERROR:_d
mov dword [rax], ebx
mov ebx, 0xe2
jmp 0x140010efd
mov edx, 0x80000000
mov qword [rsp + 0x30], r13
mov eax, 0xc0000000
mov dword [rsp + 0x28], 0x40000080
test r14d, r14d
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 r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140010e86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xe
jg 0x140010e41
je 0x140010e3a
mov edx, eax
sub edx, 1
je 0x140010e6c
sub edx, 1
je 0x140010e5e
sub edx, 1
je 0x140010e5e
cmp edx, 2
je 0x140010e57
jmp 0x140010e71
mov ebx, 0xc
jmp 0x140010e71
cmp eax, 0x32
je 0x140010e6c
cmp eax, 0x50
je 0x140010e65
cmp eax, 0x7b
je 0x140010e5e
cmp eax, 0x522
jne 0x140010e71
mov ebx, 0xd
jmp 0x140010e71
mov ebx, 2
jmp 0x140010e71
mov ebx, setsockopt
jmp 0x140010e71
mov ebx, 0x82
call fcn.14003d440
lea rsi, str.pipe___ERROR_CreateFile___:_d
mov dword [rax], ebx
mov ebx, 0xf0
jmp 0x140010efd
mov ecx, 0xc0
call fcn.14003d014
mov ecx, 0xc0
mov rbp, rax
call fcn.14003d014
mov rdi, rax
test rbp, rbp
je 0x140010ee6
test rax, rax
je 0x140010ee6
xor edx, edx
mov r8d, 0xc0
mov rcx, rbp
call fcn.14004f880
xor edx, edx
mov r8d, 0xc0
mov rcx, rdi
call fcn.14004f880
mov qword [rbp + 0x90], r12
xor eax, eax
mov qword [rdi + 0x90], r15
mov qword [rsi], rbp
mov qword [rsi + 8], rdi
jmp 0x140010f6e
call fcn.14003d440
mov ebx, 0xfa
lea rsi, str.pip___ERROR:_d
mov dword [rax], 0xc
call fcn.14003d440
xor r9d, r9d
lea rdx, str.fileio_pipe
mov r8d, ebx
mov ecx, dword [rax]
mov dword [rsp + 0x38], ecx
lea rcx, str.C:__w1_scontribwin32win32compat_fileio.c
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 7
call fcn.14001ae20
test r12, r12
je 0x140010f41
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x140010f4f
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x140010f5c
mov rcx, rbp
call fcn.14003d000
test rdi, rdi
je 0x140010f69
mov rcx, rdi
call fcn.14003d000
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80c0]
mov rcx, qword [rsp + 0x8060]
xor rcx, rsp
call fcn.1400313f0
add rsp, 0x8070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret