Function at 0x40ca50
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431cd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push esi
push edi
mov dword [ebp - 0x160], 0
push str.des:md5:sh
lea ecx, [ebp - 0x10]
call fcn.004300a4
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
push 0x64
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x64
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x74
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x6d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x7a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x71
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x2e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x65
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x78
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x65
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
lea ecx, [ebp - 0x10]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x10]
call fcn.00408dd0
push eax
lea eax, [ebp - 0x148]
push eax
mov ecx, 0x4666c0
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x190]
call fcn.00409fc0
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x144], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x144]
and edx, 0xff
test edx, edx
je 0x40cc6b
push 0
call dword [sym.imp.MSVCRT.dll_exit]
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004300a4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11c]
call fcn.00408e10
push eax
mov ecx, 0x4666c0
call fcn.00409fc0
test eax, eax
je 0x40ccb7
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [ebp - 0x14], 0
push 0x75
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x70
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x61
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x74
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1a4], edx
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x65
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x2e
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x65
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x78
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x65
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push 0x5c
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x120], eax
lea edx, [ebp - 0x10]
push edx
push 0x435bd4
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x1bc], eax
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x150]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x154]
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x1cc], eax
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x154]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x11c]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40cf4d
push str.1a567c__d89b58392c
mov ecx, dword [ebp + 8]
call fcn.004300a4
mov ecx, dword [ebp - 0x160]
or ecx, 1
mov dword [ebp - 0x160], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x40d0e1
lea ecx, [ebp - 0x130]
call fcn.00430110
mov byte [ebp - 4], 7
push 0
push 0x40
lea ecx, [ebp - 0x11c]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40d099
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::GetLength
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.0040a020
add esp, 8
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x140]
push eax
push str._x_d
lea ecx, [ebp - 0x13c]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp - 0x160]
or edx, 1
mov dword [ebp - 0x160], edx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x40d0e1
push str.SUCCESS_
mov ecx, dword [ebp + 8]
call fcn.004300a4
mov eax, dword [ebp - 0x160]
or al, 1
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret