// // DailyLevelPage::getDailyTimeString from 0x9131c8 to 0x913750 (1416 bytes) // // 3 xrefs: // > DailyLevelPage::init @ 0x914bf4 // > DailyLevelPage::updateTimers @ 0x915ac8 // > @ 0x933a8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __usercall DailyLevelPage::getDailyTimeString@( DailyLevelPage *this@, GameToolbox *a2@, __int64 a3@) { GJTimedLevelType m_type; // w1 unsigned __int64 v6; // d0 cocos2d::CCString *v7; // x0 char *CString; // x0 char *v9; // x0 void *v10; // x0 unsigned int *v12; // x1 int v13; // w2 unsigned int *v14; // x1 int v15; // w2 __int64 v16; // [xsp+48h] [xbp+48h] BYREF char *v17; // [xsp+50h] [xbp+50h] BYREF if ( this->m_type == Event ) { if ( roundf((float)((float)rand() * 4.6566e-10) * 1000.0) == 187.0 ) { sub_D153B8(a3, "This message is extremely rare."); } else { switch ( llroundf((float)((float)rand() * 4.6566e-10) * 30.0) ) { case 0u: sub_D153B8(a3, "New event level in ... ?"); break; case 1u: sub_D153B8(a3, "Events are pretty random"); break; case 2u: sub_D153B8(a3, "Next event in random hours from now"); break; case 3u: sub_D153B8(a3, "When is the next event?"); break; case 4u: sub_D153B8(a3, "NEW EVENT! .... soon"); break; case 5u: sub_D153B8(a3, "Why did I program this..."); break; case 6u: sub_D153B8(a3, "I believe in you"); break; case 7u: sub_D153B8(a3, "You can do it"); break; case 8u: sub_D153B8(a3, "Next one is a banger"); break; case 9u: sub_D153B8(a3, "This is fun"); break; case 0xAu: sub_D153B8(a3, "I can't find anything"); break; case 0xBu: sub_D153B8(a3, "Why is this a thing?"); break; case 0xCu: sub_D153B8(a3, "Do or do not. There is no try"); break; case 0xDu: sub_D153B8(a3, "The cake is a lie"); break; case 0xEu: sub_D153B8(a3, "Challenge accepted"); break; case 0xFu: sub_D153B8(a3, "I wonder what's next"); break; case 0x10u: sub_D153B8(a3, "Welcome to the event"); break; case 0x11u: sub_D153B8(a3, "Jump cube, jump"); break; case 0x12u: sub_D153B8(a3, "No event for you"); break; case 0x13u: sub_D153B8(a3, "This looks interesting"); break; case 0x14u: sub_D153B8(a3, "Something epic is coming..."); break; case 0x15u: sub_D153B8(a3, "Unlocking something... or not"); break; case 0x16u: sub_D153B8(a3, "This could be legendary"); break; case 0x17u: sub_D153B8(a3, "I wonder if it's a demon?"); break; case 0x18u: sub_D153B8(a3, "A wild event appears!"); break; case 0x19u: sub_D153B8(a3, "Let me cook"); break; case 0x1Au: sub_D153B8(a3, "Please wait, cooking."); break; case 0x1Bu: sub_D153B8(a3, "I don't think it's coming"); break; case 0x1Cu: sub_D153B8(a3, "Geometry Dashn't"); break; case 0x1Du: sub_D153B8(a3, "Uber gamer moment"); break; default: sub_D153B8(a3, "Free event is free"); break; } } } else { GameToolbox::getTimeString((GameToolbox *)(unsigned int)a2, nullptr, (__int64)&v16); m_type = this->m_type; v17 = &byte_124B6C8; if ( m_type == 1 ) { v6 = sub_D1798C(&v17, "Weekly Demon", 12).n128_u64[0]; } else if ( m_type ) { if ( m_type == Event ) v6 = sub_D1798C(&v17, "Event Level", 11).n128_u64[0]; else v6 = sub_D1798C(&v17, "NA", 2).n128_u64[0]; } else { v6 = sub_D1798C(&v17, "Daily Level", 11).n128_u64[0]; } v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"New %s in: %s", v17, v16, *(double *)&v6); CString = (char *)cocos2d::CCString::getCString(v7); sub_D153B8(a3, CString); v9 = v17 - 24; if ( v17 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v17 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *((_DWORD *)v17 - 2); *((_DWORD *)v17 - 2) = v15 - 1; } if ( v15 <= 0 ) operator delete(v9); } v10 = (void *)(v16 - 24); if ( (__int64 *)(v16 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v16 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *(_DWORD *)(v16 - 8); *(_DWORD *)(v16 - 8) = v13 - 1; } if ( v13 <= 0 ) operator delete(v10); } } return a3; }