Function at 0x140166220
Capabilities:
Check if file exists
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm7
movaps xmmword [rsp + 0x100], xmm6
mov rsi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0xf8], rax
call fcn.1401661a0
mov qword [rsp + 0x48], rsi
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x40], rcx
call fcn.1401661a0
movaps xmm6, xmmword [0x14047fb40]
lea rcx, [rsp + 0x80]
movaps xmmword [rcx], xmm6
call fcn.140274fd0
lea rcx, [rsp + 0x70]
movaps xmmword [rcx], xmm6
call fcn.140274fd0
mov r14d, reloc.WS2_32.dll_recv
lea r15, [rsp + 0xb0]
lea r12, [rsp + 0xe0]
xor edi, edi
movups xmm7, xmmword [0x1404b1f50]
lea rbp, [rsp + 0xa0]
mov rsi, qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14016630a
call fcn.14026d530
mov rcx, qword [rsp + 0xd8]
call fcn.140252540
mov qword [rsp + 0xd8], 0
jmp 0x1401663be
mov rcx, qword [rsp + 0xe0]
call fcn.1402dd16c
inc rbx
cmp rbx, 1
ja 0x14016653c
dec r14d
je 0x14016653c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xf0], rax
movaps xmmword [rsp + 0xe0], xmm6
mov rcx, r15
call fcn.1401a0650
mov rcx, r12
mov rdx, r15
call fcn.1401a0870
cmp byte [rsp + 0xc7], 0
jns 0x14016634e
mov rcx, qword [rsp + 0xb0]
call fcn.1402dd16c
cmp byte [rsp + 0xf7], 0
mov rcx, r12
jns 0x140166363
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rdi
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0x1388
mov edx, 0x40080003
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsp + 0xd8], rdi
test rax, rax
je 0x1401663d9
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsp + 0xd8]
inc rax
cmp rax, 2
jae 0x1401662c4
lea rax, [r13 + 1]
cmp rax, 2
jb 0x1401663d5
mov qword [rsp + 0xd8], r13
call fcn.14026d530
mov ecx, ebx
call rsi
mov rcx, r15
lea rdx, [rsp + 0xd8]
call fcn.140275110
lea rcx, [rsp + 0x80]
mov rdx, r15
call fcn.140275080
mov rcx, r15
call fcn.1402751c0
mov rax, qword [rsp + 0x88]
inc rax
cmp rax, 1
ja 0x140166449
mov rcx, r15
lea rdx, str.CreateChannel
lea r8, str.....mojopubliccppplatformplatform_channel.cc
mov r9d, 0x47
call fcn.14026d510
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov rdx, r15
call fcn.1403814d0
mov rcx, rbx
call fcn.140381500
mov rax, qword [reloc.WS2_32.dll_accept]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm7
cmp byte [rsp + 0xf7], 0
mov rcx, r12
jns 0x140166475
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x40100000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
mov r9, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x98], rdi
test rax, rax
je 0x1401664df
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsp + 0x98]
inc rax
cmp rax, 2
jae 0x14016651c
lea rax, [r13 + 1]
cmp rax, 2
jb 0x1401664db
mov qword [rsp + 0x98], r13
call fcn.14026d530
mov ecx, ebx
call rsi
mov rcx, rbp
lea rdx, [rsp + 0x98]
call fcn.140275110
lea rcx, [rsp + 0x70]
mov rdx, rbp
call fcn.140275080
mov rcx, rbp
call fcn.1402751c0
mov rbx, qword [rsp + 0x78]
cmp byte [rsp + 0xf7], 0
jns 0x1401662f4
jmp 0x1401662e7
call fcn.14026d530
mov rcx, qword [rsp + 0x98]
call fcn.140252540
mov qword [rsp + 0x98], 0
jmp 0x1401664c4
mov rax, qword [rsp + 0x78]
inc rax
cmp rax, 1
ja 0x140166589
lea rdx, str.CreateChannel
lea r8, str.....mojopubliccppplatformplatform_channel.cc
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov r9d, 0x57
call fcn.14026d510
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov rdx, rsi
call fcn.1403814d0
mov rcx, rdi
call fcn.140381500
mov rcx, qword [rsp + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1401666bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140166679
lea rdi, [rsp + 0x60]
lea rsi, [rsp + 0x80]
mov rcx, rdi
mov rdx, rsi
call fcn.140274ff0
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, rdi
call fcn.1401661c0
mov r15, qword [rsp + 0x48]
mov rcx, r15
mov rdx, rbx
call fcn.140166200
mov rcx, rbx
call fcn.1401661f0
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x70]
mov rcx, rdi
mov rdx, rbx
call fcn.140274ff0
lea r14, [rsp + 0xb0]
mov rcx, r14
mov rdx, rdi
call fcn.1401661c0
mov rcx, qword [rsp + 0x40]
mov rdx, r14
call fcn.140166200
mov rcx, r14
call fcn.1401661f0
mov rcx, rbx
call fcn.1402751c0
mov rcx, rsi
call fcn.1402751c0
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1402ddd70
mov rax, r15
movaps xmm6, xmmword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.CreateChannel
lea r8, str.....mojopubliccppplatformplatform_channel.cc
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov r9d, 0x5c
call fcn.14026d510
lea rdi, [rsp + 0xa0]
mov rcx, rdi
mov rdx, rsi
call fcn.1403814d0
mov rcx, rdi
call fcn.140381500
jmp 0x1401665b2
int3