Function at 0x14004d250
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x358]
sub rsp, 0x458
mov rax, qword [0x1405c7418]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov r13d, r9d
mov rdi, r8
mov qword [rsp + 0x70], r8
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x78], rcx
mov rax, qword [rbp + 0x3c0]
mov qword [rbp - 0x80], rax
xor esi, esi
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x78], rsi
mov eax, dword [0x1405e3c48]
mov dword [rsp + 0x64], eax
mov qword [rdx], 0xffffffffffffffff
mov qword [rcx], 0xffffffffffffffff
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
movzx ebx, byte [rsp + 0x40]
lea rcx, [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [rsp + 0x54]
add ecx, dword [rsp + 0x50]
mov dword [rsp + 0x60], ecx
mov rax, qword [0x1405e3790]
lea rcx, [rsp + 0x60]
call rax
mov r15d, eax
mov r14d, 1
lock xadd dword [0x1405e3c48], r14d
inc r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r12d, eax
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], si
mov esi, dword [rsp + 0x44]
or esi, 1
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov r8d, dword [rsp + 0x50]
mov edx, eax
lea rcx, str..pipePleskWin32.Pipes._X_X_X_X
call fcn.1400115a0
cmp eax, 0xffffffff
je 0x14004d7ec
movsxd rcx, eax
mov r8, qword [rbp - 0x58]
cmp rcx, r8
ja 0x14004d3a8
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rax, qword [rbp - 0x68]
mov qword [rbp - 0x58], rcx
xor r10d, r10d
mov word [rax + rcx*2], r10w
jmp 0x14004d40d
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14004d3ef
mov qword [rbp - 0x58], rcx
lea r9, [rbp - 0x68]
cmp rdi, 8
cmovae r9, qword [rbp - 0x68]
lea rdi, [r9 + r8*2]
xor r10d, r10d
test rdx, rdx
je 0x14004d3e4
movzx eax, r10w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], r10w
jmp 0x14004d408
xor r10d, r10d
mov word [rsp + 0x20], r10w
mov r9, rdx
movzx r8d, bl
lea rcx, [rbp - 0x68]
call fcn.140003c50
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x58]
inc rdx
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r15d
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov r9d, r12d
lea r8, str..pipePleskWin32.Pipes._X_X_X_X
call fcn.140011600
cmp eax, 0xffffffff
je 0x14004d6c4
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14004d48c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d487
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d876
call fcn.1400ab1c4
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], ax
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], ax
and esi, 0xfffffffe
mov dword [rsp + 0x44], esi
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
setae al
test al, al
je 0x14004d50a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d505
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d87c
call fcn.1400ab1c4
xor esi, esi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], si
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
lea r9d, [rsi + 1]
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
mov rcx, qword [rsp + 0x58]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14004d56c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x58], rdi
cmp rdi, 0xffffffffffffffff
jne 0x14004d591
mov eax, dword [0x1405e3c48]
cmp eax, dword [rsp + 0x64]
je 0x14004d882
mov rdi, qword [rsp + 0x70]
jmp 0x14004d2e4
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
je 0x14004d8f5
mov r14, qword [rbp - 0x80]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14004d639
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x217
je 0x14004d637
cmp eax, 0x3e5
jne 0x14004daa7
mov edx, 0x1388
mov rcx, qword [r14 + 0x18]
call fcn.140048170
mov dword [rsp + 0x68], eax
test eax, 0xffffff7f
je 0x14004d637
lea rcx, [rbp - 0x28]
cmp eax, 0x102
je 0x14004da1b
cmp eax, 0xffffffff
jne 0x14004d74e
jmp 0x14004d98a
xor esi, esi
mov qword [rsp + 0x58], rsi
mov rax, qword [rbp - 0x78]
mov qword [rax], rdi
mov qword [rsp + 0x78], rsi
mov rax, qword [rbp - 0x70]
mov qword [rax], rbx
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14004d691
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d68c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004db34
call fcn.1400ab1c4
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.1400ab7b0
add rsp, 0x458
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [0x140401818]
lea rcx, [rbp + 0x88]
call fcn.140005380
nop
lea rcx, [rbp + 0x1e0]
call fcn.140005740
nop
mov r9d, 0x270
lea r8, [rbp + 0x88]
mov rdx, rax
lea rcx, [rbp + 0x2a0]
call fcn.1400057f0
mov rdi, rax
lea rcx, [rbp + 0x200]
call fcn.140005740
nop
lea r8, [0x140401890]
mov rdx, rax
lea rcx, [rbp + 0x220]
call fcn.1400034a0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x170]
call fcn.1400057c0
lea rdx, [0x1405c2470]
lea rcx, [rbp + 0x170]
call fcn.1400ac6bc
nop
lea rdx, [0x140402058]
call fcn.140005380
nop
lea rcx, [rbp + 0x58]
call fcn.140005740
nop
mov r9d, 0x47
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.1400057f0
mov rbx, rax
lea rcx, [rbp - 0x48]
call fcn.1400083b0
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x48]
lea rdx, str.Unable_to_wait_while_pipe_connected___s_:_Unknown_state__X
lea rcx, [rbp + 0x38]
call fcn.140046ba0
mov rdi, rax
lea rcx, [rbp + 0x18]
call fcn.140005740
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400033e0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.14001d280
lea rdx, [0x1405c2328]
lea rcx, [rbp + 0xd0]
call fcn.1400ac6bc
nop
lea rdx, [0x140401800]
lea rcx, [rbp + 0xa8]
call fcn.140005380
nop
lea rcx, [rbp + 0x240]
call fcn.140005740
nop
mov r9d, 0x25a
lea r8, [rbp + 0xa8]
mov rdx, rax
lea rcx, [rbp + 0x2f0]
call fcn.1400057f0
mov rdi, rax
lea rcx, [rbp + 0x260]
call fcn.140005740
nop
lea r8, [0x140401840]
mov rdx, rax
lea rcx, [rbp + 0x280]
call fcn.1400034a0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x1a8]
call fcn.1400057c0
lea rdx, [0x1405c2470]
lea rcx, [rbp + 0x1a8]
call fcn.1400ac6bc
nop
call fcn.1400b1d8c
nop
call fcn.1400b1d8c
int3
lea rdx, [0x140401e88]
lea rcx, [rbp - 0x28]
call fcn.140005380
nop
lea rcx, [rbp - 8]
call fcn.140005740
nop
mov r9d, gethostbyaddr
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400057f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rbp + 0x18]
call fcn.140005740
nop
lea r8, [0x140401ea8]
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1400034a0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rbx
mov edx, edi
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, [0x140401ed8]
lea rcx, [rbp - 0x28]
call fcn.140005380
nop
lea rcx, [rbp + 0x38]
call fcn.140005740
nop
mov r9d, gethostbyname
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400057f0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x48]
call fcn.1400083b0
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, str.Unable_to_open_pipe___s_
lea rcx, [rbp + 0x18]
call fcn.1400048b0
mov rdi, rax
lea rcx, [rbp - 8]
call fcn.140005740
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400033e0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rsi
mov edx, ebx
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, [0x140401fa8]
call fcn.140005380
nop
lea rcx, [rbp + 0x58]
call fcn.140005740
nop
mov r9d, 0x45
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.1400057f0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x48]
call fcn.1400083b0
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, str.Unable_to_wait_while_pipe_connected___s_
lea rcx, [rbp + 0x38]
call fcn.1400048b0
mov rdi, rax
lea rcx, [rbp + 0x18]
call fcn.140005740
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400033e0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rsi
mov edx, ebx
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, [0x140401f30]
call fcn.140005380
nop
lea rcx, [rbp + 0x58]
call fcn.140005740
nop
mov r9d, 0x43
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.1400057f0
mov rbx, rax
lea rcx, [rbp - 0x48]
call fcn.1400083b0
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, [0x140401f50]
lea rcx, [rbp + 0x38]
call fcn.1400048b0
mov rdi, rax
lea rcx, [rbp + 0x18]
call fcn.140005740
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400033e0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rbx
mov edx, 0x5b4
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, str.RunTime::createAsyncPipe
lea rcx, [rbp - 0x28]
call fcn.140005380
nop
lea rcx, [rbp + 0x58]
call fcn.140005740
nop
mov r9d, 0x4a
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.1400057f0
mov rbx, rax
lea rcx, [rbp - 0x48]
call fcn.1400083b0
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, str.Unable_to_connect_pipe___s_
lea rcx, [rbp + 0x38]
call fcn.1400048b0
mov rdi, rax
lea rcx, [rbp + 0x18]
call fcn.140005740
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400033e0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rbx
mov edx, esi
mov rcx, rax
call fcn.14001f0f0
nop
call fcn.1400b1d8c
int3