// // FriendRequestPopup::onBlock from 0x5da3e4 to 0x5da4fa (278 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:11 +0000 // int __fastcall FriendRequestPopup::onBlock(FriendRequestPopup *this, cocos2d::CCObject *a2) { cocos2d::CCDictionary **v3; // r0 char *v4; // r1 cocos2d::CCString *v5; // r0 char *CString; // r4 size_t v7; // r0 char *v8; // r8 size_t v9; // r0 char **v10; // r4 unsigned __int8 v12; // [sp+18h] [bp+0h] BYREF char v13; // [sp+19h] [bp+1h] BYREF char *v14; // [sp+20h] [bp+8h] int v15[2]; // [sp+24h] [bp+Ch] BYREF char *v16; // [sp+2Ch] [bp+14h] int v17[3]; // [sp+30h] [bp+18h] BYREF v3 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(this); GameLevelManager::tryGetUsername((GameLevelManager *)&v12, v3, *(_DWORD *)(*((_DWORD *)this + 134) + 268)); if ( (v12 & 1) != 0 ) v4 = v14; else v4 = &v13; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Are you sure you want to block %s?\n" "They will no longer be able to:\n" "-View your profile.\n" "-Send you a friend request.\n" "-Send you messages, and all older messages from them will be " "deleted.", v4, v12 << 31); CString = (char *)cocos2d::CCString::getCString(v5); v15[0] = 0; v15[1] = 0; v16 = nullptr; v7 = strlen(CString); std::string::__init(v15, CString, v7); v17[0] = 0; v8 = (char *)this + 528; v17[1] = 0; if ( (v15[0] & 1) == 0 ) CString = (char *)v15 + 1; v17[2] = 0; if ( (v15[0] & 1) != 0 ) CString = v16; v9 = strlen(CString); std::string::__init(v17, CString, v9); v10 = (char **)FLAlertLayer::create( (int)v8, (cocos2d::CCLabelBMFont *)"Confirm Block", (int)v17, (ButtonSprite *)"Back", (ButtonSprite *)"Block", 380.0, 0, 0, 1.0); std::string::~string((int)v17); ButtonSprite::updateBGImage(v10[121], "GJ_button_06.png"); (*((void (__fastcall **)(char **, int))*v10 + 9))(v10, 1); (*((void (__fastcall **)(char **))*v10 + 164))(v10); std::string::~string((int)v15); return std::string::~string((int)&v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source