Function at 0x486980
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 0x486a29
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 0x486a35
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x486a1a
cmp eax, edi
je 0x486a1a
push eax
call esi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486a29
cmp eax, edi
je 0x486a29
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 0x486a4a
cmp eax, edi
je 0x486a4a
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 0x486a9b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486a80
cmp eax, edi
je 0x486a80
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486a8f
cmp eax, edi
je 0x486a8f
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 0x486b26
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x486ace
cmp eax, edi
je 0x486ace
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486ae1
cmp eax, edi
je 0x486ae1
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x486af4
cmp eax, edi
je 0x486af4
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x486b07
cmp eax, edi
je 0x486b07
push eax
call ebx
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486a8f
cmp eax, edi
je 0x486a8f
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 0x486b39
cmp eax, edi
je 0x486b39
push eax
call ebx
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x486b57
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00486c10
test eax, eax
jne 0x486b99
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486b6e
cmp eax, edi
je 0x486b6e
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x486b7d
cmp ecx, edi
je 0x486b7d
push ecx
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x486b90
cmp eax, edi
je 0x486b90
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x24]
jmp 0x486a84
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00486d00
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486bc1
cmp eax, edi
je 0x486bc1
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486bd4
cmp eax, edi
je 0x486bd4
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x486be7
cmp eax, edi
je 0x486be7
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x486bf6
cmp eax, edi
je 0x486bf6
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4