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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5b6884
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x90]
xor ecx, ecx
mov edx, 0x44
call fcn.00406e3c
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x10
call fcn.00406e3c
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x64], 1
test byte [ebp - 0xd], 2
setne al
test al, al
je 0x5b66b5
mov dword [ebp - 0x30], 5
jmp 0x5b66ba
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov word [ebp - 0x60], ax
test byte [ebp - 0xd], 1
je 0x5b6739
cmp dword [ebp + 0xc], 0
jne 0x5b66d3
cmp dword [ebp + 8], 0
je 0x5b6739
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0xc
call fcn.00406e3c
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], 0xffffffff
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x5b686e
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x5b686e
or dword [ebp - 0x64], 0x100
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
push ebp
lea edx, [ebp - 0x90]
lea eax, [ebp - 0x40]
call fcn.005b64d8
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5b684a
test byte [ebp - 0xd], 1
je 0x5b684a
xor eax, eax
push ebp
push 0x5b6843
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
jne 0x5b677e
cmp dword [ebp + 8], 0
je 0x5b6818
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x478334]
call fcn.00498798
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x478334]
call fcn.00498798
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x5b6811
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
call fcn.005b6550
pop ecx
push ebp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.005b6550
pop ecx
push 0xa
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x5b67b0
push ebp
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
call fcn.005b6550
pop ecx
push ebp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.005b6550
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b6823
mov eax, dword [ebp - 0x2c]
call fcn.004072ac
mov eax, dword [ebp - 0x20]
call fcn.004072ac
ret
push 0xffffffffffffffff
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b684a
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b688b
lea eax, [ebp - 8]
call fcn.00408edc
ret