Function at 0x140055010
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 - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x70], rbx
xor eax, eax
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jns 0x1400550af
lea rax, str.Failure_to_set_pipe_name_0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400c5c98
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x48], rax
lea rdx, [0x14016cbd0]
lea rcx, [rsp + 0x48]
call fcn.1400ca6e8
int3
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.140054ec0
nop
lea r8, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.1400571b0
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 0x2000
mov r9d, 1
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r12, rax
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140055166
lea rax, str.Failure_to_create_pipes_0
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400c5c98
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x48], rax
lea rdx, [0x14016cbd0]
lea rcx, [rsp + 0x48]
call fcn.1400ca6e8
int3
mov qword [rbp - 0x80], rbx
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r13, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x1400551e0
lea rax, str.Failure_to_create_pipes_1
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400c5c98
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x48], rax
lea rdx, [0x14016cbd0]
lea rcx, [rsp + 0x48]
call fcn.1400ca6e8
int3
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400554e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400554e9
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
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 r14, rax
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140055290
lea rax, str.Failure_to_create_pipes_3
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400c5c98
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x48], rax
lea rdx, [0x14016cbd0]
lea rcx, [rsp + 0x48]
call fcn.1400ca6e8
int3
mov edx, 0x7d0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400552e9
lea rax, str.Failure_to_create_pipes_4
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400c5c98
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x48], rax
lea rdx, [0x14016cbd0]
lea rcx, [rsp + 0x48]
call fcn.1400ca6e8
int3
lea rax, [rsp + 0x60]
cmp r15, rax
je 0x14005530f
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov rdx, qword [r15]
cmp r14, rdx
je 0x14005530f
test rdx, rdx
je 0x14005530c
call fcn.140049080
mov qword [r15], r14
lea rax, [rsp + 0x68]
xor r14d, r14d
cmp rsi, rax
je 0x140055339
mov edi, r14d
mov qword [rsp + 0x68], r14
mov rdx, qword [rsi]
cmp r12, rdx
je 0x140055339
test rdx, rdx
je 0x140055336
call fcn.140049080
mov qword [rsi], r12
movabs r15, 0x4b654c3735514d
or rsi, 0xffffffffffffffff
mov r8d, dword [0x1401a9d80]
test rbx, rbx
je 0x1400553c5
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xd
jne 0x1400553af
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov rcx, rsi
inc rcx
cmp byte [rax + rcx], 0
jne 0x140055383
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400c1e58
mov rcx, rax
call fcn.1400c2f38
mov r8d, dword [0x1401a9d80]
cmp rbx, 0xffffffffffffffff
je 0x1400553c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401a9d80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xd
jne 0x140055421
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov rcx, rsi
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400553f5
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400c1e58
mov rcx, rax
call fcn.1400c2f38
mov r8d, dword [0x1401a9d80]
cmp r13, 0xffffffffffffffff
je 0x140055437
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401a9d80]
test rdi, rdi
je 0x1400554a5
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xd
jne 0x140055495
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140055470
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400c1e58
mov rcx, rax
call fcn.1400c2f38
cmp rdi, 0xffffffffffffffff
je 0x1400554a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x40], 8
jb 0x1400554b5
mov rcx, qword [rbp - 0x58]
call fcn.1400c27f0
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r14
mov word [rbp - 0x58], r14w
cmp qword [rbp - 0x20], 8
jb 0x1400554d6
mov rcx, qword [rbp - 0x38]
call fcn.1400c27f0
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r14
mov word [rbp - 0x38], r14w
jmp 0x14005552f
lea rax, str.Failure_to_create_pipes_2
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400c5c98
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x48], rax
lea rdx, [0x14016cbd0]
lea rcx, [rsp + 0x48]
call fcn.1400ca6e8
nop
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400c2810
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret