Function at 0x487c60
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 0x487d09
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 0x487d15
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x487cfa
cmp eax, ebx
je 0x487cfa
push eax
call esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487d09
cmp eax, ebx
je 0x487d09
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 0x487d2a
cmp eax, ebx
je 0x487d2a
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 0x487d7b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487d60
cmp eax, ebx
je 0x487d60
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487d6f
cmp eax, ebx
je 0x487d6f
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 0x487e06
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x487dae
cmp eax, ebx
je 0x487dae
push eax
call ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487dc1
cmp eax, ebx
je 0x487dc1
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487dd4
cmp eax, ebx
je 0x487dd4
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x487de7
cmp eax, ebx
je 0x487de7
push eax
call ebp
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487d6f
cmp eax, ebx
je 0x487d6f
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 0x487e19
cmp eax, ebx
je 0x487e19
push eax
call ebp
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x487e37
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00487ef0
test eax, eax
jne 0x487e79
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487e4e
cmp eax, ebx
je 0x487e4e
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x487e5d
cmp ecx, ebx
je 0x487e5d
push ecx
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487e70
cmp eax, ebx
je 0x487e70
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
jmp 0x487d64
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.00487fe0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487ea0
cmp eax, ebx
je 0x487ea0
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487eb3
cmp eax, ebx
je 0x487eb3
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487ec6
cmp eax, ebx
je 0x487ec6
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x487ed5
cmp eax, ebx
je 0x487ed5
push eax
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4