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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405480
mov eax, dword [ebp - 8]
call fcn.00405480
xor eax, eax
push ebp
push 0x45bb95
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], 0xffffffff
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x45bb5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call fcn.0040372c
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 0x101
mov word [ebp - 0x44], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.00409c38
test al, al
je 0x45b985
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
call fcn.00405068
jmp 0x45b992
lea eax, [ebp - 0x24]
mov edx, 0x45bbb0
call fcn.00405068
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00405490
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea edx, [ebp - 0x188]
mov eax, 0x45bbbc
call fcn.00457a78
lea eax, [ebp - 0x188]
mov edx, dword [ebp - 4]
call fcn.00405298
mov eax, dword [ebp - 0x188]
call fcn.00405490
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x45bb3b
xor eax, eax
push ebp
push 0x45bb34
push dword fs:[eax]
mov dword fs:[eax], esp
cmp edi, 1
je 0x45bb04
push 0
lea eax, [ebp - 0x20]
push eax
push 0xff
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x20], 0
jbe 0x45ba84
mov eax, dword [ebp - 0x20]
mov byte [ebp + eax - 0x184], 0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x184]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x18c]
lea edx, [ebp - 0x184]
mov ecx, 0x100
call fcn.00405240
mov edx, dword [ebp - 0x18c]
mov eax, esi
call fcn.00405298
mov byte [ebp - 9], 1
test bl, bl
je 0x45ba8e
cmp dword [ebp - 0x20], 0
jne 0x45ba18
push 0
lea eax, [ebp - 0x20]
push eax
push 0xff
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x20], 0
jbe 0x45bafa
mov eax, dword [ebp - 0x20]
mov byte [ebp + eax - 0x184], 0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x184]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x190]
lea edx, [ebp - 0x184]
mov ecx, 0x100
call fcn.00405240
mov edx, dword [ebp - 0x190]
mov eax, esi
call fcn.00405298
mov byte [ebp - 9], 0
test bl, bl
je 0x45bb04
cmp dword [ebp - 0x20], 0
jne 0x45ba8e
push edi
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb3b
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb62
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret