Function at 0x4013a0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43e5f4
mov eax, dword fs:[0]
push eax
mov eax, 0x27d8
call fcn.00437be0
mov eax, dword [0x45487c]
xor eax, esp
mov dword [esp + 0x27d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45487c]
xor eax, esp
push eax
lea eax, [esp + 0x27ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27fc]
xor ebx, ebx
push ebx
mov dword [esp + 0x28], eax
xor eax, eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40142b
xor al, al
jmp 0x40175e
push 0x40
lea ecx, [esp + 0x6c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x68]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], eax
push str.ipconfig__all
xor eax, eax
push ebx
mov word [esp + 0xbc], ax
mov dword [esp + 0xb8], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x27f4], ebx
cmp edi, ebx
je 0x40171d
push 0x2711
lea eax, [esp + 0xd0]
push ebx
push eax
xor esi, esi
mov dword [esp + 0x20], ebx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x2710
lea edx, [esp + 0xd8]
push edx
push eax
call edi
test eax, eax
je 0x401593
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.MSVCR90.dll_strstr]
jmp 0x401520
add esi, dword [esp + 0x14]
cmp dword [0x454e54], 0x10
mov eax, dword [0x454e40]
jae 0x401537
mov eax, 0x454e40
push eax
lea ecx, [esp + 0xd0]
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x401591
cmp dword [0x454e70], 0x10
mov eax, dword [0x454e5c]
jae 0x40155c
mov eax, 0x454e5c
push eax
lea edx, [esp + 0xd0]
push edx
call ebx
add esp, 8
test eax, eax
jne 0x401591
push 1
call ebp
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + esi + 0xd8]
push ecx
push edx
call edi
test eax, eax
jne 0x401520
xor ebx, ebx
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xb4]
call dword [0x43f0d0]
push ebx
push 0x454e3c
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
jne 0x4015eb
push ebx
push 0x454e58
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
jne 0x4015eb
mov dword [esp + 0x20], ebx
jmp 0x40170d
mov ecx, dword [ecx]
mov edx, dword [0x454e50]
push ecx
add edx, eax
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x27f8], 1
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x48]
mov byte [esp + 0x27f4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
push 0x44a774
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
push eax
push ebx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x27f8], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x48]
mov byte [esp + 0x27f4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x2711
lea edx, [esp + 0xd0]
push ebx
push edx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0xc0]
add esp, 0xc
cmp dword [esp + 0xc8], 0x10
jae 0x4016ae
lea ecx, [esp + 0xb4]
lea edx, [esp + 0xcc]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4016b5
lea eax, [esp + 0xcc]
xor edx, edx
lea esi, [eax + 1]
jmp 0x4016d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4016d0
sub eax, esi
je 0x40170d
mov edi, dword [esp + 0x24]
nop
mov al, byte [esp + edx + 0xcc]
cmp al, 0x2d
je 0x4016ee
mov byte [edi], al
inc edi
lea eax, [esp + 0xcc]
inc edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401700
sub eax, esi
cmp edx, eax
jb 0x4016e0
mov eax, dword [esp + 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp edi, ebx
lea ecx, [esp + 0xb0]
setne bl
mov dword [esp + 0x27f4], 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 al, bl
mov ecx, dword [esp + 0x27ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27d0]
xor ecx, esp
call fcn.00437a62
add esp, 0x27e4
ret