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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x516c24]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x19], 0
mov eax, dword [0x517b78]
mov ecx, dword [eax + 0x48]
push ecx
push 0x43a5f4
call fcn.00401b80
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 0x43a62c
mov ecx, dword [0x517b78]
push ecx
call fcn.00406740
add esp, 0xc
mov edx, 1
test edx, edx
je 0x40fbb8
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 0x40fb8c
push 0x43a658
mov edx, dword [0x517b78]
push edx
call fcn.00406740
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 0x40fa88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x40fb05
push 0x43a6a8
mov ecx, dword [0x517b78]
push ecx
call fcn.00406740
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 0x40faec
push 0x43a6f8
mov ecx, dword [0x517b78]
push ecx
call fcn.00406740
add esp, 8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00412b20
add esp, 4
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x2c]
push eax
push 0x43a760
mov ecx, dword [0x517b78]
push ecx
call fcn.00406cc0
add esp, 0xc
jmp 0x40faf9
push 0x43a774
call fcn.00410290
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x40fb19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43a790
call fcn.00410290
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, 0x2710
ja 0x40fb34
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
jmp 0x40fb55
call fcn.00412ba0
push eax
call fcn.00412b90
push eax
push 0x43a7b0
mov eax, dword [0x517b78]
push eax
call fcn.00406cc0
add esp, 0x10
jmp 0x40fbb8
call fcn.00412ba0
test eax, eax
je 0x40fb8a
call fcn.00412c80
movzx ecx, al
test ecx, ecx
je 0x40fb8a
mov byte [ebp - 0x19], 1
call fcn.00412b90
push eax
push 0x43a7fc
mov edx, dword [0x517b78]
push edx
call fcn.00406cc0
add esp, 0xc
jmp 0x40fbb8
jmp 0x40fbab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0x43a830
mov ecx, dword [0x517b78]
push ecx
call fcn.00406740
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40fa18
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x44], edx
push 2
mov eax, dword [ebp - 0x44]
push eax
call fcn.00416898
add esp, 8
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416d02
mov esp, ebp
pop ebp
ret