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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004201c
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1005b034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], ecx
call fcn.10019010
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [ebx + 0x2c]
mov eax, str.9ZcX_mPPwrhLtOOi07n7DNGX9uoI16KAkMzjTjHotmU
lea esi, [ebp - 0xb0]
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x104]
push ecx
mov byte [ebp - 4], 1
call fcn.10002900
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x9c], 0x10
jb 0x100372ca
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x144]
push 0x10050524
push eax
push 0x1004df90
push ecx
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x1fc]
push edx
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
call fcn.10007890
add esp, 0xc
push eax
call fcn.10002ad0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.10002ad0
add esp, 8
lea ecx, [ebp - 0xe8]
lea eax, [ebp - 0x20c]
call fcn.100190b0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 4
call fcn.100022c0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x104]
mov byte [ebp - 4], 5
call fcn.10003280
mov esi, 0x10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x10c], esi
jb 0x1003737e
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ebx
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov dword [ebp - 0x164], 0xc
mov dword [ebp - 0x15c], 1
mov dword [ebp - 0x160], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1003746d
cmp dword [ebp - 0xd4], esi
jb 0x100373d4
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
cmp dword [ebp - 0xf0], esi
jb 0x10037403
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x148], ecx
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x1f4]
call fcn.1000b8c0
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor al, al
jmp 0x10037944
push 0x44
lea ecx, [ebp - 0x264]
push ebx
push ecx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x158]
or dword [ebp - 0x238], 0x101
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x264], 0x44
mov word [ebp - 0x234], dx
cmp dword [ebp - 0xd4], esi
jae 0x100374c2
lea eax, [ebp - 0xe8]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x264]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1003756c
cmp dword [ebp - 0xd4], esi
jb 0x100374ff
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
cmp dword [ebp - 0xf0], esi
jb 0x1003752e
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x1ac]
mov dword [ebp - 0x148], edx
mov dword [ebp + ecx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 4], 7
jmp 0x1003743c
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14c]
push ebx
lea eax, [ebp - 0x154]
push eax
push 0x80
lea ecx, [ebp - 0x94]
push ecx
push edx
mov byte [ebp - 0x13d], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10037805
mov edi, dword [ebp - 0x154]
cmp edi, ebx
je 0x10037805
lea eax, [ebp - 0x94]
lea esi, [ebp - 0xb0]
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
call fcn.10002d20
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x148]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x144], ebx
je 0x10037723
mov dword [ebp - 0x150], ebx
add esi, dword [ebp - 0x150]
lea edx, [ebp - 0xcc]
push esi
push edx
call fcn.10002580
add esp, 8
mov byte [ebp - 4], 9
cmp dword [ebp - 0xb8], 0x10
mov eax, dword [ebp - 0xcc]
jae 0x10037642
lea eax, [ebp - 0xcc]
mov ecx, dword [ebp - 0xbc]
push ecx
push eax
lea edx, [ebp - 0xb0]
push edx
call fcn.10007540
lea ecx, [ebp - 0xcc]
cmp eax, 0xffffffff
jne 0x1003776b
lea eax, [ebp - 0x120]
push eax
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0xcc]
mov byte [ebp - 4], 0xb
call fcn.10003280
mov edi, 0x10
cmp dword [ebp - 0x10c], edi
jb 0x100376a2
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 8
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], ebx
mov byte [ebp - 0x120], bl
cmp dword [ebp - 0xb8], edi
jb 0x100376d5
mov edx, dword [ebp - 0xcc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 4]
mov edi, dword [ebp - 0x144]
add dword [ebp - 0x150], 0x1c
mov dword [ebp - 0xb8], esi
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 0xcc], bl
mov dword [ebp - 0x144], edi
cmp edi, eax
jb 0x10037613
mov byte [ebp - 4], 4
cmp dword [ebp - 0x9c], 0x10
jb 0x10037740
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x14c]
push ebx
lea edx, [ebp - 0x154]
push edx
push 0x80
lea eax, [ebp - 0x94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0x10
jmp 0x100375a0
lea edx, [ebp - 0x13c]
push edx
mov byte [ebp - 0x13d], 1
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0xcc]
mov byte [ebp - 4], 0xa
call fcn.10003280
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
cmp dword [ebp - 0x128], esi
jb 0x100377b1
mov eax, dword [ebp - 0x13c]
push eax
call edi
add esp, 4
cmp dword [ebp - 0xb8], esi
jb 0x100377c5
mov ecx, dword [ebp - 0xcc]
push ecx
call edi
add esp, 4
mov dword [ebp - 0xb8], 0xf
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 0xcc], bl
cmp dword [ebp - 0x9c], esi
jb 0x100377ef
mov edx, dword [ebp - 0xb0]
push edx
call edi
add esp, 4
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 0xb0], bl
mov eax, dword [ebp - 0x14c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x21c]
push ecx
call edi
mov edx, dword [ebp - 0x218]
push edx
call edi
cmp dword [ebp - 0xd4], esi
jb 0x1003783e
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 0xe8], bl
cmp dword [ebp - 0xf0], esi
jb 0x1003786d
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0x104], bl
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x1ac]
mov dword [ebp - 0x148], edx
mov dword [ebp + ecx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 4], 0xc
lea edx, [ebp - 0x1f4]
mov dword [ebp - 0x144], edx
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov byte [ebp - 4], 0xd
test byte [ebp - 0x1b4], 1
je 0x100378db
mov eax, dword [ebp - 0x1e4]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1f4]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov ecx, dword [ebp - 0x1e0]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x1d0]
mov dword [edx], ebx
mov eax, dword [ebp - 0x1c0]
mov dword [eax], ebx
and dword [ebp - 0x1b4], 0xfffffffe
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 0x1b8], ebx
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, byte [ebp - 0x13d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003e6b0
mov esp, ebp
pop ebp
ret