Function at 0x407987
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x428f90
call fcn.00428180
mov eax, 0x11bc
call fcn.00428370
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0x14], ebx
je 0x4079dc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42ff5c
lea ecx, [esi + 0xb4]
mov edi, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push ebx
push ebx
push 0x405
push dword [esi + 0x94]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4079df
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
push dword [0x4351c4]
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
push str._s7z.exe
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x1c8]
xor esi, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x407a24
test byte [ebp - 0x1c8], 0x10
jne 0x407a24
push 1
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, ebx
je 0x407c35
push 0x44
lea eax, [ebp - 0x88]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0x5c], 1
mov word [ebp - 0x58], bx
mov dword [ebp - 0x88], esi
call sub.MSVCRT.dll_memset
push 0x1000
lea eax, [ebp - 0x11c8]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 0x11c8]
push dword [ebp + 8]
push str.__s__x__r__y__p123321_Package.7z
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x11c8]
push dword [0x4351c4]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407af8
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.CreateProcess_failed___d__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00427e82
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00427e82
xor eax, eax
jmp 0x407cd9
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x10], ebx
jne 0x407c2d
cmp edi, ebx
je 0x407b34
mov dword [edi + 0x64], 1
cmp edi, ebx
mov dword [ebp - 0x14], 1
je 0x407b62
push 0x42ff20
lea ecx, [edi + 0xb4]
call sub.MFC42.DLL_CWnd::SetWindowTextA
push ebx
push ebx
push 0x405
push dword [edi + 0x94]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [0x435288]
cmp edi, dword [0x43528c]
je 0x407cca
lea eax, [edi + 4]
mov esi, 0x4350f8
mov dword [ebp - 0x10], eax
push edi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 3
call fcn.004076b5
add esp, 0x10
cmp eax, ebx
jne 0x407c59
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push 0x42ff0c
push eax
call sub.MFC42.DLL_CString::Format
pop ecx
lea eax, [ebp - 0x24]
pop ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x435100
call fcn.0040853d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
jmp 0x407c9b
mov dword [ebp - 0x14], ebx
jmp 0x407cca
cmp edi, ebx
je 0x407cca
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x42fd18
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x435100
call fcn.0040853d
jmp 0x407cca
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push dword [ebp - 0x18]
push 0x42fef4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x435100
call fcn.0040853d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00427e82
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00427e82
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00427e82
add dword [ebp - 0x10], 8
add edi, 8
cmp edi, dword [0x43528c]
jne 0x407b7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00427e82
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4