Function at 0x10020b50
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x106c
call fcn.1002d190
push esi
xor esi, esi
push edi
lea eax, [esp + 0x24]
push esi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10020b95
pop edi
pop esi
add esp, 0x106c
ret
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1078]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x5c]
xor eax, eax
mov dword [esp + 0x14], eax
or dh, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
cmp eax, esi
jne 0x10020be6
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x30]
push edx
push ecx
push esi
push esi
push 0x8000000
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
mov edi, eax
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x10020c1f
pop edi
xor eax, eax
pop esi
add esp, 0x106c
ret
mov eax, dword [esp + 0x14]
push ebx
push ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push esi
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x84]
push 0xfff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x10020c71
cmp ebx, esi
je 0x10020cf9
cmp ebx, 0xfffffffd
jbe 0x10020c7c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x1084]
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x10020ca9
mov al, byte [ecx - 1]
test al, al
je 0x10020ca9
cmp al, 0xff
je 0x10020ca9
cmp ebx, esi
jne 0x10020ccf
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
jmp 0x10020cf9
cmp ebx, esi
jne 0x10020cb9
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x10020cf9
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x10020cc5
cmp eax, ebx
jae 0x10020cd8
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x106c
ret