Function at 0x1400ae450
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
mov r15, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x210], rax
call fcn.1400aec00
lea r14, [r15 + 0x10]
mov rcx, r14
call fcn.1400aec00
lea rcx, [rsp + 0x78]
call fcn.1400aec80
lea rcx, [rsp + 0x68]
call fcn.1400aec80
call fcn.140083cd0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov qword [rsp + 0x20], rbx
lea rdx, str..pipemojo._lu._lu._I64u
lea rdi, [rsp + 0xa8]
mov rcx, rdi
mov r8d, eax
mov r9d, ebp
call fcn.140089540
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi]
cmovns rcx, rdi
lea rdx, [rsp + 0x1e8]
mov qword [rdx], rcx
cmovs rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x1f8]
mov rcx, rbx
call fcn.140089e90
xor eax, eax
cmp byte [rdi + 0x17], al
jns 0x1400ae516
mov rcx, qword [rsp + 0xa8]
call fcn.140190860
cmp byte [rsp + 0x20f], 0
jns 0x1400ae528
mov rbx, qword [rsp + 0x1f8]
xor esi, esi
mov qword [rsp + 0x38], rsi
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0x1388
mov rcx, rbx
mov edx, 0x40080003
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea rdi, [rsp + 0x1e0]
mov qword [rdi], rsi
mov rcx, rdi
mov rdx, rax
call fcn.140004730
lea rbx, [rsp + 0xa8]
mov rcx, rbx
mov rdx, rdi
call fcn.1400aed20
lea rdi, [rsp + 0x78]
mov rcx, rdi
mov rdx, rbx
call fcn.1400aece0
mov rcx, rbx
call fcn.1400aed70
mov rax, qword [rdi + 8]
inc rax
mov ecx, 1
cmp rax, rcx
ja 0x1400ae5fb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._mojo_public_cpp_platform_platform_channel.cc
lea rdi, [rsp + 0xa8]
mov rcx, rdi
mov r8d, 0x49
mov r9d, 3
call fcn.1400776a0
lea rcx, [rsp + 0xb8]
lea rdx, str.Check_failed:_local_endpoint__is_valid__.
mov r8d, 0x2a
call fcn.1400047e0
mov rcx, rdi
call fcn.140077770
mov rax, qword [reloc.WS2_32.dll_accept]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [0x1401db980]
movaps xmmword [rsp + 0x90], xmm0
cmp byte [rsp + 0x20f], 0
jns 0x1400ae62d
mov rcx, qword [rsp + 0x1f8]
jmp 0x1400ae635
lea rcx, [rsp + 0x1f8]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x40100000
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x90]
mov edx, 0xc0000000
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rdi, [rsp + 0x88]
mov qword [rdi], rsi
mov rcx, rdi
mov rdx, rax
call fcn.140004730
lea rbx, [rsp + 0xa8]
mov rcx, rbx
mov rdx, rdi
call fcn.1400aed20
lea rdi, [rsp + 0x68]
mov rcx, rdi
mov rdx, rbx
call fcn.1400aece0
mov rcx, rbx
call fcn.1400aed70
mov rax, qword [rdi + 8]
inc rax
mov ecx, 1
cmp rax, rcx
ja 0x1400ae702
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._mojo_public_cpp_platform_platform_channel.cc
lea rdi, [rsp + 0xa8]
mov rcx, rdi
mov r8d, 0x56
mov r9d, 3
call fcn.1400776a0
lea rcx, [rsp + 0xb8]
lea rdx, str.Check_failed:_remote_endpoint__is_valid__.
mov r8d, 0x2b
call fcn.1400047e0
mov rcx, rdi
call fcn.140077770
mov rcx, qword [rsp + 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400ae742
lea rdx, str..._.._mojo_public_cpp_platform_platform_channel.cc
lea r9, str._::ConnectNamedPipe_local_endpoint__GetHandle__.Get____nullptr_
lea rdi, [rsp + 0xa8]
mov rcx, rdi
mov r8d, 0x5a
call fcn.1400764f0
mov rcx, rdi
call fcn.140076600
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400ae79d
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._mojo_public_cpp_platform_platform_channel.cc
lea rdi, [rsp + 0xa8]
mov rcx, rdi
mov r8d, 0x5b
mov r9d, 3
call fcn.1400776a0
lea rcx, [rsp + 0xb8]
lea rdx, str.Check_failed:_::GetLastError____ERROR_PIPE_CONNECTED.
mov r8d, 0x38
call fcn.1400047e0
mov rcx, rdi
call fcn.140077770
cmp byte [rsp + 0x20f], 0
jns 0x1400ae7b4
mov rcx, qword [rsp + 0x1f8]
call fcn.140190860
lea rdi, [rsp + 0x58]
lea rbx, [rsp + 0x78]
mov rcx, rdi
mov rdx, rbx
call fcn.1400aeca0
lea rbp, [rsp + 0xa8]
mov rcx, rbp
mov rdx, rdi
call fcn.1400aec20
mov rcx, r15
mov rdx, rbp
call fcn.1400aec60
mov rcx, rbp
call fcn.1400aec50
lea rdi, [rsp + 0x48]
lea rbp, [rsp + 0x68]
mov rcx, rdi
mov rdx, rbp
call fcn.1400aeca0
lea rsi, [rsp + 0xa8]
mov rcx, rsi
mov rdx, rdi
call fcn.1400aec20
mov rcx, r14
mov rdx, rsi
call fcn.1400aec60
mov rcx, rsi
call fcn.1400aec50
mov rcx, rbp
call fcn.1400aed70
mov rcx, rbx
call fcn.1400aed70
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140190ca0
mov rax, r15
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret