Function at 0x408490
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
push 0xffffffffffffffff
push 0x45f6d3
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x482024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c4]
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
push 0xb0
cmovae esi, dword [ebp + 8]
push 0
push eax
call fcn.004415a0
add esp, 4
lea ecx, [ebp - 0x1c4]
call fcn.00421ff0
push 0x80
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004415a0
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004415a0
add esp, 0x18
lea eax, [ebp - 0x110]
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 0x408548
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.00448eae
mov edi, eax
add esp, 4
mov dword [ebp - 0x234], edi
test edi, edi
je 0x4087c2
mov ecx, edi
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x408581
push 0x40
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x114], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c8], 0
push 0
push eax
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1dc], 0xc
movq qword [ebp - 0x1d8], xmm0
mov dword [ebp - 0x230], 0x44
call fcn.004415a0
add esp, 0xc
mov dword [ebp - 0x1d4], 1
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1d8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1ec], xmm0
push 0
push eax
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
push 1
push dword [ebp - 0x1c8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test esi, esi
je 0x4087b3
xor eax, eax
mov dword [ebp - 0x204], 0x101
mov word [ebp - 0x200], ax
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1d0]
push eax
mov dword [ebp - 0x1d0], 0
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x110]
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 - 0x1d0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test esi, esi
je 0x4087b3
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [eax]
push 0x64
push dword [ebp - 0x1ec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4086f9
push 0
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c8]
call esi
cmp dword [ebp - 0x114], 0
je 0x408785
push 0
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c8]
call esi
test eax, eax
je 0x4086c0
cmp dword [ebp - 0x114], 0
je 0x4086c0
push 0
lea eax, [ebp - 0x114]
push eax
push 0x7f
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x1c8]
call edi
test eax, eax
je 0x4086c0
mov eax, dword [ebp - 0x114]
cmp eax, 0x80
jae 0x40882c
lea edx, [ebp - 0x90]
mov byte [ebp + eax - 0x90], 0
lea ecx, [ebp - 0x1b4]
call fcn.004249c0
push 0
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c8]
call esi
test eax, eax
jne 0x408714
jmp 0x4086c0
push dword [ebp - 0x1e8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1ec]
call esi
push dword [ebp - 0x1cc]
call esi
push dword [ebp - 0x1c8]
call esi
mov edi, dword [ebp - 0x234]
jmp 0x4087b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.00448666
add esp, 4
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x1c4]
push esi
call fcn.00421f30
lea ecx, [ebp - 0x1c4]
call fcn.00408840
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40880f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408805
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408831
push edx
push ecx
call fcn.0042aa8a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a413
mov esp, ebp
pop ebp
ret
call fcn.0042a72f
call fcn.004458bc
int3