Function at 0x140002450
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14d, r9d
mov r13, r8
mov r12, rdx
mov rsi, rcx
lea rbx, [rcx + 0x28]
mov qword [rbp - 0x41], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.1400022f0
nop
cmp qword [rbp - 0x21], 0
jne 0x1400024e3
cmp qword [rbp - 0x19], 8
jb 0x1400024c0
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x19], 7
xor edi, edi
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [rdi + 9]
jmp 0x14000271a
cmp dword [r12 + 0xc], 0x400
jbe 0x140002522
cmp qword [rbp - 0x19], 8
jb 0x1400024ff
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x19], 7
xor edi, edi
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [rdi + 8]
jmp 0x14000271a
mov qword [rbp + 0xf], 7
xor edi, edi
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
cmp dword [rsi + 0x24], 2
lea rdx, [rsi + 0xb0]
je 0x140002553
lea rdx, [rsi + 0x88]
call fcn.1400029d0
cmp qword [rsi + 0x10], 0
jne 0x1400025d8
lea r8, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae r8, qword [rbp - 9]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1400025d8
cmp qword [rbp + 0xf], 8
jb 0x140002594
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
cmp qword [rbp - 0x19], 8
jb 0x1400025b5
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 9
jmp 0x14000271a
mov dword [rbp - 0x49], edi
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
mov dword [rsp + 0x30], r14d
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40c
mov r9, r13
mov r8d, 0x410
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
jne 0x1400026cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
jne 0x14000267b
cmp qword [rbp + 0xf], 8
jb 0x140002637
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
cmp qword [rbp - 0x19], 8
jb 0x140002658
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xa
jmp 0x14000271a
cmp qword [rbp + 0xf], 8
jb 0x14000268c
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
cmp qword [rbp - 0x19], 8
jb 0x1400026ad
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 8
jmp 0x14000271a
cmp qword [rbp + 0xf], 8
jb 0x1400026de
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
cmp qword [rbp - 0x19], 8
jb 0x1400026ff
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400133b0
add rsp, 0xb0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret