// // GameLevelManager::reportLevel from 0x72b5bc to 0x72b870 (692 bytes) // // 2 xrefs: // > InfoLayer::FLAlert_Clicked @ 0x7e2480 // > @ 0x85140 // // 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::reportLevel(GameLevelManager *a1, int a2) { cocos2d::CCString *v4; // x0 const char *CString; // x0 cocos2d::CCString *v6; // x0 char *v7; // x21 cocos2d::CCString *v8; // x0 char *v9; // x0 int *p_m_unknown2; // 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 const char *v19; // [xsp+60h] [xbp+60h] BYREF const char *v20; // [xsp+68h] [xbp+68h] BYREF cocos2d::extension::CCHttpClient *v21; // [xsp+70h] [xbp+70h] BYREF if ( !GameLevelManager::hasReportedLevel(a1, a2) ) { GameLevelManager::markLevelAsReported(a1, a2); v4 = (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(v4); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"levelID=%i&secret=%s", (const char *)(unsigned int)a2, CString); v7 = (char *)cocos2d::CCString::getCString(v6); sub_D153B8((int)&v19, "https://www.boomlings.com/database/reportGJLevel.php"); sub_D153B8((int)&v20, v7); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a2); v9 = (char *)cocos2d::CCString::getCString(v8); sub_D153B8((int)&v21, v9); GameLevelManager::ProcessHttpRequest(a1, &v19, &v20, &v21, 18); p_m_unknown2 = &v21[-1].m_unknown2; if ( &v21[-1].m_unknown2 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { p_timeoutForConnect = (unsigned int *)&v21[-1]._timeoutForConnect; do timeoutForConnect = __ldaxr(p_timeoutForConnect); while ( __stlxr(timeoutForConnect - 1, p_timeoutForConnect) ); } else { timeoutForConnect = v21[-1]._timeoutForConnect; v21[-1]._timeoutForConnect = timeoutForConnect - 1; } if ( timeoutForConnect <= 0 ) operator delete(p_m_unknown2); } v11 = (char *)(v20 - 24); if ( v20 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v20 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *((_DWORD *)v20 - 2); *((_DWORD *)v20 - 2) = v18 - 1; } if ( v18 <= 0 ) operator delete(v11); } v12 = (char *)(v19 - 24); if ( v19 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v19 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v19 - 2); *((_DWORD *)v19 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v12); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source