Function at 0x140012b00
Capabilities:
Check for time delay via gettickcount
Connect pipe
Create pipe

Disassembly:
push rdi
sub rsp, 0x110
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov byte [rsp + 0x40], 0
mov rax, qword [0x1400a4eb8]
mov rdx, qword [rax + 0x80]
lea rcx, [0x140047970]
call fcn.140001800
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov edx, 1
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov edx, 1
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [rsp + 0x88], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x78], 0x18
mov eax, 0x45
mov word [rsp + 0xe8], ax
mov eax, 0x76
mov word [rsp + 0xea], ax
mov eax, 0x65
mov word [rsp + 0xec], ax
mov eax, 0x72
mov word [rsp + 0xee], ax
mov eax, 0x79
mov word [rsp + 0xf0], ax
mov eax, 0x6f
mov word [rsp + 0xf2], ax
mov eax, 0x6e
mov word [rsp + 0xf4], ax
mov eax, 0x65
mov word [rsp + 0xf6], ax
xor eax, eax
mov word [rsp + 0xf8], ax
mov dword [rsp + 0x90], 0x1f01ff
mov dword [rsp + 0x94], 1
mov dword [rsp + 0xac], 1
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xb8], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov ecx, 1
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x48], eax
mov r8, qword [rsp + 0x58]
lea rdx, str.Creating_a_pipe__s_n
mov rcx, qword [0x1400a4eb8]
call fcn.140007a40
xor eax, eax
cmp eax, 1
je 0x140012e89
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9d, 0xff
mov r8d, 6
mov edx, 0x40000003
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140012e58
lea rdx, str.WaitForProcessesHook::CreateNamedPipeW_n
mov rcx, qword [0x1400a4eb8]
call fcn.140007a40
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x140012d44
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140012dbf
lea rdx, str.WaitForProcessesHook::ConnectNamedPipe_n
mov rcx, qword [0x1400a4eb8]
call fcn.140007a40
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetNamedPipeClientProcessId]
test eax, eax
je 0x140012da6
lea rdx, str.WaitForProcessesHook::GetNamedPipeClientProcessId_n
mov rcx, qword [0x1400a4eb8]
call fcn.140007a40
mov ecx, dword [rsp + 0x44]
call fcn.140016710
mov byte [rsp + 0x40], 1
mov r8d, dword [rsp + 0x44]
lea rdx, str.SUCCEED_Hooked__ld_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012db2
lea rcx, str.GetNamedPipe_PID_failed_n
call fcn.140013780
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x140012dd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ConnectNamedPipe_failed__ld_n
call fcn.140013780
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x48]
cmp eax, 0x2710
ja 0x140012df2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x48]
test eax, eax
jae 0x140012e1f
call fcn.1400167b0
mov dword [rsp + 0x64], eax
call fcn.1400167a0
mov ecx, dword [rsp + 0x64]
mov r9d, ecx
mov r8d, eax
lea rdx, str.Timeout_10_secs__could_not_hook_successfully_all_processes___d_out_of__d__n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012e89
call fcn.1400167b0
test eax, eax
je 0x140012e56
call fcn.1400168e0
movzx eax, al
test eax, eax
je 0x140012e56
mov byte [rsp + 0x40], 1
call fcn.1400167a0
mov r8d, eax
lea rdx, str.All_processes_hooked_successfully___d_processes__n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140012e89
jmp 0x140012e79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x58]
lea rdx, str.Cant_create_pipe__s__d
mov rcx, qword [0x1400a4eb8]
call fcn.140007a40
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140012cb2
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov edx, 2
mov rcx, qword [rsp + 0x70]
call fcn.14001b290
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x110
pop rdi
ret