Function at 0x46b780
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 + 0x20]
or ebx, 0xffffffff
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x46b829
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], ebx
call esi
mov edx, dword [esp + 0x24]
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 + 0x14]
jne 0x46b835
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x46b81a
cmp eax, ebx
je 0x46b81a
push eax
call esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b829
cmp eax, ebx
je 0x46b829
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 0x46b84a
cmp eax, ebx
je 0x46b84a
push eax
call ebp
mov dword [esp + 0x14], ebx
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x46b829
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 0x46b8e1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b8a0
cmp eax, ebx
je 0x46b8a0
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b8b3
cmp eax, ebx
je 0x46b8b3
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b8c6
cmp eax, ebx
je 0x46b8c6
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46b8d5
cmp eax, ebx
je 0x46b8d5
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 0x46b8f4
cmp eax, ebx
je 0x46b8f4
push eax
call ebp
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x46b912
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.0046b9c0
test eax, eax
jne 0x46b954
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46b929
cmp eax, ebx
je 0x46b929
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
test ecx, ecx
je 0x46b938
cmp ecx, ebx
je 0x46b938
push ecx
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b94b
cmp eax, ebx
je 0x46b94b
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
jmp 0x46b8ca
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
lea edi, [esp + 0x20]
call fcn.0046bab0
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46b97b
cmp eax, ebx
je 0x46b97b
push eax
call ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b98e
cmp eax, ebx
je 0x46b98e
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b9a1
cmp eax, ebx
je 0x46b9a1
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46b9b0
cmp eax, ebx
je 0x46b9b0
push eax
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4