// // GameLevelManager::getLevelLists from 0x72b870 to 0x72bd18 (1192 bytes) // // 3 xrefs: // > LevelBrowserLayer::loadPage @ 0x6ea4d4 // > LevelListLayer::onRefreshLevelList @ 0xa734d0 // > @ 0x76e90 // // 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::getLevelLists(GameLevelManager *a1, GJSearchObject *a2) { char *Key; // x23 double v5; // d0 const char *v6; // x27 SearchType m_searchType; // w26 unsigned int m_page; // w22 cocos2d::CCString *v9; // x0 const char *CString; // x0 cocos2d::CCString *v11; // x0 size_t v12; // x0 char *v13; // x0 size_t v14; // x0 char *v15; // x0 int *p_m_unknown2; // x0 char *v17; // x0 char *v18; // x0 char *v19; // x0 unsigned int *v20; // x20 int v21; // w1 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x1 int v25; // w2 unsigned int *v26; // x1 int v27; // w2 unsigned int *p_timeoutForConnect; // x1 int timeoutForConnect; // w2 unsigned int *v30; // x1 int v31; // w2 const char *v32; // [xsp+68h] [xbp+68h] char *v33; // [xsp+68h] [xbp+68h] char *v34; // [xsp+88h] [xbp+88h] BYREF const char *v35; // [xsp+90h] [xbp+90h] BYREF char *v36; // [xsp+98h] [xbp+98h] BYREF const char *v37; // [xsp+A0h] [xbp+A0h] BYREF const char *v38; // [xsp+A8h] [xbp+A8h] BYREF cocos2d::extension::CCHttpClient *v39; // [xsp+B0h] [xbp+B0h] BYREF Key = (char *)GJSearchObject::getKey(a2); if ( !GameLevelManager::isDLActive(a1, Key) ) { GameLevelManager::addDLToActive(a1, Key); GameLevelManager::getBasePostString(a1, (__int64)&v34); *(_QWORD *)&v5 = sub_D18D28(&v35).n128_u64[0]; v6 = v35; m_searchType = a2->m_searchType; m_page = a2->m_page; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7", v5); CString = cocos2d::CCString::getCString(v9); v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&str=%s&type=%i&page=%i&secret=%s", v6, (unsigned int)m_searchType, m_page, CString); v32 = cocos2d::CCString::getCString(v11); v12 = strlen(v32); sub_D15FD4(&v34, v32, v12); v13 = (char *)(v35 - 24); if ( v35 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v35 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *((_DWORD *)v35 - 2); *((_DWORD *)v35 - 2) = v23 - 1; } if ( v23 <= 0 ) operator delete(v13); } GameLevelManager::writeSpecialFilters(a1, a2, (__int64)&v36); v33 = v36; v14 = strlen(v36); sub_D15FD4(&v34, v33, v14); v15 = v36 - 24; if ( v36 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v36 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *((_DWORD *)v36 - 2); *((_DWORD *)v36 - 2) = v25 - 1; } if ( v25 <= 0 ) operator delete(v15); } sub_D153B8((int)&v37, "https://www.boomlings.com/database/getGJLevelLists.php"); sub_D153B8((int)&v38, v34); sub_D153B8((int)&v39, Key); GameLevelManager::ProcessHttpRequest(a1, &v37, &v38, &v39, 60); p_m_unknown2 = &v39[-1].m_unknown2; if ( &v39[-1].m_unknown2 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { p_timeoutForConnect = (unsigned int *)&v39[-1]._timeoutForConnect; do timeoutForConnect = __ldaxr(p_timeoutForConnect); while ( __stlxr(timeoutForConnect - 1, p_timeoutForConnect) ); } else { timeoutForConnect = v39[-1]._timeoutForConnect; v39[-1]._timeoutForConnect = timeoutForConnect - 1; } if ( timeoutForConnect <= 0 ) operator delete(p_m_unknown2); } v17 = (char *)(v38 - 24); if ( v38 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v38 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *((_DWORD *)v38 - 2); *((_DWORD *)v38 - 2) = v27 - 1; } if ( v27 <= 0 ) operator delete(v17); } v18 = (char *)(v37 - 24); if ( v37 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(v37 - 8); do v31 = __ldaxr(v30); while ( __stlxr(v31 - 1, v30) ); } else { v31 = *((_DWORD *)v37 - 2); *((_DWORD *)v37 - 2) = v31 - 1; } if ( v31 <= 0 ) operator delete(v18); } v19 = v34 - 24; if ( v34 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v34 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *((_DWORD *)v34 - 2); *((_DWORD *)v34 - 2) = v21 - 1; } if ( v21 <= 0 ) operator delete(v19); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source