Function at 0x14001dba0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rcx + 0x18], 0
mov rdi, rcx
je 0x14001ddce
mov ecx, 0x78
call fcn.14001e160
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rcx
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x30], rax
test rcx, rcx
je 0x14001dc12
mov edx, 0x78
call fcn.14001e19c
mov rbx, qword [rdi + 0x30]
test rbx, rbx
je 0x14001ddce
cmp qword [rdi + 0x20], 0xf
mov qword [rsp + 0x288], rsi
lea rsi, [rdi + 8]
jbe 0x14001dc35
mov rsi, qword [rsi]
mov rax, qword [rdi + 0x28]
lea rcx, [0x14001de00]
mov qword [rbx + 0x60], rcx
xor r9d, r9d
xor ecx, ecx
mov qword [rbx + 0x68], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x28], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [rbx + 0x28], 0
mov qword [rbx + 0x38], rax
je 0x14001ddba
lea r8, str..pipe_
mov edx, 0x200
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, rsi
lea rcx, [rsp + 0x60]
mov edx, 0x200
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14001ddba
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14001ddb1
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14001ddb1
xor esi, esi
mov dword [rsp + 0x48], 0x18
lea rax, [rsp + 0x48]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], esi
mov edx, 0x40000003
lea r9d, [rsi + 1]
mov dword [rsp + 0x28], 0x1fa0
lea r8d, [rsi + 6]
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x20], 0x1fa0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rcx, rdi
mov qword [rbx + 0x20], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14001ddba
mov rax, qword [rbx + 0x28]
mov rdx, rbx
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14001dd6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001ddba
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x28], rax
lea r8, [0x14001de20]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [rsp + 0x40]
mov qword [rbx + 0x30], rax
mov dword [rbx + 0x40], ecx
test rax, rax
je 0x14001ddba
mov rsi, qword [rsp + 0x288]
mov al, 1
jmp 0x14001ddd0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call fcn.14001dfc0
mov rsi, qword [rsp + 0x288]
xor al, al
jmp 0x14001ddd0
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001e140
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret