Function at 0x1000a760
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create thread
Create two anonymous pipes
Query environment variable

Disassembly:
sub esp, 0x280
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x27c], eax
mov eax, dword [esp + 0x284]
push ebx
push ebp
push esi
push edi
push 0x206
xor ebp, ebp
mov esi, ecx
lea edx, [esp + 0x86]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x3c], eax
mov word [esp + 0x8c], cx
call fcn.100113d0
xor eax, eax
push 0x40
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x4c]
push ebp
push eax
mov dword [esp + 0x50], ebp
call fcn.100113d0
add esp, 0x18
push ebp
lea ecx, [esp + 0x28]
push ecx
xor eax, eax
lea edi, [esi + 0x60]
push edi
lea ebx, [esi + 0x54]
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000a821
mov ebx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, ebp
je 0x1000a80f
push ebx
call esi
mov edi, dword [edi]
cmp edi, ebp
je 0x1000a9a9
push edi
call esi
jmp 0x1000a9a9
push 0
lea edx, [esp + 0x28]
lea eax, [esi + 0x58]
push edx
push eax
lea ebp, [esi + 0x5c]
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000a864
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000a851
push eax
call esi
mov ebp, dword [ebp]
test ebp, ebp
je 0x1000a9a9
push ebp
call esi
jmp 0x1000a9a9
push 0x44
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.100113d0
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, dword [ebp]
xor eax, eax
push 0x208
lea edx, [esp + 0x84]
mov word [esp + 0x6c], ax
mov eax, dword [edi]
push edx
push str._ComSpec_
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 0x101
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0x20
push 1
push 0
push 0
lea edx, [esp + 0xa0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000a926
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
call esi
mov eax, dword [ebp]
push eax
call esi
mov ecx, dword [edi]
push ecx
call esi
jmp 0x1000a9a9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x38]
push ecx
mov ebx, esi
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], eax
mov dword [esp + 0x3c], 5
call fcn.10002d80
mov edx, dword [esi + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edx
call edi
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
push 0x1000aa30
push 0
push 0
call fcn.1000c62d
add esp, 0x18
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x40]
push 0
push eax
call edi
test eax, eax
je 0x1000a9a9
mov ecx, dword [esp + 0x30]
push 1
push ecx
call edi
cmp eax, 0x102
je 0x1000a99d
call fcn.10002d20
mov edx, dword [esi + 0x40]
push 0
push edx
call edi
test eax, eax
jne 0x1000a988
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x280
ret 4