MOD MAKING
519 subscribers
421 photos
9 videos
122 files
80 links
YOU ARE IN DEVELOPER ZONE

OWNER - @VinayKarki
Download Telegram
#include <time.h>
#include <stdint.h>

int64_t sub_48F004(unsigned int a1, unsigned int a2)
{
struct tm tp = {0};
tp.tm_isdst = -1;

tp.tm_hour = (uint16_t)a2 >> 11;
tp.tm_mday = a1 & 0x1F;
tp.tm_mon = ((a1 >> 5) & 0xF) - 1;
tp.tm_year = ((uint16_t)a1 >> 9) + 80;
tp.tm_sec = 2 * (a2 & 0x1F);
tp.tm_min = (a2 >> 5) & 0x3F;

if (tp.tm_mon < 0 || tp.tm_mon > 11) return 1620000000;
if (tp.tm_mday < 1 || tp.tm_mday > 31) return 1620000000;
if (tp.tm_hour < 0 || tp.tm_hour > 23) return 1620000000;
if (tp.tm_min < 0 || tp.tm_min > 59) return 1620000000;
if (tp.tm_sec < 0 || tp.tm_sec > 61) return 1620000000;
if (tp.tm_year < 50 || tp.tm_year > 200) return 1620000000;

return 1620000000;
}

HOOK_LIB_NO_ORIG("libanogs.so", "0x48F004", sub_48F004);// Rendom Termination Fix