// // MessageThreadsPage::onDeleteSelected from 0xc738a8 to 0xc73cf4 (1100 bytes) // // 3 xrefs: // > @ 0xbc110 // > MessageThreadsPage::init @ 0xc761f0 // > @ 0x1545720 // // 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:05:32 +0000 // __int64 __fastcall MessageThreadsPage::onDeleteSelected(cocos2d::CCArray **this, cocos2d::CCObject *a2) { unsigned int v3; // w23 cocos2d::CCArray *v4; // x0 signed int v5; // w19 unsigned int v6; // w26 unsigned int v7; // w24 unsigned int v8; // w25 unsigned int v9; // w22 __int64 v10; // x0 char *v11; // x2 cocos2d::CCString *v12; // x0 char *CString; // x0 __int64 v14; // x1 char *v15; // x2 cocos2d::CCString *v16; // x0 char *v17; // x0 __int64 v18; // x1 char *v19; // x2 cocos2d::CCString *v20; // x0 char *v21; // x0 __int64 v22; // x1 char *v23; // x2 cocos2d::CCString *v24; // x0 char *v25; // x0 cocos2d::CCString *v26; // x0 const char *v27; // x1 size_t v28; // x0 char *v29; // x1 size_t v30; // x2 char *v31; // x20 const char *v32; // x1 size_t v33; // x0 ButtonSprite **v34; // x19 char *v36; // [xsp+58h] [xbp+58h] char *v37; // [xsp+58h] [xbp+58h] __int64 v38; // [xsp+68h] [xbp+68h] BYREF __int64 v39; // [xsp+70h] [xbp+70h] void *v40; // [xsp+78h] [xbp+78h] __int64 v41[2]; // [xsp+80h] [xbp+80h] BYREF void *v42; // [xsp+90h] [xbp+90h] unsigned __int64 v43[2]; // [xsp+98h] [xbp+98h] BYREF void *v44; // [xsp+A8h] [xbp+A8h] __int64 v45[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v46; // [xsp+C0h] [xbp+C0h] v3 = MessageThreadsPage::selectedCount((MessageThreadsPage *)this); if ( v3 ) { v4 = *(this + 100); if ( v4 ) { v5 = 0; v6 = 0; v7 = 0; v8 = 0; v9 = 0; while ( v5 < (int)cocos2d::CCArray::count(v4) ) { v10 = cocos2d::CCArray::objectAtIndex(*(this + 100), v5); if ( *(_BYTE *)(v10 + 304) ) { if ( *(_BYTE *)(v10 + 264) ) { if ( *(_BYTE *)(v10 + 265) ) ++v8; else ++v9; } else if ( *(_DWORD *)(v10 + 268) == 8 ) { ++v6; } else { ++v7; } } v4 = *(this + 100); ++v5; } v38 = 0; v39 = 0; v40 = nullptr; if ( v9 ) { if ( v9 == 1 ) v11 = &byte_11B8890; else v11 = "s"; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i DM%s will be cleared. Your message history will be perm" "anently deleted.", (const char *)v9, v11); CString = (char *)cocos2d::CCString::getCString(v12); std::string::append((__int64)&v38, CString); } if ( v8 ) { v14 = (unsigned __int8)v38 >> 1; if ( (v38 & 1) != 0 ) v14 = v39; if ( v14 ) std::string::append((__int64)&v38, &byte_11AAA48); if ( v8 == 1 ) v15 = &byte_11B8890; else v15 = "s"; v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i pending request%s will be cancelled.", (const char *)v8, v15); v17 = (char *)cocos2d::CCString::getCString(v16); std::string::append((__int64)&v38, v17); } if ( v7 ) { v18 = (unsigned __int8)v38 >> 1; if ( (v38 & 1) != 0 ) v18 = v39; if ( v18 ) std::string::append((__int64)&v38, &byte_11AAA48); if ( v7 == 1 ) v19 = &byte_11B8890; else v19 = "s"; v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You will leave %i group chat%s. You can only rejoin if you" " are invited back.", (const char *)v7, v19); v21 = (char *)cocos2d::CCString::getCString(v20); std::string::append((__int64)&v38, v21); } if ( v6 ) { v22 = (unsigned __int8)v38 >> 1; if ( (v38 & 1) != 0 ) v22 = v39; if ( v22 ) std::string::append((__int64)&v38, &byte_11AAA48); if ( v6 == 1 ) v23 = &byte_11B8890; else v23 = "s"; v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i group chat%s you were removed from will disappear from " "your inbox. You will no longer be able to read or report them.", (const char *)v6, v23); v25 = (char *)cocos2d::CCString::getCString(v24); std::string::append((__int64)&v38, v25); } if ( v3 == 1 ) { v27 = "Delete this conversation?"; } else { v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Delete %i conversations?", (const char *)v3); v27 = (const char *)cocos2d::CCString::getCString(v26); } v36 = (char *)v27; v41[0] = 0; v41[1] = 0; v42 = nullptr; v28 = strlen(v27); std::string::__init(v41, v36, v28); std::operator+(&byte_11AAA48, (__int64)&v38, v43); if ( (v43[0] & 1) != 0 ) { v29 = (char *)v44; v30 = v43[1]; } else { v30 = LOBYTE(v43[0]) >> 1; v29 = (char *)v43 + 1; } std::string::append((__int64)v41, v29, v30); if ( (v43[0] & 1) != 0 ) operator delete(v44); v31 = (char *)(this + 84); v32 = (char *)v41 + 1; if ( (v41[0] & 1) != 0 ) v32 = (const char *)v42; v37 = (char *)v32; v45[0] = 0; v45[1] = 0; v46 = nullptr; v33 = strlen(v32); std::string::__init(v45, v37, v33); v34 = (ButtonSprite **)FLAlertLayer::create( (__int64)v31, (cocos2d::CCLabelBMFont *)"Delete", (char *)v45, (ButtonSprite *)"Back", (ButtonSprite *)"Delete", 300.0); if ( (v45[0] & 1) != 0 ) operator delete(v46); ButtonSprite::updateBGImage(v34[77], "GJ_button_06.png"); (*((void (__fastcall **)(ButtonSprite **, __int64))*v34 + 9))(v34, 2); (*((void (__fastcall **)(ButtonSprite **))*v34 + 164))(v34); if ( (v41[0] & 1) != 0 ) operator delete(v42); if ( (v38 & 1) != 0 ) operator delete(v40); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source