// // GameLevelManager::resetAccountComments from 0x6f75f0 to 0x6f77a4 (436 bytes) // // 2 xrefs: // > ProfilePage::onUpdate @ 0x8fdc84 // > @ 0xa2600 // // 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::resetAccountComments(GameLevelManager *a1, int a2) { int v4; // w19 char *AccountCommentKey; // x0 int v6; // w27 char *v7; // x0 unsigned int *v8; // x1 int v9; // w2 char *v10; // x0 unsigned int *v11; // x1 int v12; // w2 std::string v13; // [xsp+70h] [xbp+70h] BYREF v4 = 0; while ( 1 ) { AccountCommentKey = (char *)GameLevelManager::getAccountCommentKey(a1, a2, v4); sub_D153B8((int)&v13, AccountCommentKey); if ( !GameLevelManager::getStoredOnlineLevels(a1, (const char *)v13.m_data.m_data) ) break; cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, &v13); ++v4; v6 = 1; if ( v4 == 101 ) goto LABEL_14; LABEL_4: v7 = (char *)v13.m_data.m_data - 24; if ( (__int64 *)v13.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_5; if ( &pthread_create ) { v8 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v9 - 1; } if ( v9 > 0 ) { LABEL_5: if ( !v6 ) return; } else { operator delete(v7); if ( !v6 ) return; } } ++v4; v6 = 0; if ( v4 != 101 ) goto LABEL_4; LABEL_14: v10 = (char *)v13.m_data.m_data - 24; if ( (__int64 *)v13.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source