Function at 0x140001990
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.140006ef0
sub rsp, rax
mov rax, qword [0x14000d0f8]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov r15, rdx
mov r14, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1400019dd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400019ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x1400019fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, 0xffffffffffffffff
mov qword [r14 + 8], rsi
mov qword [r14], rsi
xor r12d, r12d
mov qword [r14 + 0x10], r12
mov dword [rsp + 0x40], 0x18
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
lea r8d, [rsi + 0xa]
lea rdx, str..pipe_
lea rcx, [rsp + 0x58]
call fcn.140002520
nop
nop
inc rsi
cmp word [r15 + rsi*2], 0
jne 0x140001a60
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140001aaf
lea rdi, [rcx + rsi]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rcx*2]
lea r8, [rsi + rsi]
mov rdx, r15
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x140001ac7
mov qword [rsp + 0x20], rsi
mov r9, r15
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140001380
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov rsi, qword [rsp + 0x68]
lea rdi, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdi, qword [rsp + 0x58]
movabs r15, 0x7ffffffffffffffe
cmp rsi, 8
jae 0x140001b0a
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x50], 7
jmp 0x140001b40
mov rbx, rsi
or rbx, 7
cmp rbx, r15
cmova rbx, r15
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x68]
call fcn.1400024b0
mov qword [rbp - 0x68], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], rsi
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x140001b8a
lea rdi, [rcx + 0xb]
mov qword [rbp - 0x58], rdi
lea rbx, [rbp - 0x68]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x68]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, str.serverToMax
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x140001baa
mov qword [rsp + 0x20], 0xb
lea r9, str.serverToMax
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rbp - 0x68]
call fcn.140001380
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov rsi, qword [rsp + 0x68]
lea rdi, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdi, qword [rsp + 0x58]
cmp rsi, 8
jae 0x140001be5
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x70], 7
jmp 0x140001c1d
mov rbx, rsi
or rbx, 7
cmp rbx, r15
cmova rbx, r15
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x78]
call fcn.1400024b0
mov qword [rsp + 0x78], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x78], rsi
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x140001c69
lea rdi, [rcx + 0xb]
mov qword [rbp - 0x78], rdi
lea rbx, [rsp + 0x78]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x78]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, str.maxToServer
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x140001c8a
mov qword [rsp + 0x20], 0xb
lea r9, str.maxToServer
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x78]
call fcn.140001380
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x3a98
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov edx, 2
mov r9d, 0xff
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x140001dc8
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x3a98
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov edx, 1
mov r9d, 0xff
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140001dc8
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
mov edx, 0x800
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str._mutex
mov edx, 0x800
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
movzx eax, word [rbp - 0x40]
test ax, ax
je 0x140001dad
mov rdx, r12
lea rcx, [rbp - 0x40]
mov r8d, 0x5f
nop
cmp ax, 0x5c
jne 0x140001d9a
mov word [rcx], r8w
inc rdx
lea rcx, [rbp - 0x40]
lea rcx, [rcx + rdx*2]
movzx eax, word [rcx]
test ax, ax
jne 0x140001d90
lea r8, [rbp - 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [r14 + 0x10], rax
test rax, rax
je 0x140001dc8
mov bl, 1
jmp 0x140001dcf
call fcn.140005160
xor bl, bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140001e13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006dd0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140001e68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006dd0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001ebe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001eb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001eb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006dd0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
movzx eax, bl
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.140006f50
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret