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

Disassembly:
push 0xffffffffffffffff
push 0x40d0a9
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 ebx, ebx
push ebx
lea esi, [edi + 0x24]
push esi
lea eax, [edi + 0xc]
mov dword [esp + 0x2c], ebx
push eax
lea ebp, [edi + 8]
push ebp
mov dword [esi], 0xc
mov dword [edi + 0x2c], 1
mov dword [edi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x406ec4
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415e4c
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.00408140
add esp, 0x20
mov ecx, dword [ebp]
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x406ef2
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415e4c
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.00408140
add esp, 0x20
push 0
push esi
lea ebx, [edi + 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x406f22
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415e4c
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.00408140
add esp, 0x20
mov edx, dword [ebx]
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x406f51
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x415e4c
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.00408140
add esp, 0x20
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [edi + 0x10]
push 0
push eax
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 [ebp]
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 [edi + 0x10]
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 [ebp]
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.004076c0
lea ecx, [esp + 0x2c]
mov dword [0x415638], 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