Function at 0x406f90
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push 0xffffffffffffffff
push 0x40cc39
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x41304c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push eax
lea ebp, [esi + 0x24]
mov dword [esi + 0x28], eax
push ebp
lea eax, [esi + 0xc]
push eax
lea ebx, [esi + 8]
push ebx
mov dword [ebp], 0xc
mov dword [esi + 0x2c], 1
call edi
test eax, eax
jne 0x407001
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x415d7c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.004082f0
add esp, 0x20
mov ecx, dword [ebx]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40702f
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x415d7c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.004082f0
add esp, 0x20
push 0
push ebp
lea ebx, [esi + 4]
push ebx
push esi
call edi
test eax, eax
jne 0x40705a
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x415d7c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.004082f0
add esp, 0x20
mov edx, dword [ebx]
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x407088
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x415d7c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.004082f0
add esp, 0x20
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ebp, [esi + 0x10]
push ebp
call edi
push eax
mov eax, dword [ebx]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea ecx, [esi + 0x1c]
push ecx
call edi
mov edx, dword [esi + 8]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [esi + 0x20]
push eax
call edi
mov ecx, dword [ebp]
push eax
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 8]
push eax
call edi
sub esp, 0x1c
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, esi
call fcn.00407800
lea ecx, [esp + 0x24]
mov dword [0x415628], esi
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0x1c