Function at 0x4010e0
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create thread
Delete file
Terminate process
Terminate thread
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push edi
mov dword [0x40cd30], 0
mov dword [0x40cd2c], 0
mov dword [0x40cd4c], 0xffffffff
mov dword [0x40cd48], 0xffffffff
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x64
mov dword [ebp - 0x58], 0x64
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x48], 0x101
mov word [ebp - 0x44], 5
mov word [ebp - 0x42], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x84], 0x220
push 0
lea eax, [ebp - 0x24]
push eax
push 0x40cd7c
push 0x40cd70
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4011d5
push str.Konnte_Pipe_nicht_erstellen._Abbruch.
call fcn.00401d66
add esp, 4
push 0xffffffffffffffff
call fcn.00401c91
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push str.Idaseg.p.tmp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x40cd4c], eax
cmp dword [0x40cd4c], 0xffffffff
jne 0x401219
push str.Eins_Idaseg_Prozess_l
call fcn.00401d66
add esp, 4
push 1
call fcn.00401590
add esp, 4
jmp 0x40126e
cmp dword [ebp + 8], 2
jl 0x40126e
push 0
push 0x100
push 2
push 0
push 3
push 0x40000000
push str.Idaseg.p2.tmp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x40cd48], eax
push 0
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0x40cd48]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.Idaseg.p3.tmp
call fcn.004010a0
add esp, 4
test eax, eax
je 0x40128a
push str.Idaseg.p3.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 2
push 0
push 0
push 0x40cd64
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [0x40cd7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [0x40cd7c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40cd70]
mov dword [ebp - 0x3c], edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x38], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x34], eax
cmp dword [ebp + 8], 5
jl 0x401303
push 0x40a0c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004084f0
add esp, 8
test eax, eax
jne 0x401303
call fcn.00401bec
mov dword [0x40cd28], eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00401b30
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401331
push str.Starter_nur
call fcn.00401d66
add esp, 4
push 0xffffffffffffffff
call fcn.00401c91
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 0x20
mov eax, dword [ebp - 8]
push eax
call fcn.00401b30
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401365
push str.Starter_nur
call fcn.00401d66
add esp, 4
push 0xffffffffffffffff
call fcn.00401c91
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
push 0x40cd38
lea edx, [ebp - 0x74]
push edx
push 0
push 0
mov eax, dword [ebp - 0x84]
push eax
push 1
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4013b3
push str._nBefehl_konnte_nicht_ausgef
call fcn.00401d66
add esp, 4
push 1
call fcn.00401590
add esp, 4
mov ecx, dword [0x40cd70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x401500
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40cd58], eax
push 0xffffffffffffffff
mov ecx, dword [0x40cd38]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov edx, dword [0x40cd58]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Idaseg.p3.tmp
call section..text
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401429
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401d66
add esp, 4
push str.Idaseg.p3.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 8], 5
jl 0x401483
push 0x40a0c0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004084f0
add esp, 8
test eax, eax
jne 0x401483
call fcn.00401bec
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [0x40cd28]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fdiv qword [0x4090e8]
sub esp, 8
fstp qword [esp]
push str._nDie_Simulation_dauerte__mit_Startvorgang_:__.3f_Sekunden._n
call fcn.00401d66
add esp, 0xc
mov ecx, dword [0x40cd4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40cd48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Idaseg.p2.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.Idaseg.p.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40a180
call fcn.0040195a
add esp, 4
push 0x40a1a0
call fcn.0040195a
add esp, 4
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [0x40cd38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4014f1
cmp dword [ebp - 0x80], 0
je 0x4014ef
mov eax, 1
jmp 0x4014fa
jmp 0x4014f8
mov eax, 1
jmp 0x4014fa
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret