// // ProfilePage::onComment from 0x8f81e4 to 0x8f8498 (692 bytes) // // 3 xrefs: // > @ 0x96eb8 // > ProfilePage::loadPageFromUserInfo @ 0x8fbe40 // > @ 0x122d260 // // 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 ProfilePage::onComment(ProfilePage *a1, cocos2d::CCObject *a2) { GameLevelManager *v2; // x0 unsigned int TimeLeft; // w0 cocos2d::CCString *v4; // x0 char *CString; // x0 FLAlertLayer *v6; // x20 void *v7; // x0 __int64 v8; // x22 void *v9; // x0 void *v10; // x0 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x2 int v14; // w1 unsigned int *v15; // x1 int v16; // w2 __int64 v17; // [xsp+48h] [xbp+48h] BYREF __int64 v18; // [xsp+50h] [xbp+50h] BYREF v2 = GameLevelManager::sharedState(); TimeLeft = GameLevelManager::getTimeLeft(v2, "acc_comment", 15.0); if ( TimeLeft - 1 > 0xE ) { sub_D153B8((int)&v17, "Post Update"); sub_D153B8((int)&v18, &byte_F288A0); v8 = ShareCommentLayer::create((__int64)&v17, 140, 1, 0); v9 = (void *)(v18 - 24); if ( (__int64 *)(v18 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v18 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(v18 - 8); *(_DWORD *)(v18 - 8) = v16 - 1; } if ( v16 <= 0 ) operator delete(v9); } v10 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v17 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v10); } (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1288LL))(v8); } else { v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Please wait %i seconds before posting a new update!", (const char *)TimeLeft); CString = (char *)cocos2d::CCString::getCString(v4); sub_D153B8((int)&v18, CString); v6 = FLAlertLayer::create(0, (__int64)"Too fast", (__int64)&v18); v7 = (void *)(v18 - 24); if ( (__int64 *)(v18 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v18 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v18 - 8); *(_DWORD *)(v18 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v7); } v6->show(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source