Function at 0x45c048
Capabilities:
Check for time delay via gettickcount
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ae0
mov eax, dword [ebp - 8]
call fcn.00405410
xor eax, eax
push ebp
push 0x45c46c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
call sub.KERNEL32.DLL_GetTickCount
mov esi, eax
mov ebx, esi
mov eax, dword [ebp + 0xc]
call fcn.00404f70
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 4]
call fcn.004051f0
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.00456140
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
call fcn.00405844
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x38]
call fcn.0045ae2c
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.0040597c
je 0x45c125
mov eax, dword [ebp - 0x38]
call fcn.00405864
mov edx, eax
dec edx
lea eax, [ebp - 0x38]
call fcn.00405a9c
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x3c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
je 0x45c410
xor eax, eax
push ebp
push 0x45c409
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x34], 0x100000
mov eax, dword [ebp - 0x34]
inc eax
call fcn.00402a58
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45c3e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x44
call fcn.00403540
mov dword [ebp - 0x88], 0x44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x5c], 0x101
mov word [ebp - 0x58], 0
cmp dword [ebp - 8], 0
je 0x45c1fd
push dword [ebp - 4]
push 0x45c484
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 8]
call fcn.004565a0
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
call fcn.00405844
push dword [ebp - 0xa8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405934
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.0040597c
je 0x45c215
mov eax, dword [ebp - 0x38]
call fcn.00405854
mov edi, eax
jmp 0x45c217
xor edi, edi
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push 0
push 0x8000020
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
call fcn.00405854
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
je 0x45c3cc
xor eax, eax
push ebp
push 0x45c3c5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x12c
mov eax, dword [ebp - 0x98]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_PeekNamedPipe
test eax, eax
je 0x45c35f
cmp dword [ebp - 0x24], 0
jbe 0x45c2b5
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x45c2ea
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx], 0
lea eax, [ebp - 0xb0]
mov edx, dword [ebp - 0x1c]
call fcn.00405160
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp + 0xc]
call fcn.00405230
mov eax, dword [ebp + 0xc]
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x45c341
mov eax, ebx
sub eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
push eax
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0x1c]
call fcn.00405160
mov eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 4]
call fcn.004051f0
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 8]
pop ecx
call dword [ebp + 8]
test al, al
jne 0x45c341
mov dword [ebp - 0x28], 0x102
jmp 0x45c35f
cmp dword [ebp - 0x28], 0x102
jne 0x45c35f
mov eax, ebx
sub eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
cmp eax, dword [ebp - 0xc]
jle 0x45c262
mov eax, dword [ebp - 0x28]
sub eax, 1
jb 0x45c370
sub eax, 0x101
je 0x45c382
jmp 0x45c392
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x98]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
jmp 0x45c392
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x98]
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_OemToCharA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c3cc
mov eax, dword [ebp - 0x98]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x94]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c3e9
mov eax, dword [ebp - 0x1c]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c473
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.00404f94
lea eax, [ebp - 0xa8]
call fcn.00405660
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.00404f94
lea eax, [ebp - 0x9c]
call fcn.00405660
lea eax, [ebp - 0x38]
call fcn.00405660
lea eax, [ebp - 8]
call fcn.00404f70
lea eax, [ebp - 4]
call fcn.00405660
ret