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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rcx + 0x18], 0
mov rdi, rcx
je 0x14001fcae
mov ecx, 0x78
call fcn.140020074
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 0x14001faf2
mov edx, 0x78
call fcn.140020040
mov rbx, qword [rdi + 0x30]
test rbx, rbx
je 0x14001fcae
mov rax, qword [rdi + 0x28]
add rdi, 8
cmp qword [rdi + 0x18], 0xf
jbe 0x14001fb11
mov rdi, qword [rdi]
lea rcx, [0x14001fce0]
mov qword [rsp + 0x288], rsi
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 0x14001fc9a
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, rdi
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 0x14001fc9a
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14001fc91
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14001fc91
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 0x14001fc9a
mov rax, qword [rbx + 0x28]
mov rdx, rbx
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14001fc4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001fc9a
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x28], rax
lea r8, [0x14001fd00]
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 0x14001fc9a
mov rsi, qword [rsp + 0x288]
mov al, 1
jmp 0x14001fcb0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call fcn.14001fea0
mov rsi, qword [rsp + 0x288]
xor al, al
jmp 0x14001fcb0
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140020020
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret