// // GJMultiplayerManager::joinLobby from 0x983204 to 0x98358c (904 bytes) // // 2 xrefs: // > MPLobbyLayer::onUpdateLobby @ 0x9c9bc8 // > @ 0x829c8 // // 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 // // local variable allocation has failed, the output may be wrong! bool GJMultiplayerManager::joinLobby(GJMultiplayerManager *a1, int a2) { cocos2d::CCString *v4; // x0 char *CString; // x21 _BOOL4 isDLActive; // w1 bool result; // w0 unsigned int LastCommentIDForGame; // w23 cocos2d::CCString *v9; // x0 const char *v10; // x0 cocos2d::CCString *v11; // x0 size_t v12; // x0 char *v13; // x0 char *v14; // x0 char *v15; // x0 void *v16; // x0 unsigned int *v17; // x1 int v18; // w2 unsigned int *v19; // x1 int v20; // w2 unsigned int *v21; // x1 int v22; // w2 unsigned int *v23; // x1 int v24; // w2 const char *v25; // [xsp+58h] [xbp+58h] __int64 v26; // [xsp+78h] [xbp+78h] BYREF const char *v27; // [xsp+80h] [xbp+80h] BYREF const char *v28; // [xsp+88h] [xbp+88h] BYREF const char *v29; // [xsp+90h] [xbp+90h] BYREF v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i_joinLobby", *(const char **)&a2); CString = (char *)cocos2d::CCString::getCString(v4); isDLActive = GJMultiplayerManager::isDLActive(a1, CString); result = 0; if ( !isDLActive ) { GJMultiplayerManager::addDLToActive(a1, CString); GJMultiplayerManager::getBasePostString(a1, (__int64)&v26); LastCommentIDForGame = GJMultiplayerManager::getLastCommentIDForGame(a1, a2); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfv", "3899", 103, 99, "9"); v10 = cocos2d::CCString::getCString(v9); v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&gameID=%i&lastCommentID=%i&secret=%s", (const char *)(unsigned int)a2, LastCommentIDForGame, v10); v25 = cocos2d::CCString::getCString(v11); v12 = strlen(v25); sub_D15FD4(&v26, v25, v12); sub_D153B8((int)&v27, "https://www.geometrydash.com/database/joinMPLobby.php"); sub_D18D28(&v28); sub_D153B8((int)&v29, CString); GJMultiplayerManager::ProcessHttpRequest(a1, &v27, &v28, &v29, 57); v13 = (char *)(v29 - 24); if ( v29 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v29 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *((_DWORD *)v29 - 2); *((_DWORD *)v29 - 2) = v20 - 1; } if ( v20 <= 0 ) operator delete(v13); } v14 = (char *)(v28 - 24); if ( v28 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v28 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v28 - 2); *((_DWORD *)v28 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v14); } v15 = (char *)(v27 - 24); if ( v27 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v27 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *((_DWORD *)v27 - 2); *((_DWORD *)v27 - 2) = v24 - 1; } if ( v24 <= 0 ) operator delete(v15); } v16 = (void *)(v26 - 24); if ( (__int64 *)(v26 - 24) == &qword_124B6B0 ) return 1; if ( &pthread_create ) { v17 = (unsigned int *)(v26 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(v26 - 8); *(_DWORD *)(v26 - 8) = v18 - 1; } if ( v18 > 0 ) { return 1; } else { operator delete(v16); return 1; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source