// // GameLevelManager::deleteServerLevel from 0x71f300 to 0x71f894 (1428 bytes) // // 2 xrefs: // > LevelInfoLayer::onOwnerDelete @ 0x6d9494 // > @ 0x74a90 // // 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::deleteServerLevel(GameLevelManager *a1, int a2) { char *LevelKey; // x24 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x21 __int64 v6; // x26 char *v7; // x0 unsigned int *v8; // x1 int v9; // w2 cocos2d::CCDictionary *v10; // x27 cocos2d::CCNode *v11; // x26 char *v12; // x0 cocos2d::CCString *v13; // x0 char *CString; // x0 cocos2d::CCString *v15; // x0 size_t v16; // x0 char *v17; // x0 char *v18; // x0 char *v19; // x0 char *v20; // x0 char *v21; // x0 void *v22; // x0 unsigned int *v23; // x1 int v24; // w2 unsigned int *v25; // x1 int v26; // w2 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x1 int v32; // w2 unsigned int *v33; // x1 int v34; // w2 unsigned int *v35; // x1 int v36; // w2 const char *v37; // [xsp+68h] [xbp+68h] __int64 v38; // [xsp+98h] [xbp+98h] BYREF char *v39; // [xsp+A0h] [xbp+A0h] BYREF char *v40; // [xsp+A8h] [xbp+A8h] BYREF const char *v41; // [xsp+B0h] [xbp+B0h] BYREF const char *v42; // [xsp+B8h] [xbp+B8h] BYREF std::string v43; // [xsp+C0h] [xbp+C0h] BYREF LevelKey = (char *)GameLevelManager::getLevelKey(a1, a2); m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_D153B8((int)&v43, LevelKey); v6 = cocos2d::CCDictionary::objectForKey(m_friendReqAndUserBlocks, &v43); v7 = (char *)v43.m_data.m_data - 24; if ( (__int64 *)v43.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)((char *)v43.m_data.m_data - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v43.m_data.m_data - 2); *((_DWORD *)v43.m_data.m_data - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v7); } if ( !v6 ) { v10 = a1->m_friendReqAndUserBlocks; v11 = cocos2d::CCNode::create(); sub_D153B8((int)&v43, LevelKey); cocos2d::CCDictionary::setObject((int)v10, v11); v12 = (char *)v43.m_data.m_data - 24; if ( (__int64 *)v43.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)((char *)v43.m_data.m_data - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *((_DWORD *)v43.m_data.m_data - 2); *((_DWORD *)v43.m_data.m_data - 2) = v26 - 1; } if ( v26 <= 0 ) operator delete(v12); } v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfv", "2898", 103, 99, "9"); CString = (char *)cocos2d::CCString::getCString(v13); sub_D153B8((int)&v38, CString); sub_D153B8((int)&v39, "https://www.boomlings.com/database/deleteGJLevelUser20.php"); GameLevelManager::getBasePostString(a1, (__int64)&v40); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&levelID=%i&secret=%s", (const char *)(unsigned int)a2, v38); v37 = cocos2d::CCString::getCString(v15); v16 = strlen(v37); sub_D15FD4(&v40, v37, v16); sub_D153B8((int)&v41, v39); sub_D153B8((int)&v42, v40); sub_D153B8((int)&v43, LevelKey); GameLevelManager::ProcessHttpRequest(a1, &v41, &v42, (cocos2d::extension::CCHttpClient **)&v43, 7); v17 = (char *)v43.m_data.m_data - 24; if ( (__int64 *)v43.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)((char *)v43.m_data.m_data - 8); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); } else { v36 = *((_DWORD *)v43.m_data.m_data - 2); *((_DWORD *)v43.m_data.m_data - 2) = v36 - 1; } if ( v36 <= 0 ) operator delete(v17); } v18 = (char *)(v42 - 24); if ( v42 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(v42 - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *((_DWORD *)v42 - 2); *((_DWORD *)v42 - 2) = v32 - 1; } if ( v32 <= 0 ) operator delete(v18); } v19 = (char *)(v41 - 24); if ( v41 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)(v41 - 8); do v34 = __ldaxr(v33); while ( __stlxr(v34 - 1, v33) ); } else { v34 = *((_DWORD *)v41 - 2); *((_DWORD *)v41 - 2) = v34 - 1; } if ( v34 <= 0 ) operator delete(v19); } v20 = v40 - 24; if ( v40 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v40 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *((_DWORD *)v40 - 2); *((_DWORD *)v40 - 2) = v28 - 1; } if ( v28 <= 0 ) operator delete(v20); } v21 = v39 - 24; if ( v39 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v39 - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *((_DWORD *)v39 - 2); *((_DWORD *)v39 - 2) = v30 - 1; } if ( v30 <= 0 ) operator delete(v21); } v22 = (void *)(v38 - 24); if ( (__int64 *)(v38 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v38 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *(_DWORD *)(v38 - 8); *(_DWORD *)(v38 - 8) = v24 - 1; } if ( v24 <= 0 ) operator delete(v22); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source