Function at 0x404274
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x6c
mov eax, 0x40846e
call fcn.004077de
xor eax, eax
lea ecx, [ebp - 0x3c]
mov word [0x40e788], ax
mov word [0x40e992], ax
mov word [0x40eb9c], ax
mov word [0x40eda6], ax
call fcn.004023ae
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.004017ed
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 1
xor ecx, ecx
call fcn.00402476
lea ecx, [ebp - 0x24]
call fcn.0040197a
or ebx, 0xffffffff
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0040197a
mov edi, str.7z.exe
lea ecx, [ebp - 0x24]
push edi
call fcn.004050f8
push 2
pop esi
lea edx, [ebp - 0x24]
mov dword [ebp - 4], esi
xor ecx, ecx
call fcn.00402476
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040197a
lea ecx, [ebp - 0x3c]
call fcn.004023ae
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.004017ed
xor ecx, ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x24]
inc ecx
call fcn.00402476
lea ecx, [ebp - 0x24]
call fcn.0040197a
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0040197a
push str.Mesen.zip
lea ecx, [ebp - 0x24]
call fcn.004050f8
xor ecx, ecx
mov dword [ebp - 4], 5
lea edx, [ebp - 0x24]
inc ecx
call fcn.00402476
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040197a
lea ecx, [ebp - 0x3c]
call fcn.004023ae
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.004017ed
mov byte [ebp - 4], 7
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.00402476
lea ecx, [ebp - 0x24]
call fcn.0040197a
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0040197a
push str.dotnet.exe
lea ecx, [ebp - 0x24]
call fcn.004050f8
lea edx, [ebp - 0x24]
mov dword [ebp - 4], 8
mov ecx, esi
call fcn.00402476
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040197a
push str.https:__download.visualstudio.microsoft.com_download_pr_76e5dbb2_6ae3_4629_9a84_527f8feb709c_09002599b32d5d01dc3aa5dcdffcc984_windowsdesktop_runtime_8.0.6_win_x64.exe
lea ecx, [ebp - 0x24]
call fcn.004050f8
mov edx, esi
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x24]
call fcn.00402714
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040197a
push str.https:__nightly.link_SourMesen_Mesen2_workflows_build_master_Mesen_20_28Windows_20__20net8.0_20__20AoT_29.zip
lea ecx, [ebp - 0x24]
call fcn.004050f8
xor edx, edx
mov dword [ebp - 4], 0xa
inc edx
lea ecx, [ebp - 0x24]
call fcn.00402714
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040197a
push edi
lea ecx, [ebp - 0x24]
call fcn.004050f8
xor edx, edx
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
call fcn.00402696
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040197a
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x78]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebp - 0x78]
mov eax, 0x4190d0
mov edi, eax
push 0xf
pop ecx
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [0x4190d0], ebx
mov dword [0x4190d4], 0x40
mov dword [0x4190ec], 5
mov dword [0x4190e0], 0x40e788
mov dword [0x4190e4], 0x40b16c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [0x419108]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4044aa
push 0xffffffffffffffff
push eax
call ebx
push 0x3c
lea eax, [ebp - 0x78]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebp - 0x78]
mov eax, 0x4190d0
mov edi, eax
push 0xf
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x3c
pop esi
mov edi, 0x40eb9c
mov dword [0x4190d0], esi
push eax
mov dword [0x4190d4], 0x40
mov dword [0x4190ec], 5
mov dword [0x4190e0], edi
mov dword [0x4190e4], 0x40b18c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [0x419108]
test eax, eax
je 0x404510
push 0xffffffffffffffff
push eax
call ebx
push ecx
push 0x40e788
lea ecx, [ebp - 0x24]
call fcn.00405653
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xc
call fcn.004022ab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040197a
push ecx
push 0x40e992
lea ecx, [ebp - 0x24]
call fcn.00405653
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xd
call fcn.004022ab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040197a
push ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.00405653
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xe
call fcn.004022ab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040197a
push str.Mesen.exe
lea ecx, [ebp - 0x24]
call fcn.004050f8
push 0xf
pop edi
push 3
lea edx, [ebp - 0x24]
mov dword [ebp - 4], edi
pop ecx
call fcn.00402476
lea ecx, [ebp - 0x24]
call fcn.0040197a
push esi
lea eax, [ebp - 0x78]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebp - 0x78]
mov eax, 0x4190d0
mov ecx, edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [0x4190d0], 0x3c
mov dword [0x4190d4], 0x40
mov dword [0x4190ec], 5
mov dword [0x4190e0], 0x40eda6
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [0x419108]
test eax, eax
je 0x404607
push 0xffffffffffffffff
push eax
call ebx
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3