Function at 0x408db0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x408db9
mov eax, dword [ebp - 4]
add esp, 0xffffff3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20c8], ebx
mov dword [ebp - 0x20ac], ebx
mov dword [ebp - 0x20a8], ebx
mov dword [ebp - 0x20a4], ebx
mov dword [ebp - 0x40], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x2040]
push ecx
mov ecx, 0x800
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x40931f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20a0]
xor ecx, ecx
mov edx, 0xc
call fcn.0040288c
mov dword [ebp - 0x20a0], 0xc
xor eax, eax
mov dword [ebp - 0x209c], eax
mov dword [ebp - 0x2098], 0xffffffff
push 0
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x2084]
xor ecx, ecx
mov edx, 0x44
call fcn.0040288c
mov dword [ebp - 0x2084], 0x44
mov dword [ebp - 0x2058], 0x101
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x204c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2048], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2044], eax
mov word [ebp - 0x2054], 0
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.004037d0
jne 0x408ef2
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.00403598
jmp 0x408f08
push dword [ebp - 4]
push 0x40933c
push ebx
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00403744
cmp dword [ebp + 0x1c], 0
je 0x408f26
push dword [ebp - 0x40]
push 0x40933c
push dword [ebp + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00403744
lea edx, [ebp - 0x20a4]
mov eax, dword [ebp - 0x40]
call fcn.00404b60
mov edx, dword [ebp - 0x20a4]
lea eax, [ebp - 0x40]
call fcn.00403598
lea eax, [ebp - 0x2094]
push eax
lea eax, [ebp - 0x2084]
push eax
mov eax, dword [ebp - 8]
call fcn.00403884
push eax
mov eax, dword [ebp + 0x18]
call fcn.00403884
push eax
push 4
push 0xffffffffffffffff
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x20a0]
push eax
mov eax, dword [ebp - 0x40]
call fcn.00403884
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x408fe7
push 0
mov eax, dword [ebp - 0x2094]
push eax
call sub.user32.dll_WaitForInputIdle
cmp eax, 0x102
jne 0x409004
push ebp
lea eax, [ebp - 0x20a8]
call fcn.00408d20
pop ecx
mov edx, dword [ebp - 0x20a8]
mov eax, edi
call fcn.00403554
push 0
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x2090]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x409004
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x20ac]
call fcn.004053d8
mov edx, dword [ebp - 0x20ac]
mov eax, edi
call fcn.00403554
test bl, bl
jne 0x409053
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20c4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20c0], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20bc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20b8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20b4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20b0], eax
lea eax, [ebp - 0x20c4]
mov edx, 5
call fcn.004050c0
jmp 0x4092ee
cmp dword [ebp + 0x14], 0
jne 0x409060
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x409092
mov cl, 1
mov dl, 1
mov eax, dword [0x406e7c]
call fcn.004059c8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0x18
mov edx, dword [ebp + 0x14]
call fcn.00403554
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x14], edx
xor edx, edx
mov eax, dword [ebp - 0x38]
call fcn.00405a7c
mov cl, 1
mov dl, 1
mov eax, dword [0x406ef4]
call fcn.004059c8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
xor edx, edx
mov eax, dword [ebp - 0x3c]
call fcn.00405a7c
mov dl, 1
mov eax, dword [0x407328]
call fcn.00408a7c
mov dword [ebp - 0x2c], eax
mov dl, 1
mov eax, dword [0x40739c]
call fcn.00402b2c
mov dword [ebp - 0x30], eax
mov cl, 1
mov dl, 1
mov eax, dword [0x406e18]
call fcn.004059c8
mov dword [ebp - 0x34], eax
mov dl, 2
mov eax, dword [ebp - 0x34]
call fcn.00405a64
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x20], edx
lea eax, [ebp - 0x2040]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x18], edx
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.00405a7c
mov dl, 1
mov eax, esi
call fcn.00405a64
mov eax, dword [ebp - 0x2090]
push eax
call sub.kernel32.dll_ResumeThread
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x2090]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], 0
jne 0x409169
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x409190
push 0xffffffffffffffff
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x38]
call fcn.00405abc
lea eax, [ebp - 0x38]
call fcn.004058bc
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle
push 0xffffffffffffffff
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x3c]
call fcn.00405abc
mov eax, edi
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x18]
call fcn.00403554
lea eax, [ebp - 0x3c]
call fcn.004058bc
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
push 0xffffffffffffffff
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x34]
call fcn.00405abc
mov dl, 3
mov eax, esi
call fcn.00405a64
jmp 0x40924b
push 0
lea eax, [ebp - 0x10]
push eax
push 0x2000
lea eax, [ebp - 0x2040]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x409254
cmp dword [ebp - 0x10], 0
je 0x409254
lea eax, [ebp - 0x2040]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.00408b24
xor al, 1
mov edx, dword [ebp - 0x34]
mov byte [edx + 0x14], al
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 0
jle 0x40924b
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1c], 0
jne 0x409254
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x14], 0
je 0x4091f7
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x2094]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x14], 0
jne 0x40927b
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x1c], 0
jne 0x409283
lea eax, [ebp - 0x2c]
call fcn.004058bc
lea eax, [ebp - 0x34]
call fcn.004058bc
cmp dword [ebp - 0x2c], 0
jne 0x40929b
lea eax, [ebp - 0x30]
call fcn.004058bc
jmp 0x4092ee
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 0
jne 0x4092d5
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
call fcn.00403684
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x14], ebx
lea edx, [ebp - 0x20c8]
mov eax, ebx
call fcn.00404a80
mov edx, dword [ebp - 0x20c8]
mov eax, dword [ebp - 0x30]
add eax, 0x14
call fcn.00403554
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
call fcn.00408404
lea eax, [ebp - 0x2c]
call fcn.004058bc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409326
lea eax, [ebp - 0x20c8]
call fcn.00403500
lea eax, [ebp - 0x20ac]
mov edx, 3
call fcn.00403524
lea eax, [ebp - 0x40]
call fcn.00403500
ret