Function at 0x1400036e0
Capabilities:
Connect pipe

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov qword [rbp + 0x3f], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
movsxd rax, edx
lea rbx, [rax + rax*4]
shl rbx, 4
add rbx, rcx
xor esi, esi
mov dword [rbx + 0xd8], esi
mov dword [rbx + 0xfc], esi
mov byte [rbx + 0xdc], sil
mov rdi, qword [rbx + 0xe0]
lea rcx, [rdi + 4]
cmp rdi, rcx
je 0x14000373a
sub rcx, rdi
xor eax, eax
rep stosb byte [rdi], al
lea rdx, [rbx + 0xb8]
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x140003833
mov qword [rbp + 0xf], 0xf
mov qword [rbp + 7], rsi
mov byte [rbp - 9], sil
mov r8d, 0x18
lea rdx, str.Error_connecting_to_pipe
lea rcx, [rbp - 9]
call fcn.140002640
nop
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rsi
mov byte [rbp - 0x29], 0
mov r8d, 0xf
lea rdx, str.NamedPipeServer
lea rcx, [rbp - 0x29]
call fcn.140002640
nop
cmp qword [0x140101918], 0
jne 0x1400037e4
mov ecx, 1
call qword [sym.imp.MSVCR110.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
mov qword [rbp + 0x17], rax
test rax, rax
je 0x1400037d5
call fcn.14000c070
test eax, eax
sete byte [0x1401018ec]
jmp 0x1400037d8
mov rdi, rsi
mov qword [0x140101918], rdi
test rdi, rdi
je 0x1400037f8
lea r9, [rbp - 9]
mov r8d, 1
lea rdx, [rbp - 0x29]
call fcn.14000c130
nop
cmp qword [rbp - 0x11], 0x10
jb 0x140003809
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rsi
mov byte [rbp - 0x29], 0
cmp qword [rbp + 0xf], 0x10
jb 0x14000395a
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x14000395a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x217
je 0x140003943
cmp eax, 0x3e5
je 0x140003934
mov qword [rbp + 0xf], 0xf
mov qword [rbp + 7], rsi
mov byte [rbp - 9], sil
mov r8d, 0xf
lea rdx, str.NamedPipeServer
lea rcx, [rbp - 9]
call fcn.140002640
nop
mov edx, edi
lea rcx, [rbp + 0x1f]
call fcn.1400032d0
nop
mov r8, rax
lea rdx, str.Error_connecting_to_pipe:
lea rcx, [rbp - 0x29]
call fcn.140002c80
mov rbx, rax
cmp qword [0x140101918], 0
jne 0x1400038da
mov ecx, 1
call qword [sym.imp.MSVCR110.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
mov qword [rbp + 0x17], rax
test rax, rax
je 0x1400038cb
call fcn.14000c070
test eax, eax
sete byte [0x1401018ec]
jmp 0x1400038ce
mov rdi, rsi
mov qword [0x140101918], rdi
test rdi, rdi
je 0x1400038ed
mov r9, rbx
mov r8d, 1
lea rdx, [rbp - 9]
call fcn.14000c130
nop
cmp qword [rbp - 0x11], 0x10
jb 0x1400038fe
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rsi
mov byte [rbp - 0x29], 0
cmp qword [rbp + 0x37], 0x10
jb 0x14000391f
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x37], 0xf
mov qword [rbp + 0x2f], rsi
mov byte [rbp + 0x1f], 0
jmp 0x140003819
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0xd8], esi
jmp 0x14000395a
mov dword [rbx + 0xd8], 1
mov rcx, qword [rbx + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret