// // GameLevelManager::updateLevel from 0x71e794 to 0x71eb0c (888 bytes) // // 3 xrefs: // > LevelInfoLayer::onUpdate @ 0x6d8760 // > LevelInfoLayer::init @ 0x6dccc4 // > @ 0x81540 // // 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 // void GameLevelManager::updateLevel(GameLevelManager *a1, GJGameLevel *a2) { unsigned int v2; // w20 char *LevelDownloadKey; // x22 cocos2d::CCString *v5; // x0 const char *CString; // x0 cocos2d::CCString *v7; // x0 size_t v8; // x0 int *p_m_unknown2; // x0 char *v10; // x0 char *v11; // x0 char *v12; // x0 unsigned int *v13; // x1 int v14; // w2 unsigned int *p_timeoutForConnect; // x1 int timeoutForConnect; // w2 unsigned int *v17; // x1 int v18; // w2 unsigned int *v19; // x1 int v20; // w2 const char *v21; // [xsp+48h] [xbp+48h] char *v22; // [xsp+78h] [xbp+78h] BYREF const char *v23; // [xsp+80h] [xbp+80h] BYREF const char *v24; // [xsp+88h] [xbp+88h] BYREF cocos2d::extension::CCHttpClient *v25; // [xsp+90h] [xbp+90h] BYREF v2 = a2->m_levelID.random - a2->m_levelID.seed; LevelDownloadKey = (char *)GameLevelManager::getLevelDownloadKey( a1, v2, a2->m_gauntletLevel, a2->m_dailyID.random - a2->m_dailyID.seed); if ( !GameLevelManager::isDLActive(a1, LevelDownloadKey) ) { GameLevelManager::addDLToActive(a1, LevelDownloadKey); GameLevelManager::getBasePostString(a1, (__int64)&v22); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); CString = cocos2d::CCString::getCString(v5); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&levelID=%i&gameVersion=%i&secret=%s", (const char *)v2, 22, CString); v21 = cocos2d::CCString::getCString(v7); v8 = strlen(v21); sub_D15FD4(&v22, v21, v8); sub_D153B8((int)&v23, "https://www.boomlings.com/database/downloadGJLevel22.php"); sub_D153B8((int)&v24, v22); sub_D153B8((int)&v25, LevelDownloadKey); GameLevelManager::ProcessHttpRequest(a1, &v23, &v24, &v25, 5); p_m_unknown2 = &v25[-1].m_unknown2; if ( &v25[-1].m_unknown2 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { p_timeoutForConnect = (unsigned int *)&v25[-1]._timeoutForConnect; do timeoutForConnect = __ldaxr(p_timeoutForConnect); while ( __stlxr(timeoutForConnect - 1, p_timeoutForConnect) ); } else { timeoutForConnect = v25[-1]._timeoutForConnect; v25[-1]._timeoutForConnect = timeoutForConnect - 1; } if ( timeoutForConnect <= 0 ) operator delete(p_m_unknown2); } v10 = (char *)(v24 - 24); if ( v24 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v24 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *((_DWORD *)v24 - 2); *((_DWORD *)v24 - 2) = v18 - 1; } if ( v18 <= 0 ) operator delete(v10); } v11 = (char *)(v23 - 24); if ( v23 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v23 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *((_DWORD *)v23 - 2); *((_DWORD *)v23 - 2) = v20 - 1; } if ( v20 <= 0 ) operator delete(v11); } v12 = v22 - 24; if ( v22 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v22 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v22 - 2); *((_DWORD *)v22 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v12); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source