Function at 0x4020f0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x403520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x15c]
mov dword [esp + 0x18], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x40645c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0x264], ebx
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x40216a
jmp dword [eax*4 + 0x402508]
call fcn.00401890
lea edx, [esp + 0x24]
push 0x69
push edx
mov dword [esp + 0x1c], 1
mov ebp, 0x406280
call fcn.00402ce0
mov esi, eax
lea eax, [esp + 0x44]
push 0x6a
push eax
mov byte [esp + 0x274], 1
call fcn.00402ce0
add esp, 0x10
push esi
lea ecx, [esp + 0x54]
push eax
push ecx
mov byte [esp + 0x270], 2
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x50]
mov byte [esp + 0x264], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x264], 1
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x264], bl
lea ecx, [esp + 0x24]
jmp 0x402410
lea edx, [esp + 0x44]
push 0x69
push edx
mov ebp, 0x406258
call fcn.00402ce0
mov esi, eax
lea eax, [esp + 0x34]
push 0x6b
push eax
mov byte [esp + 0x274], 4
call fcn.00402ce0
add esp, 0x10
push esi
lea ecx, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x270], 5
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x4c]
mov byte [esp + 0x264], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x264], 4
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x264], bl
lea ecx, [esp + 0x44]
jmp 0x402410
lea edx, [esp + 0x1c]
push 0x69
push edx
mov ebp, 0x406230
call fcn.00402ce0
mov esi, eax
lea eax, [esp + 0x20]
push 0x6c
push eax
mov byte [esp + 0x274], 7
call fcn.00402ce0
add esp, 0x10
push esi
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x270], 8
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x264], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 7
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x264], bl
lea ecx, [esp + 0x1c]
jmp 0x402410
lea edx, [esp + 0x30]
push 0x69
push edx
mov ebp, 0x406208
call fcn.00402ce0
mov esi, eax
lea eax, [esp + 0x30]
push 0x6d
push eax
mov byte [esp + 0x274], 0xa
call fcn.00402ce0
add esp, 0x10
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x270], 0xb
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x264], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x264], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x264], bl
lea ecx, [esp + 0x30]
jmp 0x402410
call fcn.00401890
lea edx, [esp + 0x48]
push 0x69
push edx
mov dword [esp + 0x1c], 1
mov ebp, 0x406280
call fcn.00402ce0
mov esi, eax
lea eax, [esp + 0x48]
push 0x6a
push eax
mov byte [esp + 0x274], 0xd
call fcn.00402ce0
add esp, 0x10
push esi
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x270], 0xe
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 0xf
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x264], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x264], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x264], bl
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea edx, [esp + 0x58]
push 0x26
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x406204
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ebp, 0xffffffff
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x54]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x4024cf
lea ecx, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp dword [esp + 0x14], 1
jne 0x4024b8
call fcn.00401980
lea ecx, [esp + 0x10]
mov dword [esp + 0x264], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4024ed
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov dword [esp + 0x264], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret