Function at 0x14012c510
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x180
xor ebx, ebx
mov ebp, r8d
mov dword [rsp + 0x1b0], ebx
mov r14, rdx
cmp byte [0x1401b8939], bl
mov rdi, rcx
mov esi, ebx
je 0x14012c580
call fcn.140071fb0
cmp eax, 3
jg 0x14012c580
cmp qword [rdi + 0x68], 0xffffffffffffffff
je 0x14012c580
lea r9d, [rbx + 3]
lea r8d, [rbx + 0x75]
lea rdx, [0x14019e3e0]
lea rcx, [rsp + 0x78]
call fcn.140071390
lea rdx, str.Check_failed:_pipe___INVALID_HANDLE_VALUE.
lea rcx, [rax + 8]
call fcn.140001280
mov esi, 1
test sil, 1
je 0x14012c593
and esi, 0xfffffffe
lea rcx, [rsp + 0x78]
call fcn.1400713f0
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14012ca60
test ebp, ebp
jne 0x14012c679
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x70], rax
call fcn.1400764c0
test al, al
jne 0x14012c621
cmp byte [0x1401b8939], bl
je 0x14012c60e
call fcn.140071fb0
cmp eax, 3
jg 0x14012c60e
lea r9d, [rbp + 3]
or esi, 2
lea r8d, [rbp + 0x7e]
lea rdx, [0x14019e440]
lea rcx, [rsp + 0x78]
call fcn.140071390
lea rdx, [0x14019e428]
lea rcx, [rax + 8]
call fcn.140001280
test sil, 2
je 0x14012c621
and esi, 0xfffffffd
lea rcx, [rsp + 0x78]
call fcn.1400713f0
cmp qword [rsp + 0x58], 8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
cmovae rcx, qword [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x30], 0x1388
xor r8d, r8d
mov dword [rsp + 0x28], 0x1000
mov edx, 0x40080003
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x68]
mov qword [rdi + 0x68], rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14012c6b4
cmp qword [rsp + 0x58], 8
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
mov edx, 0xc0000000
cmovae rcx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x40110000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x68], rax
cmp qword [rdi + 0x68], 0xffffffffffffffff
jne 0x14012c722
call fcn.140071fb0
cmp eax, 1
jg 0x14012c70a
mov r9d, 1
lea rdx, [0x14019e4a0]
mov r8d, 0x99
lea rcx, [rsp + 0x78]
or esi, 4
call fcn.140071390
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 8]
mov edi, eax
lea rdx, str.failed_to_create_pipe:
call fcn.140001280
mov rcx, rax
mov edx, edi
call fcn.140071b60
test sil, 4
je 0x14012c71a
lea rcx, [rsp + 0x78]
call fcn.1400713f0
xor dil, dil
jmp 0x14012c84c
mov ecx, 0x28
call fcn.1400eeed0
test rax, rax
je 0x14012c74b
mov edx, 0xfffffffe
mov r8d, 0xffff
mov rcx, rax
lea r9d, [rdx + 4]
call fcn.1400782d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, 4
lea rdx, [rsp + 0x1b0]
mov rcx, rbx
mov dword [rsp + 0x1b0], eax
call fcn.140077d50
test al, al
jne 0x14012c7a2
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x68], 0xffffffffffffffff
xor dil, dil
test rbx, rbx
je 0x14012c84c
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x14012c84c
mov rcx, qword [rdi + 0x98]
movzx eax, cl
add al, byte [rdi + 0x90]
test al, 1
jne 0x14012c7d4
lea rax, [rcx + 2]
shr rax, 1
cmp qword [rdi + 0x88], rax
ja 0x14012c7d4
mov edx, 1
lea rcx, [rdi + 0x78]
call fcn.14012da00
mov rdx, qword [rdi + 0x88]
lea rax, [rdx*2 - 1]
and qword [rdi + 0x90], rax
lea rcx, [rdx - 1]
mov rsi, qword [rdi + 0x90]
add rsi, qword [rdi + 0x98]
mov rax, rsi
shr rax, 1
and rcx, rax
mov rax, qword [rdi + 0x80]
lea r14, [rcx*8]
cmp qword [r14 + rax], 0
jne 0x14012c830
mov ecx, 0x10
call fcn.1400eeed0
mov rcx, qword [rdi + 0x80]
mov qword [r14 + rcx], rax
mov rax, qword [rdi + 0x80]
and esi, 1
mov rax, qword [r14 + rax]
mov qword [rax + rsi*8], rbx
inc qword [rdi + 0x98]
mov dil, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14012c88a
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012c885
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012c8a6
call fcn.1400eef0c
lea r11, [rsp + 0x180]
movzx eax, dil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400f5e30
int3