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

Disassembly:
push ebp
lea ebp, [esp - 0x1008]
mov eax, 0x1008
call fcn.10032880
push 0xffffffffffffffff
push 0x100372c0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x1004], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x1010]
xor edi, edi
mov ebx, ecx
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
push edx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10005a29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push str.ProcessNewCmd_Create_Pipe_Error:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], esi
call fcn.10028c35
push 0x40
lea edx, [ebp - 0x90]
push edi
push edx
mov dword [ebp - 0x94], 0x44
call fcn.100285e0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x68], 0x101
mov word [ebp - 0x64], ax
call fcn.1001af90
push ebx
push str.ProcessNewCmd_1.0_cmd:_s
mov ecx, eax
call fcn.1001b3f0
add esp, 8
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x94]
push edx
push edi
push edi
push 0x10
push 1
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
jne 0x10005abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push ebx
push esi
push str.ProcessNewCmd_Create_process_Error:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], esi
call fcn.10028c35
call fcn.1001af90
push ebx
push str.ProcessNewCmd_1.1_cmd:_s
mov ecx, eax
call fcn.1001b3f0
mov ecx, dword [ebp - 0x34]
add esp, 8
push 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.1001af90
push esi
push str.ProcessNewCmd_1.2_WaitRlt:_d
mov ecx, eax
call fcn.1001b3f0
add esp, 8
cmp esi, 0x102
jne 0x10005b0c
mov edx, dword [ebp - 0x34]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x1001
lea eax, [ebp]
push edi
push eax
call fcn.100285e0
mov eax, dword [ebp - 0x18]
add esp, 0xc
push edi
lea ecx, [ebp - 0x20]
push ecx
push 0x1000
lea edx, [ebp]
push edx
push eax
call esi
test eax, eax
je 0x10005b45
cmp dword [ebp - 0x20], edi
je 0x10005b45
xor bl, bl
jmp 0x10005b47
mov bl, 1
call fcn.1001af90
mov ecx, dword [ebp - 0x20]
push ecx
movzx edx, bl
push edx
push str.ProcessNewCmd_1.3_done:_d_len:_d
mov ecx, eax
call fcn.1001b3f0
lea eax, [ebp]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005b70
sub eax, edx
push eax
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x24]
call fcn.1000fef0
test bl, bl
jne 0x10005b8f
cmp dword [ebp - 0x20], edi
jbe 0x10005b12
mov dword [ebp - 4], 0xffffffff
jmp 0x10005bc1
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x10005bd4
push eax
call esi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x10005be1
push eax
call esi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x10005bee
push eax
call esi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x34]
cmp eax, edi
je 0x10005bfb
push eax
call esi
mov dword [ebp - 0x34], edi
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x14]
mov esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x40]
push eax
push esi
push str.ProcessNewCmd_Rlt:_08x_Cmd:_s_RltLen:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1004]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x1008
mov esp, ebp
pop ebp
ret