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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x84]
xor ecx, ecx
mov edx, 0x44
call fcn.00407740
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0x10
call fcn.00407740
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x58], 1
test byte [ebp - 5], 2
je 0x583674
mov eax, 5
jmp 0x583676
xor eax, eax
mov word [ebp - 0x54], ax
test byte [ebp - 5], 1
je 0x5836ee
test ebx, ebx
jne 0x583688
test esi, esi
je 0x5836ee
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0xc
call fcn.00407740
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x38], 0xffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x58383c
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x58383c
or dword [ebp - 0x58], 0x100
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
push ebp
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x34]
call fcn.005834ac
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x583818
cmp dword [ebp + 0xc], 0
je 0x58371d
mov edi, dword [ebp + 0xc]
push esi
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
test byte [ebp - 5], 1
je 0x583818
xor eax, eax
push ebp
push 0x583811
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x583741
test esi, esi
je 0x5837d1
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x47608c]
call fcn.0049e458
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x47608c]
call fcn.0049e458
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5837ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0x18]
call fcn.00583540
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00583540
push 0xa
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x583773
mov edx, esi
mov eax, dword [ebp - 0x18]
call fcn.00583540
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00583540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5837dc
mov eax, dword [ebp - 0x24]
call fcn.00407e08
mov eax, dword [ebp - 0x18]
call fcn.00407e08
pop eax
jmp eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp dword [ebp + 8], 0
je 0x5837ef
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x583818
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10