Function at 0x1400655c0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rbp], rax
mov r15, rdx
mov r12, rcx
lea rcx, [rsp + 0x70]
call fcn.140065500
mov r8, qword [rax]
mov qword [rbp - 0x10], r8
mov rax, qword [rax + 8]
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.140065200
nop
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.1400681e0
nop
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 0x2000
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r14, rax
mov rdi, rax
mov qword [rsp + 0x68], rax
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [rdx + rdx*2]
add eax, eax
sub r8d, eax
cmp r8d, 1
jne 0x1400656b7
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test r14, r14
jne 0x140065702
lea rax, str.Failure_to_create_pipes_0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400d8288
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x70], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x70], rax
lea rdx, [0x140199930]
lea rcx, [rsp + 0x70]
call fcn.1400dccd8
int3
mov qword [rbp - 0x78], rbx
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x14006577c
lea rax, str.Failure_to_create_pipes_1
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400d8288
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140199930]
lea rcx, [rsp + 0x50]
call fcn.1400dccd8
int3
lea rdx, [rbp - 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140065ab4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140065ab4
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
mov rbx, rax
mov qword [rsp + 0x40], rax
mov r9d, dword [0x1401d6d80]
lea r8d, [r9 + 2]
lea ecx, [r9 + 1]
imul r8d, ecx
imul r8d, r9d
mov eax, 0xb21642c9
imul r8d
add edx, r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub r8d, edx
cmp r8d, 0xb
jne 0x14006585b
mov eax, 0x51eb851f
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r9d, edx
add r9d, 0x7b
movsxd rcx, r9d
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
test r13, r13
jne 0x1400658a6
lea rax, str.Failure_to_create_pipes_3
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400d8288
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140199930]
lea rcx, [rsp + 0x50]
call fcn.1400dccd8
int3
mov edx, 0x7d0
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400658ff
lea rax, str.Failure_to_create_pipes_4
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400d8288
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140199930]
lea rcx, [rsp + 0x50]
call fcn.1400dccd8
int3
lea rax, [rsp + 0x40]
cmp r12, rax
je 0x140065922
xor ebx, ebx
mov qword [rsp + 0x40], rbx
cmp r13, qword [r12]
je 0x140065922
mov rcx, r12
call fcn.140064100
mov qword [r12], r13
lea rax, [rsp + 0x68]
xor r12d, r12d
cmp r15, rax
je 0x140065947
mov edi, r12d
mov qword [rsp + 0x68], r12
cmp r14, qword [r15]
je 0x140065947
mov rcx, r15
call fcn.140064100
mov qword [r15], r14
call fcn.140064e60
nop
mov r8d, dword [0x1401d6d80]
test rbx, rbx
je 0x1400659b7
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 2
jne 0x1400659a1
mov edx, 0x9c
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400d5714
mov r8d, dword [0x1401d6d80]
cmp rbx, 0xffffffffffffffff
je 0x1400659b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401d6d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 2
jne 0x1400659ff
mov edx, 0x9c
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400d5714
mov r8d, dword [0x1401d6d80]
cmp rsi, 0xffffffffffffffff
je 0x140065a15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401d6d80]
test rdi, rdi
je 0x140065a70
lea r9d, [r8 + 2]
lea ecx, [r8 + 1]
imul r9d, ecx
imul r9d, r8d
mov eax, 0x92492493
imul r9d
add edx, r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r9d, edx
cmp r9d, 2
jne 0x140065a60
mov edx, 0x9c
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400d5714
cmp rdi, 0xffffffffffffffff
je 0x140065a70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x38], 8
jb 0x140065a80
mov rcx, qword [rbp - 0x50]
call fcn.1400d4de0
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
cmp qword [rbp - 0x18], 8
jb 0x140065aa1
mov rcx, qword [rbp - 0x30]
call fcn.1400d4de0
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
jmp 0x140065afa
lea rax, str.Failure_to_create_pipes_2
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400d8288
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140199930]
lea rcx, [rsp + 0x50]
call fcn.1400dccd8
nop
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400d4e00
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret