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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x52b420]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x19], 0
mov eax, dword [0x52c378]
mov ecx, dword [eax + 0x48]
push ecx
push 0x43b37c
call fcn.00401740
add esp, 8
mov dword [ebp - 0x24], eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
push 1
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
mov eax, dword [ebp - 0x28]
push eax
push 1
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x78]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], 0xc
mov eax, 0x45
mov word [ebp - 0x18], ax
mov ecx, 0x76
mov word [ebp - 0x16], cx
mov edx, 0x65
mov word [ebp - 0x14], dx
mov eax, 0x72
mov word [ebp - 0x12], ax
mov ecx, 0x79
mov word [ebp - 0x10], cx
mov edx, 0x6f
mov word [ebp - 0xe], dx
mov eax, 0x6e
mov word [ebp - 0xc], ax
mov ecx, 0x65
mov word [ebp - 0xa], cx
xor edx, edx
mov word [ebp - 8], dx
mov dword [ebp - 0x64], 0x1f01ff
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x50], 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x28]
push ecx
push 0
lea edx, [ebp - 0x64]
push edx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
push eax
push 0x43b3b4
mov ecx, dword [0x52c378]
push ecx
call fcn.00406560
add esp, 0xc
mov edx, 1
test edx, edx
je 0x40fb78
lea eax, [ebp - 0x3c]
push eax
push 0
push 1
push 1
push 0xff
push 6
push 0x40000003
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x40fb4c
push 0x43b3f0
mov edx, dword [0x52c378]
push edx
call fcn.00406560
add esp, 8
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40fa48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x40fac5
push 0x43b440
mov ecx, dword [0x52c378]
push ecx
call fcn.00406560
add esp, 8
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetNamedPipeClientProcessId]
test eax, eax
je 0x40faac
push 0x43b490
mov ecx, dword [0x52c378]
push ecx
call fcn.00406560
add esp, 8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00412b60
add esp, 4
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x2c]
push eax
push 0x43b3dc
mov ecx, dword [0x52c378]
push ecx
call fcn.00406ae0
add esp, 0xc
jmp 0x40fab9
push 0x43b4f8
call fcn.004102d0
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x40fad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43b514
call fcn.004102d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, 0x2710
ja 0x40faf4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
jmp 0x40fb15
call fcn.00412be0
push eax
call fcn.00412bd0
push eax
push 0x43b568
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0x10
jmp 0x40fb78
call fcn.00412be0
test eax, eax
je 0x40fb4a
call fcn.00412cc0
movzx ecx, al
test ecx, ecx
je 0x40fb4a
mov byte [ebp - 0x19], 1
call fcn.00412bd0
push eax
push 0x43b534
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
jmp 0x40fb78
jmp 0x40fb6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0x43b5b4
mov ecx, dword [0x52c378]
push ecx
call fcn.00406560
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f9d8
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x44], edx
push 2
mov eax, dword [ebp - 0x44]
push eax
call fcn.004169fb
add esp, 8
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416e65
mov esp, ebp
pop ebp
ret