// // ProfilePage::onBlockUser from 0x8fd560 to 0x8fd810 (688 bytes) // // 3 xrefs: // > @ 0x6d218 // > ProfilePage::loadPageFromUserInfo @ 0x8fa73c // > @ 0x122b948 // // 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::onBlockUser(ProfilePage *a1, cocos2d::CCObject *a2) { GJAccountManager *v3; // x0 double v4; // d0 cocos2d::CCString *v5; // x0 char *CString; // x0 FLAlertLayer *v7; // x20 void *v8; // x0 char *v9; // x0 char *v10; // x0 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 unsigned int *v15; // x1 int v16; // w2 char *v17; // [xsp+40h] [xbp+40h] BYREF char *v18; // [xsp+48h] [xbp+48h] BYREF __int64 v19; // [xsp+50h] [xbp+50h] BYREF v3 = GJAccountManager::sharedState(); if ( v3->m_accountID - v3->m_unkInt1 <= 0 ) { ProfilePage::showNoAccountError(a1); } else { *(_QWORD *)&v4 = sub_D18D28(&v17).n128_u64[0]; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Are you sure you want to block %s?\n" "%s will no longer be able to:\n" "- View your profile\n" "- Send messages\n" "- Send friend requests\n" "- Messages from this user will be removed", v17, v17, v4); CString = (char *)cocos2d::CCString::getCString(v5); sub_D153B8((int)&v18, CString); sub_D153B8((int)&v19, v18); v7 = FLAlertLayer::create((int)a1 + 632, (__int64)"Confirm Block", (__int64)&v19); v8 = (void *)(v19 - 24); if ( (__int64 *)(v19 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v19 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v8); } ButtonSprite::updateBGImage(v7->m_button2, "GJ_button_06.png"); v7->setTag(v7, 3); v7->show(v7); v9 = v18 - 24; if ( v18 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v18 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v18 - 2); *((_DWORD *)v18 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v9); } v10 = v17 - 24; if ( v17 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v17 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *((_DWORD *)v17 - 2); *((_DWORD *)v17 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v10); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source