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

Disassembly:
push 0xffffffffffffffff
push 0x40cc79
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413018]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push eax
lea ebp, [edi + 0x24]
mov dword [edi + 0x28], eax
push ebp
lea eax, [edi + 0xc]
push eax
lea ebx, [edi + 8]
push ebx
mov dword [ebp], 0xc
mov dword [edi + 0x2c], 1
call esi
test eax, eax
jne 0x406fd6
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415dd0
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.00408250
add esp, 0x20
mov ecx, dword [ebx]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x407004
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415dd0
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.00408250
add esp, 0x20
push 0
push ebp
lea ebx, [edi + 4]
push ebx
push edi
call esi
test eax, eax
jne 0x40702f
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415dd0
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.00408250
add esp, 0x20
mov edx, dword [ebx]
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x40705d
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415dd0
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.00408250
add esp, 0x20
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ebp, [edi + 0x10]
push ebp
call esi
push eax
mov eax, dword [ebx]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea ecx, [edi + 0x1c]
push ecx
call esi
mov edx, dword [edi + 8]
push eax
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [edi + 0x20]
push eax
call esi
mov ecx, dword [ebp]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [edi + 8]
push eax
call esi
sub esp, 0x1c
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x34], 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__]
call fcn.004077d0
lea ecx, [esp + 0x2c]
mov dword [0x415628], edi
mov dword [esp + 0x24], 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, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x1c