// // GameLevelManager::getGJChallenges from 0x3d3fd4 to 0x3d4160 (396 bytes) // // 2 xrefs: // > ChallengesPage::tryGetChallenges @ 0x4cbb40 // > ChallengesPage::init @ 0x4ccd8c // // 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::getGJChallenges(GameLevelManager *a1) { GameManager *v1; // r0 cocos2d::CCString *v2; // r0 char *CString; // r0 cocos2d::CCString *v4; // r0 const char *v5; // r8 cocos2d::CCString *v6; // r0 char *v7; // r0 char *v10; // [sp+1Ch] [bp-28h] BYREF std::string v11; // [sp+20h] [bp-24h] BYREF int v12; // [sp+24h] [bp-20h] BYREF _BYTE v13[4]; // [sp+28h] [bp-1Ch] BYREF int v14; // [sp+2Ch] [bp-18h] BYREF char *v15; // [sp+30h] [bp-14h] BYREF const char *v16; // [sp+34h] [bp-10h] BYREF char *v17; // [sp+38h] [bp-Ch] BYREF if ( GameLevelManager::isDLActive(a1, "get_chal") ) return 0; GameLevelManager::addDLToActive(a1, "get_chal"); GameLevelManager::getBasePostString((GameLevelManager *)&v10); v1 = GameManager::sharedState(); v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(v1->m_chk.random - v1->m_chk.seed)); CString = (char *)cocos2d::CCString::getCString(v2); sub_776584((int)&v11, CString); sub_776584((int)v13, "19847"); cocos2d::ZipUtils::base64EncodeEnc((cocos2d::ZipUtils *)&v12, &v11, (std::string)v13); sub_774008(v13); v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &aO1i2r3e45s7t89[10]); v5 = cocos2d::CCString::getCString(v4); gen_random((int)&v14, 5); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&world=%i&gdl=%i&secret=%s&chk=%s%s", nullptr, 0, v5, v14, v12); v7 = (char *)cocos2d::CCString::getCString(v6); sub_774544((int)&v10, v7); sub_774008(&v14); sub_776584((int)&v15, "https://www.boomlings.com/database/getGJChallenges.php"); sub_776584((int)&v16, v10); sub_776584((int)&v17, "get_chal"); GameLevelManager::ProcessHttpRequest(a1, &v15, &v16, &v17, 47); sub_774008(&v17); sub_774008(&v16); sub_774008(&v15); sub_774008(&v12); sub_774008(&v11); sub_774008(&v10); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source