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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab005
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4d9320]
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 dword [ebp - 4], 2
lea ecx, [ebp - 0x120]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
mov dword [ebp - 0x120], 0
call dword [sym.imp.MSVCP120.dll_enum_std::tr2::sys::file_type___cdecl_std::tr2::sys::_Stat_wchar_t_const___int__]
add esp, 8
test eax, eax
je 0x450c12
cmp eax, 1
je 0x450c12
push 0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x138], 0xc
push eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x450c12
cmp dword [ebp - 0x11c], 0
je 0x450c12
cmp dword [ebp - 0x124], 0
je 0x450c12
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], eax
xor eax, eax
mov word [ebp - 0x158], ax
mov dword [ebp - 0x15c], 0x101
call fcn.0044faf0
push str.7za.exe
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00420c60
add esp, 4
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00407720
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp + 8]
call fcn.00420e20
mov edi, eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x20]
call fcn.00420e20
mov esi, eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x58]
call fcn.00420e20
push str._e__bsp2__y__
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.004181c0
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb8]
call fcn.00450eb0
add esp, 4
push str.___o_
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
call fcn.004181c0
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.00450eb0
add esp, 4
push 0x4b9878
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.004181c0
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.00407720
lea ecx, [ebp - 0xa0]
call fcn.00407720
lea ecx, [ebp - 0xb8]
call fcn.00407720
lea ecx, [ebp - 0xe8]
call fcn.00407720
lea ecx, [ebp - 0x118]
call fcn.00407720
lea ecx, [ebp - 0xd0]
call fcn.00407720
lea ecx, [ebp - 0x100]
call fcn.00407720
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x188]
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x124]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
mov byte [ebp - 4], 0x15
test ebx, ebx
je 0x450be6
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
mov esi, dword [sym.imp.MSVCR120.dll_sscanf_s]
mov dword [ebp - 0x12c], ebx
cmp ecx, 0x400
jb 0x450ae8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0x400
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 0x400], bl
jmp 0x450afa
mov eax, 0x400
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.004260f0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x12c]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x11c]
call edi
test eax, eax
je 0x450bd5
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x450b42
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], bl
jmp 0x450b4f
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004260f0
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x128], ebx
cmp dword [ebp + 0x48], ebx
je 0x450b90
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push str._d___n
push eax
call esi
add esp, 0x10
test eax, eax
jle 0x450b90
cmp dword [ebp - 0x128], ebx
jg 0x450b98
mov ecx, dword [ebp - 0x18]
jmp 0x450ac6
movd xmm0, dword [ebp - 0x120]
cvtdq2pd xmm0, xmm0
mov ecx, dword [ebp + 0x48]
divsd xmm0, qword [0x4c5e10]
movsd qword [ebp - 0x140], xmm0
test ecx, ecx
je 0x450bcf
mov eax, dword [ecx]
lea edx, [ebp - 0x140]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
jmp 0x450ac6
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_function_call_void_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
lea ecx, [ebp - 0x28]
sete bl
call fcn.004202f0
lea ecx, [ebp - 0x40]
call fcn.00407720
lea ecx, [ebp - 0x58]
call fcn.00407720
jmp 0x450c14
xor bl, bl
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x450c28
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x450c4a
push dword [ebp + 0x20]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
test ecx, ecx
je 0x450c7d
mov esi, dword [ecx]
lea eax, [ebp + 0x38]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
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.004a310c
mov esp, ebp
pop ebp
ret