Function at 0x14005e530
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x360], rbx
mov rax, qword [0x1401bee90]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, rdx
mov qword [rbp - 0x68], rdx
mov rsi, rcx
mov qword [rbp - 0x78], rcx
xor edi, edi
mov qword [rsp + 0x60], rdi
xor eax, eax
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jns 0x14005e5dd
lea rax, str.Failure_to_set_pipe_name_0
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400cfd38
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1401893b8]
lea rcx, [rsp + 0x40]
call fcn.1400d4788
int3
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x10], xmm0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
call fcn.14005e3e0
nop
lea r8, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.1400609e0
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
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 r13, rax
mov qword [rbp - 0x70], rax
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x14005e698
lea rax, str.Failure_to_create_pipes_0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400cfd38
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1401893b8]
lea rcx, [rsp + 0x40]
call fcn.1400d4788
int3
mov qword [rbp - 0x58], rdi
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r12, rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x14005e711
lea rax, str.Failure_to_create_pipes_1
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400cfd38
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1401893b8]
lea rcx, [rsp + 0x40]
call fcn.1400d4788
int3
lea rdx, [rbp - 0x58]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14005eaf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14005eaf1
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov qword [rsp + 0x30], rdi
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 r15, rax
mov qword [rsp + 0x60], rax
mov rdi, rax
mov qword [rsp + 0x58], rax
mov r11d, dword [0x1401c6d80]
mov ecx, r11d
imul ecx, r11d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 5
jne 0x14005e834
xor r10d, r10d
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x7c], eax
mov eax, 0x55555556
imul r11d
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [rsp + 0x7c], eax
mov eax, r11d
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0x2aaaaaab
imul r11d
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [rbp - 0x80], ecx
lea r9, [rbp + 0x21]
movzx r8d, r11b
sub r8b, r10b
mov esi, 1
mov r14d, 6
inc esi
add r9, 6
dec r14
jne 0x14005e803
inc r10d
cmp r10d, 0xd
jl 0x14005e7f1
mov r13, qword [rbp - 0x70]
mov rbx, r13
mov rdi, qword [rsp + 0x58]
mov r12, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x78]
mov r14, qword [rbp - 0x68]
mov r15, qword [rsp + 0x60]
test r15, r15
jne 0x14005e87f
lea rax, str.Failure_to_create_pipes_3
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400cfd38
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1401893b8]
lea rcx, [rsp + 0x40]
call fcn.1400d4788
int3
mov edx, 0x7d0
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14005e8d8
lea rax, str.Failure_to_create_pipes_4
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400cfd38
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1401893b8]
lea rcx, [rsp + 0x40]
call fcn.1400d4788
int3
lea rax, [rsp + 0x58]
cmp rsi, rax
je 0x14005e8f9
xor edi, edi
mov qword [rsp + 0x58], rdi
cmp r15, qword [rsi]
je 0x14005e8f9
mov rcx, rsi
call fcn.14005d310
mov qword [rsi], r15
mov ecx, dword [0x1401c6d80]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 0x11
jne 0x14005e96f
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub ecx, edx
add ecx, 0x2f4
movsxd rdx, ecx
mov eax, 4
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400cbef8
mov rcx, rax
call fcn.1400cd9ec
mov ecx, dword [0x1401c6d80]
lea rax, [rsp + 0x70]
xor esi, esi
cmp r14, rax
je 0x14005e998
mov ebx, esi
mov qword [rsp + 0x70], rbx
cmp r13, qword [r14]
je 0x14005e998
mov rcx, r14
call fcn.14005d310
mov qword [r14], r13
mov ecx, dword [0x1401c6d80]
test rdi, rdi
je 0x14005e9f6
lea r9d, [rcx + 1]
mov r8d, r9d
imul r8d, ecx
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub r8d, eax
cmp r8d, 8
jne 0x14005e9e1
test ecx, ecx
je 0x14005e9d6
dec ecx
je 0x14005e9d2
mov ecx, r9d
jmp 0x14005e9db
mov ecx, esi
jmp 0x14005e9db
mov ecx, 2
mov dword [0x1401c6d80], ecx
cmp rdi, 0xffffffffffffffff
je 0x14005e9f6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1401c6d80]
lea r9d, [rcx + 1]
mov r8d, r9d
imul r8d, ecx
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub r8d, eax
cmp r8d, 8
jne 0x14005ea3a
test ecx, ecx
je 0x14005ea2f
dec ecx
je 0x14005ea2b
mov ecx, r9d
jmp 0x14005ea34
mov ecx, esi
jmp 0x14005ea34
mov ecx, 2
mov dword [0x1401c6d80], ecx
cmp r12, 0xffffffffffffffff
je 0x14005ea4f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1401c6d80]
test rbx, rbx
je 0x14005eaaf
lea r9d, [rcx + 1]
mov r8d, r9d
imul r8d, ecx
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub r8d, eax
cmp r8d, 8
jne 0x14005ea9f
test ecx, ecx
je 0x14005ea95
dec ecx
je 0x14005ea8d
mov dword [0x1401c6d80], r9d
jmp 0x14005ea9f
mov dword [0x1401c6d80], esi
jmp 0x14005ea9f
mov dword [0x1401c6d80], 2
cmp rbx, 0xffffffffffffffff
je 0x14005eaaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x18], 8
jb 0x14005eabf
mov rcx, qword [rbp - 0x30]
call fcn.1400cc890
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp + 8], 8
jb 0x14005eadf
mov rcx, qword [rbp - 0x10]
call fcn.1400cc890
mov qword [rbp + 8], 7
mov qword [rbp], rsi
mov word [rbp - 0x10], si
jmp 0x14005eb37
lea rax, str.Failure_to_create_pipes_2
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400cfd38
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1401893b8]
lea rcx, [rsp + 0x40]
call fcn.1400d4788
nop
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400cc8b0
mov rbx, qword [rsp + 0x360]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret