Function at 0x4084d0
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4312b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
push str._newverupdate.txt
push 0x43f5a8
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x68]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408574
push str._newverddtmzq.exe
push 0x43f5a8
lea edx, [ebp - 0x3c]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x38], 0
je 0x408574
mov dword [ebp - 0x74], 1
jmp 0x40857b
mov dword [ebp - 0x74], 0
mov cl, byte [ebp - 0x74]
mov byte [ebp - 0x30], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x30]
and edx, 0xff
test edx, edx
je 0x4088b5
lea ecx, [ebp - 0x1c]
call fcn.00430110
mov dword [ebp - 4], 2
push 0
push 0x40
push str._newverupdate.txt
push 0x43f5a8
lea eax, [ebp - 0x44]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x7c]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::Open
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x40], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x40]
and edx, 0xff
test edx, edx
je 0x4088a6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::GetLength
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::GetLength
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::Close
push str._r_nsize
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
push 0x435378
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], 0
jl 0x408675
cmp dword [ebp - 0x28], 0
jge 0x40869f
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x48]
jmp 0x4088b7
push str._r_nsize
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x24]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Mid
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x84]
call fcn.00408e10
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [0x43f5a4], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
push str._r_ncrc
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
push 0x435378
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], 0
jl 0x408734
cmp dword [ebp - 0x28], 0
jge 0x40875e
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x50]
jmp 0x4088b7
push str._r_ncrc
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x24]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Mid
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, 0x43f59c
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
call fcn.00409d30
test eax, eax
je 0x40889a
push 0
push 0
push 0x4354f0
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0
push 0
push 0x4354e4
push 0x43f5a8
lea ecx, [ebp - 0x58]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x94]
call fcn.00408e10
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
push str._newverupdate.txt
push 0x43f5a8
lea eax, [ebp - 0x5c]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x9c]
call fcn.00408e10
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x60]
jmp 0x4088b7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::CFile
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret