Function at 0x46b420
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 0x46b4c9
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 0x46b4d5
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x46b4ba
cmp eax, ebx
je 0x46b4ba
push eax
call esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b4c9
cmp eax, ebx
je 0x46b4c9
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 0x46b4ea
cmp eax, ebx
je 0x46b4ea
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 0x46b53b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b520
cmp eax, ebx
je 0x46b520
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b52f
cmp eax, ebx
je 0x46b52f
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 0x46b5c6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46b56e
cmp eax, ebx
je 0x46b56e
push eax
call ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b581
cmp eax, ebx
je 0x46b581
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b594
cmp eax, ebx
je 0x46b594
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46b5a7
cmp eax, ebx
je 0x46b5a7
push eax
call ebp
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b52f
cmp eax, ebx
je 0x46b52f
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 0x46b5d9
cmp eax, ebx
je 0x46b5d9
push eax
call ebp
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x46b5f7
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.0046b6b0
test eax, eax
jne 0x46b639
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b60e
cmp eax, ebx
je 0x46b60e
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x46b61d
cmp ecx, ebx
je 0x46b61d
push ecx
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b630
cmp eax, ebx
je 0x46b630
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
jmp 0x46b524
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.0046b7a0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46b660
cmp eax, ebx
je 0x46b660
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b673
cmp eax, ebx
je 0x46b673
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b686
cmp eax, ebx
je 0x46b686
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46b695
cmp eax, ebx
je 0x46b695
push eax
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4