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

Disassembly:
push rdi
sub rsp, 0x110
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov byte [rsp + 0x40], 0
mov rax, qword [0x1400990b8]
mov rdx, qword [rax + 0x80]
lea rcx, [0x140044c10]
call fcn.140001c50
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 [0x1400990b8]
call fcn.140007bf0
xor eax, eax
cmp eax, 1
je 0x140012fb9
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 0x140012f88
lea rdx, str.WaitForProcessesHook::CreateNamedPipeW_n
mov rcx, qword [0x1400990b8]
call fcn.140007bf0
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 0x140012e74
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140012eef
lea rdx, str.WaitForProcessesHook::ConnectNamedPipe_n
mov rcx, qword [0x1400990b8]
call fcn.140007bf0
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetNamedPipeClientProcessId]
test eax, eax
je 0x140012ed6
lea rdx, str.WaitForProcessesHook::GetNamedPipeClientProcessId_n
mov rcx, qword [0x1400990b8]
call fcn.140007bf0
mov ecx, dword [rsp + 0x44]
call fcn.1400167c0
mov byte [rsp + 0x40], 1
mov r8d, dword [rsp + 0x44]
lea rdx, str.SUCCEED_Hooked__ld_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
jmp 0x140012ee2
lea rcx, str.GetNamedPipe_PID_failed_n
call fcn.140013830
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x140012f03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ConnectNamedPipe_failed__ld_n
call fcn.140013830
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x48]
cmp eax, 0x2710
ja 0x140012f22
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x48]
test eax, eax
jae 0x140012f4f
call fcn.140016860
mov dword [rsp + 0x64], eax
call fcn.140016850
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 [0x1400990b8]
call fcn.140008320
jmp 0x140012fb9
call fcn.140016860
test eax, eax
je 0x140012f86
call fcn.140016990
movzx eax, al
test eax, eax
je 0x140012f86
mov byte [rsp + 0x40], 1
call fcn.140016850
mov r8d, eax
lea rdx, str.All_processes_hooked_successfully___d_processes__n
mov rcx, qword [0x1400990b8]
call fcn.140008320
jmp 0x140012fb9
jmp 0x140012fa9
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 [0x1400990b8]
call fcn.140007bf0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140012de2
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov edx, 2
mov rcx, qword [rsp + 0x70]
call fcn.14001b1fc
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x110
pop rdi
ret