Function at 0x487b40
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 ebx, 0xffffffff
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x487be9
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
call esi
mov edx, dword [esp + 0x2c]
push eax
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x487bf5
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x487bda
cmp eax, ebx
je 0x487bda
push eax
call esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487be9
cmp eax, ebx
je 0x487be9
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x487c0a
cmp eax, ebx
je 0x487c0a
push eax
call ebp
mov dword [esp + 0x1c], ebx
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x487c5b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487c40
cmp eax, ebx
je 0x487c40
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487c4f
cmp eax, ebx
je 0x487c4f
push eax
call ebp
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], ebx
call esi
mov ecx, dword [esp + 0x30]
push eax
push ecx
call esi
push eax
call edi
test eax, eax
jne 0x487ce6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x487c8e
cmp eax, ebx
je 0x487c8e
push eax
call ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487ca1
cmp eax, ebx
je 0x487ca1
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487cb4
cmp eax, ebx
je 0x487cb4
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x487cc7
cmp eax, ebx
je 0x487cc7
push eax
call ebp
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487c4f
cmp eax, ebx
je 0x487c4f
push eax
call ebp
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 0x487cf9
cmp eax, ebx
je 0x487cf9
push eax
call ebp
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x487d17
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00487dd0
test eax, eax
jne 0x487d59
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487d2e
cmp eax, ebx
je 0x487d2e
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x487d3d
cmp ecx, ebx
je 0x487d3d
push ecx
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487d50
cmp eax, ebx
je 0x487d50
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
jmp 0x487c44
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.00487ec0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487d80
cmp eax, ebx
je 0x487d80
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487d93
cmp eax, ebx
je 0x487d93
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487da6
cmp eax, ebx
je 0x487da6
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x487db5
cmp eax, ebx
je 0x487db5
push eax
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4