Function at 0x140015c90
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x378]
sub rsp, 0x470
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rbx, rcx
cmp qword [rcx], 0
je 0x140015cd6
xor edx, edx
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
int3
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1311]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140015b94
lea rdx, str.D:_A__GRGW___BA__A__GRGW___SY_
lea rcx, [rbp - 0x50]
call fcn.14000cae8
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14001329c
cmp qword [rbp - 0x60], 0
jne 0x140015d4e
and qword [rbp - 0x78], 0
mov r14d, 0x1000
mov rax, qword [rbp - 0x38]
cmp rax, 8
jb 0x140015d7d
mov rcx, qword [rbp - 0x50]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, r14
jb 0x140015d77
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140015d77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
xor r9d, r9d
lea r8, [rbp - 0x78]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140015f27
jmp 0x140015d12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsp + 0x50], 0x18
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x58], rax
and dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], r14d
and dword [rsp + 0x20], 0
mov edx, 0x40080001
mov r9d, 1
lea r8d, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140015de6
and qword [rbx], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
cmp rdi, 0xffffffffffffffff
je 0x140015e43
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140016070
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140015e86
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140015e86
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140015e3a
and qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
lea rcx, [rbp - 0x78]
call fcn.140015b04
mov rax, qword [rbp - 0x80]
cmp rax, 8
jb 0x140015e82
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x68]
cmp rax, r14
mov rdx, rcx
jb 0x140015e7c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x140015ef0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor al, al
jmp 0x140015eff
lea rcx, [rsp + 0x40]
call fcn.140016134
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140015eb7
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140015eae
and qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
lea rcx, [rbp - 0x78]
call fcn.140015b04
mov rax, qword [rbp - 0x80]
cmp rax, 8
jb 0x140015efd
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, r14
jb 0x140015ef7
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140015ef7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140017980
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
call fcn.140015f68
lea rdx, [0x14001f338]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3