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

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
push 0xfffffffffffffff5
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
or edi, 0xffffffff
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x486909
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x2c]
push eax
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x486915
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4868fa
cmp eax, edi
je 0x4868fa
push eax
call esi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486909
cmp eax, edi
je 0x486909
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x48692a
cmp eax, edi
je 0x48692a
push eax
call ebx
mov dword [esp + 0x1c], edi
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x48697b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486960
cmp eax, edi
je 0x486960
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48696f
cmp eax, edi
je 0x48696f
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
push 2
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], edi
call esi
mov ecx, dword [esp + 0x30]
push eax
push ecx
call esi
push eax
call ebp
test eax, eax
jne 0x486a06
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4869ae
cmp eax, edi
je 0x4869ae
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4869c1
cmp eax, edi
je 0x4869c1
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4869d4
cmp eax, edi
je 0x4869d4
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4869e7
cmp eax, edi
je 0x4869e7
push eax
call ebx
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48696f
cmp eax, edi
je 0x48696f
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x486a19
cmp eax, edi
je 0x486a19
push eax
call ebx
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x486a37
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00486af0
test eax, eax
jne 0x486a79
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486a4e
cmp eax, edi
je 0x486a4e
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x486a5d
cmp ecx, edi
je 0x486a5d
push ecx
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x486a70
cmp eax, edi
je 0x486a70
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x24]
jmp 0x486964
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00486be0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486aa1
cmp eax, edi
je 0x486aa1
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486ab4
cmp eax, edi
je 0x486ab4
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x486ac7
cmp eax, edi
je 0x486ac7
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x486ad6
cmp eax, edi
je 0x486ad6
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4