// // ProfilePage::onBlockUser from 0x5f7850 to 0x5f7986 (310 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:54:32 +0000 // int __fastcall ProfilePage::onBlockUser(ProfilePage *this, cocos2d::CCObject *a2) { char *v2; // r4 GJAccountManager *v3; // r0 GJAccountManager *v4; // r0 const char *v6; // r1 cocos2d::CCString *v7; // r0 const char *CString; // r5 size_t v9; // r0 int v10; // r9 size_t v11; // r0 char **v12; // r4 int v13[3]; // [sp+18h] [bp-2Ch] BYREF int v14[2]; // [sp+24h] [bp-20h] BYREF char *v15; // [sp+2Ch] [bp-18h] int v16[3]; // [sp+30h] [bp-14h] BYREF v2 = (char *)this; v3 = (GJAccountManager *)GJAccountManager::sharedState(this); if ( *((_DWORD *)v3 + 70) - *((_DWORD *)v3 + 71) > 0 ) { std::string::basic_string(v13, *((_DWORD *)v2 + 138) + 264); if ( (v13[0] & 1) != 0 ) v6 = (const char *)v13[2]; else v6 = (char *)v13 + 1; v7 = (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 onl" "y the two of you. Other shared group chats are not affected.", v6, v6); CString = (const char *)cocos2d::CCString::getCString(v7); v14[0] = 0; v14[1] = 0; v15 = nullptr; v9 = strlen(CString); std::string::__init(v14, CString, v9); v10 = (int)(v2 + 520); if ( (v14[0] & 1) == 0 ) v2 = (char *)v14 + 1; v16[0] = 0; if ( (v14[0] & 1) != 0 ) v2 = v15; v16[1] = 0; v16[2] = 0; v11 = strlen(v2); std::string::__init(v16, v2, v11); v12 = (char **)FLAlertLayer::create( v10, (cocos2d::CCLabelBMFont *)"Confirm Block", (int)v16, (ButtonSprite *)"Back", (ButtonSprite *)"Block", 380.0, 0, 0, 1.0); std::string::~string((int)v16); ButtonSprite::updateBGImage(v12[121], "GJ_button_06.png"); (*((void (__fastcall **)(char **, int))*v12 + 9))(v12, 3); (*((void (__fastcall **)(char **))*v12 + 164))(v12); std::string::~string((int)v14); return std::string::~string((int)v13); } else { v4 = (GJAccountManager *)GJAccountManager::sharedState(v3); return GJAccountManager::showAccountNeededAlert(v4, "block users"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source