Function at 0x5a8a20
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 0x5a8c5c
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.00405424
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x10
call fcn.00405424
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], 1
test byte [ebp - 9], 2
setne al
test al, al
je 0x5a8aa7
mov eax, 5
jmp 0x5a8aa9
xor eax, eax
mov word [ebp - 0x58], ax
test byte [ebp - 9], 1
je 0x5a8b21
test ebx, ebx
jne 0x5a8abb
test esi, esi
je 0x5a8b21
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0xc
call fcn.00405424
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 0x5a8c46
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 0x5a8c46
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.005a88f4
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5a8c22
test byte [ebp - 9], 1
je 0x5a8c22
xor eax, eax
push ebp
push 0x5a8c1b
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x5a8b62
test esi, esi
je 0x5a8bf0
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4775b0]
call fcn.00497ac4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4775b0]
call fcn.00497ac4
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x5a8be9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.005a895c
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.005a895c
push 0xa
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x5a8b94
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.005a895c
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.005a895c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a8bfb
mov eax, dword [ebp - 0x28]
call fcn.00405878
mov eax, dword [ebp - 0x1c]
call fcn.00405878
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 0x5a8c22
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 0x5a8c63
lea eax, [ebp - 8]
call fcn.004074a8
ret