Function at 0x578824
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x578a60
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x44
call fcn.00404fec
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x10
call fcn.00404fec
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], 1
test byte [ebp - 9], 2
setne al
test al, al
je 0x5788ab
mov eax, 5
jmp 0x5788ad
xor eax, eax
mov word [ebp - 0x58], ax
test byte [ebp - 9], 1
je 0x578925
test ebx, ebx
jne 0x5788bf
test esi, esi
je 0x578925
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0xc
call fcn.00404fec
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x3c], 0xffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x578a4a
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x578a4a
or dword [ebp - 0x5c], 0x100
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
push ebp
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x38]
call fcn.0057870c
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x578a26
test byte [ebp - 9], 1
je 0x578a26
xor eax, eax
push ebp
push 0x578a1f
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x578966
test esi, esi
je 0x5789f4
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x47479c]
call fcn.00493560
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x47479c]
call fcn.00493560
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x5789ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.00578774
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.00578774
push 0xa
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x578998
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.00578774
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.00578774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5789ff
mov eax, dword [ebp - 0x28]
call fcn.0040548c
mov eax, dword [ebp - 0x1c]
call fcn.0040548c
ret
push 0xffffffffffffffff
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578a26
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578a67
lea eax, [ebp - 8]
call fcn.0040708c
ret