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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c800b
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x501320]
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 - 0x138]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
mov dword [ebp - 0x138], 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 0x45f762
cmp eax, 1
je 0x45f762
push 0
lea eax, [ebp - 0x154]
mov dword [ebp - 0x140], 0
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x154], 0xc
push eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x45f762
cmp dword [ebp - 0x140], 0
je 0x45f762
cmp dword [ebp - 0x13c], 0
je 0x45f762
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x16c], eax
xor eax, eax
mov word [ebp - 0x178], ax
lea eax, [ebp - 0x70]
push str.7za.exe
push eax
sub esp, 0x18
mov dword [ebp - 0x17c], 0x101
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x138], ecx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push 0x4d58ec
mov byte [ebp - 4], 3
call fcn.004258d0
push 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.0045cc80
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0045e3a0
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.00425b20
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.00409a80
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 8
call fcn.0040b700
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp + 8]
call fcn.00425cc0
mov edi, eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 0x20]
call fcn.00425cc0
mov esi, eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x58]
call fcn.00425cc0
push str._e__bsp2__y__
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
push eax
call fcn.0041cc10
add esp, 0xc
push esi
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x100]
call fcn.00458610
add esp, 4
mov byte [ebp - 4], 0xd
push str.___o_
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0041cc10
add esp, 0xc
push edi
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.00458610
add esp, 4
push 0x4db910
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xf
push eax
call fcn.0041cc10
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.00409a80
lea ecx, [ebp - 0xb8]
call fcn.00409a80
lea ecx, [ebp - 0x100]
call fcn.00409a80
lea ecx, [ebp - 0xa0]
call fcn.00409a80
lea ecx, [ebp - 0xe8]
call fcn.00409a80
lea ecx, [ebp - 0x118]
call fcn.00409a80
lea ecx, [ebp - 0xd0]
call fcn.00409a80
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x1a8]
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 - 0x13c]
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], 0x18
test ebx, ebx
je 0x45f736
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
mov esi, dword [sym.imp.MSVCR120.dll_sscanf_s]
mov dword [ebp - 0x144], ebx
cmp ecx, 0x400
jb 0x45f637
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 0x45f649
mov eax, 0x400
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.00430c50
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x144]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x140]
call edi
test eax, eax
je 0x45f725
mov ecx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x45f691
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 0x45f69e
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00430c50
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x148], ebx
cmp dword [ebp + 0x48], ebx
je 0x45f6e0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x138]
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 0x45f6e0
cmp dword [ebp - 0x148], ebx
jg 0x45f6e8
nop
mov ecx, dword [ebp - 0x18]
jmp 0x45f615
movd xmm0, dword [ebp - 0x138]
cvtdq2pd xmm0, xmm0
mov ecx, dword [ebp + 0x48]
divsd xmm0, qword [0x4eb5a0]
movsd qword [ebp - 0x160], xmm0
test ecx, ecx
je 0x45f71f
mov eax, dword [ecx]
lea edx, [ebp - 0x160]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
jmp 0x45f615
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 - 0x140]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
lea ecx, [ebp - 0x28]
sete bl
call fcn.00428690
lea ecx, [ebp - 0x40]
call fcn.00409a80
lea ecx, [ebp - 0x58]
call fcn.00409a80
jmp 0x45f764
xor bl, bl
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x45f778
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 0x45f79a
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 0x45f7cd
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.004bddec
mov esp, ebp
pop ebp
ret