// // GameLevelManager::getGJDailyLevelState from 0x3d418c to 0x3d4350 (452 bytes) // // 2 xrefs: // > DailyLevelPage::tryGetDailyStatus @ 0x4d3cc8 // > DailyLevelPage::init @ 0x4d54ca // // 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 // bool GameLevelManager::getGJDailyLevelState(GameLevelManager *a1, GJTimedLevelType a2) { char *v4; // r1 GameManager *v5; // r0 cocos2d::CCString *v6; // r0 char *CString; // r0 cocos2d::CCString *v8; // r0 cocos2d::CCString *v9; // r0 char *v10; // r0 bool v11; // r5 char *v13; // [sp+18h] [bp-34h] char *v14; // [sp+20h] [bp-2Ch] BYREF std::string v15; // [sp+24h] [bp-28h] BYREF int v16; // [sp+28h] [bp-24h] BYREF _BYTE v17[4]; // [sp+2Ch] [bp-20h] BYREF char *v18; // [sp+30h] [bp-1Ch] BYREF int v19; // [sp+34h] [bp-18h] BYREF char *v20; // [sp+38h] [bp-14h] BYREF const char *v21; // [sp+3Ch] [bp-10h] BYREF char *v22; // [sp+40h] [bp-Ch] BYREF v14 = (char *)&unk_ACDDA8; if ( a2 == 1 ) { v4 = "weekly_state"; } else if ( a2 == Event ) { v4 = "event_state"; } else { v4 = "daily_state"; } sub_7753D4((int)&v14, v4); if ( GameLevelManager::isDLActive(a1, v14) ) { v11 = 0; } else { GameLevelManager::addDLToActive(a1, v14); v5 = GameManager::sharedState(); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(v5->m_chk.random - v5->m_chk.seed)); CString = (char *)cocos2d::CCString::getCString(v6); sub_776584((int)&v15, CString); sub_776584((int)v17, "59182"); cocos2d::ZipUtils::base64EncodeEnc((cocos2d::ZipUtils *)&v16, &v15, (std::string)v17); sub_774008(v17); GameLevelManager::getBasePostString((GameLevelManager *)&v18); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &aO1i2r3e45s7t89[10]); v13 = (char *)cocos2d::CCString::getCString(v8); gen_random((int)&v19, 5); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&secret=%s&type=%i&chk=%s%s", v13, a2, v19, v16); v10 = (char *)cocos2d::CCString::getCString(v9); sub_774544((int)&v18, v10); sub_774008(&v19); sub_776584((int)&v20, "https://www.boomlings.com/database/getGJDailyLevel.php"); sub_776584((int)&v21, v18); sub_775C20(&v22); GameLevelManager::ProcessHttpRequest(a1, &v20, &v21, &v22, 48); v11 = 1; sub_774008(&v22); sub_774008(&v21); sub_774008(&v20); sub_774008(&v18); sub_774008(&v16); sub_774008(&v15); } sub_774008(&v14); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source