Function at 0x401630
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x54]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
pop edi
pop eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x1074]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x400
rep stosd dword es:[edi], eax
pop edi
pop eax
lea eax, [ebp - 0x1094]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
pop edi
pop eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
call sub.KERNEL32.dll_CreatePipe
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x40170c
push 0x40401c
push dword [ebp + 8]
call fcn.00401580
jmp 0x401892
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x54]
push eax
call sub.KERNEL32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0x101
mov word [ebp - 0x24], 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0
call sub.KERNEL32.dll_CreateProcessA
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x401787
push dword [ebp - 0x68]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_CloseHandle
push 0x10
push 0x404030
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
jmp 0x401892
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_CloseHandle
push 0
push 1
push 0x404010
push 0x1000
lea eax, [ebp - 0x1074]
push eax
call fcn.00402340
push 0
lea eax, [ebp - 0x70]
push eax
push 1
lea eax, [ebp - 0x1094]
push eax
push dword [ebp - 0x68]
call sub.KERNEL32.dll_ReadFile
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x4017d3
jmp 0x401871
push 1
lea eax, [ebp - 0x1094]
push eax
call fcn.004023f0
push eax
call fcn.00402980
cmp eax, 0xa
jne 0x401817
lea eax, [ebp - 0x1074]
push eax
push dword [ebp + 8]
call fcn.00401580
push 0
push 1
push 0x404010
push 0x1000
lea eax, [ebp - 0x1074]
push eax
call fcn.00402340
jmp 0x40186c
push 0
push 0xffffffffffffffff
push 0x20
lea eax, [ebp - 0x1094]
push eax
push 0x1000
lea eax, [ebp - 0x1074]
push eax
mov dword [ebp - 0x10a0], 0
mov dword [ebp - 0x109c], 0
mov dword [ebp - 0x1098], 0
lea eax, [ebp - 0x10a0]
push eax
call fcn.004027d0
push eax
push 0x1000
lea eax, [ebp - 0x1074]
push eax
call fcn.00402340
jmp 0x4017a9
push dword [ebp - 0x64]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x60]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x68]
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 4], 0
jmp 0x401899
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8