Function at 0x14001ca90
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x580
mov rax, qword [0x1400a6fa0]
xor rax, rsp
mov qword [rsp + 0x570], rax
mov qword [rsp + 0x38], 0
mov edx, 3
mov rdi, rcx
mov dword [rsp + 0x30], 0
lea r8d, [rdx + 3]
mov r9d, 0xff
add rcx, 0x10
mov dword [rsp + 0x28], 0x2800
mov dword [rsp + 0x20], 0x2800
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8d, 0x28c
mov esi, eax
call fcn.140051b60
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0xd4]
mov r8d, 0x104
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp qword [rdi + 8], 0
je 0x14001cb4d
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0xd0]
mov rax, qword [rcx]
call qword [rax]
mov r8d, esi
lea rcx, [rsp + 0x360]
cmp rbp, 0xffffffffffffffff
jne 0x14001cb7c
lea rdx, str.freeker__CThreadPipeListen::Execute__Create_Pipe_failed___d_n
call fcn.1400016a0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
jmp 0x14001ccf6
lea rdx, str.freeker__CThreadPipeListen::Execute__Create_Pipe_success___d_n
call fcn.1400016a0
lea r8, str.GlobalEVENT_EXCHANGE_LISTEN_PIPE_CREATED
xor edx, edx
mov ecx, 0x1f0003
mov qword [rdi + 0x220], rbp
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14001cbd3
lea rdx, str.freeker__CThreadPipeListen::Execute__OpenEvent_for_the_old__ok__notify_to_client_now_n
lea rcx, [rsp + 0x360]
call fcn.1400016a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001cbf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.freeker__CThreadPipeListen::Execute__OpenEvent_for_the_old__failed__cannt_notiry_to_client__err0x_x_n
lea rcx, [rsp + 0x360]
mov r8d, eax
call fcn.1400016a0
lea r8, [0x14008ae00]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14001cc34
lea rdx, str.freeker__CThreadPipeListen::Execute__OpenEvent_EVENT_LISTEN_PIPE_PREPARED__ok__notify_to_init_n
lea rcx, [rsp + 0x360]
call fcn.1400016a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001cc51
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.freeker__CThreadPipeListen::Execute__OpenEvent_EVENT_LISTEN_PIPE_PREPARED__failed__cannt_notiry_to_init__err0x_x_n
lea rcx, [rsp + 0x360]
mov r8d, eax
call fcn.1400016a0
mov rcx, qword [rdi + 0x220]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rdi - 0x18], 0
mov ebx, eax
jne 0x14001ccf6
test esi, esi
jne 0x14001ccb8
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
jne 0x14001ccb8
mov rcx, qword [rdi + 0x220]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rdi + 0x220]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1f4
mov qword [rdi + 0x220], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001ccf4
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x8c
call fcn.140051b60
cmp qword [rdi + 8], 0
mov rax, qword [rdi + 0x220]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 0
je 0x14001ccf4
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.14004e770
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret