This commit is contained in:
Anonymous275 2020-11-14 23:31:58 +02:00
parent 5753ebb887
commit 179b46d17b
3 changed files with 16 additions and 0 deletions

View File

@ -10,3 +10,4 @@ void FindDLL(const std::string& Name);
void SecurityCheck(char* argv[]);
std::string GetGameDir();
void LegitimacyCheck();
void DASM();

View File

@ -23,6 +23,20 @@ void DAS(){
f.close();
#endif
}
void DASM(){
#ifndef DEBUG
int i = 0;
std::ifstream f(GetEN(), std::ios::binary);
f.seekg(0, std::ios_base::end);
std::streampos fileSize = f.tellg();
if(IsDebuggerPresent() || fileSize > 0x4C4B40){
i++;
DAboard();
}
if(i)DAboard();
f.close();
#endif
}
DWORD getParentPID(DWORD pid){
HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
PROCESSENTRY32 pe = {0};

View File

@ -19,6 +19,7 @@ int main(int argc, char* argv[]) {
std::thread gb(aa);
gb.detach();
#endif
DASM();
InitLauncher(argc,argv);
CheckDir(argc,argv);
LegitimacyCheck();