Function at 0x140002960
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov r13, rcx
mov rbx, qword [rcx + 0x80]
mov qword [rsp + 0xa0], rbx
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
test rdi, rdi
je 0x140002b91
mov rdx, qword [r13 + 0x28]
mov rcx, qword [r13 + 0x20]
mov rax, rdx
sub rax, rcx
sar rax, 3
cmp rax, 0x3d
jae 0x140002b91
cmp rcx, rdx
je 0x1400029d9
cmp qword [rcx], rdi
je 0x140002b91
add rcx, 8
cmp rcx, rdx
jne 0x1400029c7
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140002b7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea r14d, [rsi + 1]
cmp eax, 0x217
je 0x140002ac4
cmp eax, 0x3e5
jne 0x140002b7d
mov rbp, qword [rdi + 0x18]
lea rdx, [r13 + 0x10]
mov r12, qword [rdx]
mov rax, qword [r12 + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], esi
mov rcx, r12
cmp byte [rax + 0x19], sil
jne 0x140002a59
mov qword [rsp + 0x30], rax
cmp qword [rax + 0x20], rbp
jae 0x140002a48
mov dword [rsp + 0x38], esi
mov rax, qword [rax + 0x10]
jmp 0x140002a53
mov dword [rsp + 0x38], r14d
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], sil
je 0x140002a33
cmp byte [rcx + 0x19], sil
jne 0x140002a65
cmp rbp, qword [rcx + 0x20]
jae 0x140002ad2
movabs rax, 0x555555555555555
cmp qword [rdx + 8], rax
je 0x140002bba
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rsi
mov ecx, 0x30
call fcn.1400243ec
nop
mov qword [rax + 0x20], rbp
mov dword [rax + 0x28], r14d
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x20], xmm0
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [r13 + 0x10]
call fcn.140003a00
jmp 0x140002ad2
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rdi + 0x20]
mov r8, qword [rax + 0x18]
mov qword [rsp + 0x20], r8
mov dword [rsp + 0x28], 3
lea rcx, [r13 + 0x50]
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
cmp rax, rdx
je 0x140002b0b
cmp qword [rax], r8
jne 0x140002b02
cmp dword [rax + 8], 3
je 0x140002b30
add rax, 0x10
cmp rax, rdx
jne 0x140002af7
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
cmp rdx, qword [rcx + 0x10]
je 0x140002b26
movups xmmword [rdx], xmm0
add qword [rcx + 8], 0x10
jmp 0x140002b30
lea r8, [rsp + 0x20]
call fcn.1400037f0
mov qword [rdi + 0x4030], r13
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x90], rax
lea rcx, [r13 + 0x68]
lea rdx, [rsp + 0x90]
call fcn.140002de0
mov dword [rax], esi
mov rdx, qword [r13 + 0x28]
cmp rdx, qword [r13 + 0x30]
je 0x140002b6a
mov qword [rdx], rdi
add qword [r13 + 0x28], 8
jmp 0x140002b96
lea r8, [rsp + 0x98]
lea rcx, [r13 + 0x20]
call fcn.1400035f0
jmp 0x140002b96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_connect_to_pipe:__d._n
call fcn.140001640
xor esi, esi
mov r14d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, r14d
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001ec0
nop