Function at 0x100854c0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Get common file path
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp - 0x1c0]
push ebx
push esi
push edi
push 0xb0
push 0
lea esi, [ebp + 8]
mov ebx, ecx
cmovae esi, dword [ebp + 8]
push eax
call fcn.100bd8d0
add esp, 4
lea ecx, [ebp - 0x1c0]
call fcn.100ae690
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.100bd8d0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x80
push 0
push eax
call fcn.100bd8d0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10085547
sub ecx, edx
mov edx, 2
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100c13f3
mov edi, eax
add esp, 4
mov dword [ebp - 0x234], edi
test edi, edi
je 0x100857c2
mov ecx, edi
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10085580
push 0x40
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x10c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c4], 0
push 0
push eax
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1d8], 0xc
movq qword [ebp - 0x1d4], xmm0
mov dword [ebp - 0x230], 0x44
call fcn.100bd8d0
add esp, 0xc
mov dword [ebp - 0x1d0], 1
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x1d4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1e8], xmm0
push 0
push eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
push 1
push dword [ebp - 0x1c4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test esi, esi
je 0x100857b3
xor eax, eax
mov dword [ebp - 0x204], 0x101
mov word [ebp - 0x200], ax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1cc]
push eax
mov dword [ebp - 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x1cc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test esi, esi
je 0x100857b3
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [eax + eax]
push 0x64
push dword [ebp - 0x1e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100856f9
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c4]
call esi
cmp dword [ebp - 0x10c], 0
je 0x10085785
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c4]
call esi
test eax, eax
je 0x100856c0
cmp dword [ebp - 0x10c], 0
je 0x100856c0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x7f
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x1c4]
call edi
test eax, eax
je 0x100856c0
mov eax, dword [ebp - 0x10c]
cmp eax, 0x80
jae 0x10085880
lea edx, [ebp - 0x88]
mov byte [ebp + eax - 0x88], 0
lea ecx, [ebp - 0x1b0]
call fcn.100af8b0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c4]
call esi
test eax, eax
jne 0x10085714
jmp 0x100856c0
push dword [ebp - 0x1e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1e8]
call esi
push dword [ebp - 0x1c8]
call esi
push dword [ebp - 0x1c4]
call esi
mov edi, dword [ebp - 0x234]
jmp 0x100857b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.100c13d8
add esp, 4
mov ecx, dword [ebp - 0x16c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
test cl, 2
jne 0x10085804
mov eax, dword [ebp - 0x188]
mov edx, dword [eax]
test edx, edx
je 0x10085804
mov eax, dword [ebp - 0x198]
cmp edx, dword [ebp - 0x170]
cmovb edx, dword [ebp - 0x170]
mov ecx, dword [eax]
sub edx, ecx
push edx
jmp 0x1008582a
test cl, 4
jne 0x10085832
mov eax, dword [ebp - 0x18c]
mov edx, dword [eax]
test edx, edx
je 0x10085832
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax]
sub eax, ecx
add eax, edx
push eax
push ecx
mov ecx, ebx
call fcn.100af160
lea ecx, [ebp - 0x1c0]
call fcn.10085890
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1008586d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10085863
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10085885
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100bab6b
call fcn.100c79a0
int3