Function at 0x402a0f
Capabilities:
Check for time delay via gettickcount
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Get file size
Read file on windows
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
call fcn.00401014
sub esp, 0x70
mov ebx, esp
mov dword [ebx], 0xc
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
push 0
push ebx
lea edx, [ebx + 0xc]
push edx
lea ecx, [ebx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x402cb7
push 0
push ebx
lea edx, [ebx + 0x14]
push edx
lea ecx, [ebx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x402ca5
lea edi, [ebx + 0x1c]
mov ecx, 0x44
xor al, al
rep stosb byte es:[edi], al
lea edi, [ebx + 0x1c]
mov dword [edi], 0x44
mov ecx, dword [ebx + 0x18]
mov dword [edi + 0x38], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], ecx
mov dword [edi + 0x2c], 0x101
lea esi, [ebx + 0x60]
push esi
push edi
push 0
push dword [ebp + 0x14]
push 0
push 1
push ebx
push ebx
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x402c93
mov edx, dword [ebp + 0x24]
or dword [edx], 0x480
test dword [edx], 0x100
je 0x402ac4
xor dword [edx], 0x100
mov edx, dword [ebp + 0x20]
mov ecx, dword [edx + 0x20]
jecxz 0x402ae3
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0x1c]
lea edx, [ebx + 0x1c]
push 0
push edx
push ecx
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 0x18]
mov ecx, eax
push eax
call fcn.004010aa
mov edi, eax
sub ecx, 4
mov dword [edi], ecx
add edi, 4
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebx + 0x24], eax
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x402b24
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [ebp + 0x1c]
sub eax, dword [ebx + 0x24]
cmp eax, edx
ja 0x402c6f
mov edx, dword [ebp + 0x20]
mov edx, dword [edx]
mov edx, dword [edx + 4]
cmp dword [edx], 0x54534f50
jne 0x402b6c
push dword [edi - 4]
push esp
push edi
push 0x64
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x402d19]
test eax, eax
je 0x402b56
cmp eax, 3
jbe 0x402c6f
pop eax
test eax, eax
je 0x402b6c
lea ecx, [ebx + 0x1c]
push 0
push ecx
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
jne 0x402b9b
lea ecx, [ebx + 0x1c]
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x103
je 0x402b01
jmp 0x402c79
cmp dword [edi - 4], eax
jae 0x402ba3
mov eax, dword [edi - 4]
lea ecx, [ebx + 0x1c]
push 0
push ecx
push eax
push edi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp + 0x24], 0
je 0x402c4e
mov dword [ebx + 0x20], 0
mov ecx, dword [ebx + 0x1c]
mov edx, edi
mov eax, edi
cmp ecx, 4
jb 0x402c29
cmp dword [edx], 0xa0d0a0d
je 0x402c29
cmp byte [edx], 0x3a
jne 0x402c26
mov byte [edx], 0
push eax
mov eax, edx
cmp ecx, 2
jb 0x402bf3
cmp word [edx], 0xa0d
je 0x402bf8
inc edx
loop 0x402be4
add esp, 4
jmp 0x402c29
xchg dword [esp], eax
push eax
call fcn.004026ba
cmp eax, 0x45af5dad
pop eax
mov byte [eax], 0x3a
jne 0x402c21
inc eax
cmp byte [eax], 0x20
jne 0x402c13
inc eax
mov byte [edx], 0
mov dword [ebx + 0x20], edx
mov edx, dword [ebp + 0x24]
mov dword [edx + 8], eax
jmp 0x402c29
mov eax, edx
add eax, 2
inc edx
loop 0x402bcc
push 0x1388
push dword [ebp + 0x24]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x402d95]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x402c47
mov byte [eax], 0xd
mov dword [ebp + 0x24], 0
lea eax, [ebx + 0x1c]
push eax
push edi
push 0x1388
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [fcn.00402d1d]
test eax, eax
jne 0x402c6f
jmp 0x402b01
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
lea ecx, [edi - 4]
push ecx
call fcn.004010ca
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00401022
ret 0x20