// // ProfilePage::onBlockUser from 0xa56430 to 0xa56674 (580 bytes) // // 3 xrefs: // > @ 0x934a8 // > ProfilePage::setupAccountButtons @ 0xa53d28 // > @ 0x1543f60 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:00:07 +0000 // __int64 __fastcall ProfilePage::onBlockUser(ProfilePage *this, cocos2d::CCObject *a2) { __int64 v3; // x0 GJAccountManager *v4; // x0 __int64 v5; // x0 __int64 v6; // x2 __int64 v7; // x0 __int64 v8; // x1 const char *v9; // x1 cocos2d::CCString *v10; // x0 size_t v11; // x0 char *v12; // x21 const char *v13; // x1 size_t v14; // x0 ButtonSprite **v15; // x19 GJAccountManager *v17; // x0 char *CString; // [xsp+38h] [xbp+38h] char *v19; // [xsp+38h] [xbp+38h] __int64 v20; // [xsp+40h] [xbp+40h] BYREF __int64 v21; // [xsp+48h] [xbp+48h] void *v22; // [xsp+50h] [xbp+50h] __int64 v23[2]; // [xsp+58h] [xbp+58h] BYREF void *v24; // [xsp+68h] [xbp+68h] __int64 v25[2]; // [xsp+70h] [xbp+70h] BYREF void *v26; // [xsp+80h] [xbp+80h] v3 = GJAccountManager::sharedState(_stack_chk_guard); v4 = (GJAccountManager *)(unsigned int)(*(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356)); if ( (int)v4 <= 0 ) { v17 = (GJAccountManager *)GJAccountManager::sharedState(v4); GJAccountManager::showAccountNeededAlert(v17, "block users"); } else { v5 = *((_QWORD *)this + 91); v20 = 0; v6 = v5 + 320; v21 = 0; LOBYTE(v5) = *(_BYTE *)(v5 + 320); v22 = nullptr; if ( (v5 & 1) != 0 ) { std::string::__init(&v20, *(void **)(v6 + 16), *(_QWORD *)(v6 + 8)); } else { v7 = *(_QWORD *)v6; v8 = *(_QWORD *)(v6 + 8); v22 = *(void **)(v6 + 16); v20 = v7; v21 = v8; } v9 = (char *)&v20 + 1; if ( (v20 & 1) != 0 ) v9 = (const char *)v22; v10 = (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\n" "You will leave group chats they own or group chats with on" "ly the two of you. Other shared group chats are not affected.", v9, v9); CString = (char *)cocos2d::CCString::getCString(v10); v23[0] = 0; v23[1] = 0; v24 = nullptr; v11 = strlen(CString); std::string::__init(v23, CString, v11); v12 = (char *)this + 664; v13 = (char *)v23 + 1; if ( (v23[0] & 1) != 0 ) v13 = (const char *)v24; v19 = (char *)v13; v25[0] = 0; v25[1] = 0; v26 = nullptr; v14 = strlen(v13); std::string::__init(v25, v19, v14); v15 = (ButtonSprite **)FLAlertLayer::create( (__int64)v12, (cocos2d::CCLabelBMFont *)"Confirm Block", (char *)v25, (ButtonSprite *)"Back", (ButtonSprite *)"Block", 0, 380.0, 0.0, 1.0); if ( (v25[0] & 1) != 0 ) operator delete(v26); ButtonSprite::updateBGImage(v15[77], "GJ_button_06.png"); (*((void (__fastcall **)(ButtonSprite **, __int64))*v15 + 9))(v15, 3); (*((void (__fastcall **)(ButtonSprite **))*v15 + 164))(v15); if ( (v23[0] & 1) != 0 ) operator delete(v24); if ( (v20 & 1) != 0 ) operator delete(v22); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source