// // AccountReviewPopup::onDeleteMenu from 0xc44174 to 0xc44990 (2076 bytes) // // 3 xrefs: // > @ 0x436a8 // > AccountReviewPopup::init @ 0xc45494 // > @ 0x1541368 // // 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:04:59 +0000 // __int64 __fastcall AccountReviewPopup::onDeleteMenu(AccountReviewPopup *this, cocos2d::CCObject *a2) { __int64 v3; // x2 __int64 v4; // x1 int v5; // w23 int v6; // w24 cocos2d::CCString *v7; // x0 size_t v8; // x0 char *v9; // x1 __int64 v10; // x3 _QWORD *v11; // x1 char *v12; // x20 unsigned __int64 v13; // x2 _DWORD *v14; // x0 char *v15; // x0 __int64 v16; // x3 _QWORD *v17; // x0 unsigned __int64 v18; // x2 _DWORD *v19; // x0 char *v20; // x0 __int64 v21; // x3 _QWORD *v22; // x0 _DWORD *v23; // x0 unsigned __int64 v24; // x2 cocos2d::CCString *v25; // x0 char *v26; // x0 __int64 v27; // x0 char *v28; // x19 char *v29; // x0 const char *v31; // x1 cocos2d::CCString *v32; // x0 size_t v33; // x0 char *v34; // x0 __int64 v35; // x3 _QWORD *v36; // x0 unsigned __int64 v37; // x2 _DWORD *v38; // x0 cocos2d::CCString *v39; // x0 size_t v40; // x0 char *v41; // x0 __int64 v42; // x3 _QWORD *v43; // x0 unsigned __int64 v44; // x2 char *CString; // [xsp+58h] [xbp+58h] char *v46; // [xsp+58h] [xbp+58h] char *v47; // [xsp+58h] [xbp+58h] const char *v48; // [xsp+68h] [xbp+68h] BYREF void *v49; // [xsp+70h] [xbp+70h] BYREF char *v50; // [xsp+78h] [xbp+78h] unsigned __int64 v51; // [xsp+80h] [xbp+80h] void *v52; // [xsp+88h] [xbp+88h] BYREF _QWORD *v53; // [xsp+90h] [xbp+90h] unsigned __int64 v54; // [xsp+98h] [xbp+98h] __int64 v55; // [xsp+A0h] [xbp+A0h] BYREF __int64 v56; // [xsp+A8h] [xbp+A8h] void *v57; // [xsp+B0h] [xbp+B0h] __int64 v58; // [xsp+B8h] [xbp+B8h] BYREF __int64 v59; // [xsp+C0h] [xbp+C0h] void *v60; // [xsp+C8h] [xbp+C8h] __int64 v61; // [xsp+D0h] [xbp+D0h] BYREF __int64 v62; // [xsp+D8h] [xbp+D8h] void *v63; // [xsp+E0h] [xbp+E0h] __int64 v64; // [xsp+E8h] [xbp+E8h] BYREF __int64 v65; // [xsp+F0h] [xbp+F0h] void *v66; // [xsp+F8h] [xbp+F8h] __int64 v67; // [xsp+100h] [xbp+100h] BYREF __int64 v68; // [xsp+108h] [xbp+108h] void *v69; // [xsp+110h] [xbp+110h] v49 = nullptr; v3 = *((_QWORD *)this + 159); v4 = *((_QWORD *)this + 160); v50 = nullptr; v51 = 0; v52 = nullptr; v53 = nullptr; v54 = 0; if ( v4 != v3 ) *((_QWORD *)this + 160) = v4 + 4 * ~((unsigned __int64)(v4 - 4 - v3) >> 2); v5 = 0; if ( *((_DWORD *)this + 309) != 2 ) v5 = *((_DWORD *)this + 340); v6 = AccountReviewPopup::selectedDeletable(this); if ( v5 <= 0 || *((_DWORD *)this + 309) ) { if ( v6 <= 0 ) goto LABEL_22; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Delete Selected (%i)", (const char *)(unsigned int)v6); CString = (char *)cocos2d::CCString::getCString(v7); v61 = 0; v62 = 0; v63 = nullptr; v8 = strlen(CString); std::string::__init(&v61, CString, v8); v9 = v50; if ( (unsigned __int64)v50 >= v51 ) { std::vector::__push_back_slow_path((void ***)&v49, &v61); } else { if ( v50 ) { v10 = v62; *(_QWORD *)v50 = v61; *((_QWORD *)v9 + 1) = v10; *(_QWORD *)((char *)&word_10 + (_QWORD)v9) = v63; v9 = v50; v61 = 0; v62 = 0; v63 = nullptr; } v50 = v9 + 24; } if ( (v61 & 1) != 0 ) operator delete(v63); v11 = v53; v48 = "GJ_button_06.png"; if ( (unsigned __int64)v53 >= v54 ) { std::vector::__push_back_slow_path((__int64)&v52, &v48); } else { if ( v53 ) { *v53 = "GJ_button_06.png"; v11 = v53; } v53 = v11 + 1; } v12 = (char *)this + 1272; v13 = *((_QWORD *)this + 161); v14 = *((_DWORD **)this + 160); LODWORD(v48) = 2; if ( (unsigned __int64)v14 < v13 ) goto LABEL_19; goto LABEL_100; } v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Dismiss Reports (%i)", (const char *)(unsigned int)v5); v46 = (char *)cocos2d::CCString::getCString(v32); v55 = 0; v56 = 0; v57 = nullptr; v33 = strlen(v46); std::string::__init(&v55, v46, v33); v34 = v50; if ( (unsigned __int64)v50 >= v51 ) { std::vector::__push_back_slow_path((void ***)&v49, &v55); } else { if ( v50 ) { v35 = v56; *(_QWORD *)v50 = v55; *((_QWORD *)v34 + 1) = v35; *(_QWORD *)((char *)&word_10 + (_QWORD)v34) = v57; v34 = v50; v55 = 0; v56 = 0; v57 = nullptr; } v50 = v34 + 24; } if ( (v55 & 1) != 0 ) operator delete(v57); v36 = v53; v48 = "GJ_button_04.png"; if ( (unsigned __int64)v53 >= v54 ) { std::vector::__push_back_slow_path((__int64)&v52, &v48); } else { if ( v53 ) { *v53 = "GJ_button_04.png"; v36 = v53; } v53 = v36 + 1; } v12 = (char *)this + 1272; v37 = *((_QWORD *)this + 161); v38 = *((_DWORD **)this + 160); LODWORD(v48) = 1; if ( (unsigned __int64)v38 >= v37 ) { std::vector::__push_back_slow_path((void **)this + 159, &v48); } else { if ( v38 ) { *v38 = 1; v38 = *((_DWORD **)this + 160); } *((_QWORD *)this + 160) = v38 + 1; } if ( v6 > 0 ) { v39 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Delete Content (%i of %i)", (const char *)(unsigned int)v6, (unsigned int)v5); v47 = (char *)cocos2d::CCString::getCString(v39); v58 = 0; v59 = 0; v60 = nullptr; v40 = strlen(v47); std::string::__init(&v58, v47, v40); v41 = v50; if ( (unsigned __int64)v50 >= v51 ) { std::vector::__push_back_slow_path((void ***)&v49, &v58); } else { if ( v50 ) { v42 = v59; *(_QWORD *)v50 = v58; *((_QWORD *)v41 + 1) = v42; *((_QWORD *)v41 + 2) = v60; v41 = v50; v58 = 0; v59 = 0; v60 = nullptr; } v50 = v41 + 24; } if ( (v58 & 1) != 0 ) operator delete(v60); v43 = v53; v48 = "GJ_button_06.png"; if ( (unsigned __int64)v53 >= v54 ) { std::vector::__push_back_slow_path((__int64)&v52, &v48); } else { if ( v53 ) { *v53 = "GJ_button_06.png"; v43 = v53; } v53 = v43 + 1; } v14 = *((_DWORD **)this + 160); v44 = *((_QWORD *)this + 161); LODWORD(v48) = 2; if ( (unsigned __int64)v14 < v44 ) { LABEL_19: if ( v14 ) { *v14 = 2; v14 = *((_DWORD **)v12 + 1); } *((_QWORD *)v12 + 1) = v14 + 1; goto LABEL_22; } LABEL_100: std::vector::__push_back_slow_path((void **)v12, &v48); } LABEL_22: v64 = 0; v65 = 0; v66 = nullptr; std::string::__init(&v64, "Delete All Comments", 0x13u); v15 = v50; if ( (unsigned __int64)v50 >= v51 ) { std::vector::__push_back_slow_path((void ***)&v49, &v64); } else { if ( v50 ) { v16 = v65; *(_QWORD *)v50 = v64; *((_QWORD *)v15 + 1) = v16; *((_QWORD *)v15 + 2) = v66; v15 = v50; v64 = 0; v65 = 0; v66 = nullptr; } v50 = v15 + 24; } if ( (v64 & 1) != 0 ) operator delete(v66); v17 = v53; v48 = "GJ_button_06.png"; if ( (unsigned __int64)v53 >= v54 ) { std::vector::__push_back_slow_path((__int64)&v52, &v48); } else { if ( v53 ) { *v53 = "GJ_button_06.png"; v17 = v53; } v53 = v17 + 1; } v18 = *((_QWORD *)this + 161); v19 = *((_DWORD **)this + 160); LODWORD(v48) = 3; if ( (unsigned __int64)v19 >= v18 ) { std::vector::__push_back_slow_path((void **)this + 159, &v48); } else { if ( v19 ) { *v19 = 3; v19 = *((_DWORD **)this + 160); } *((_QWORD *)this + 160) = v19 + 1; } v67 = 0; v68 = 0; v69 = nullptr; std::string::__init(&v67, "Delete All Posts", 0x10u); v20 = v50; if ( (unsigned __int64)v50 >= v51 ) { std::vector::__push_back_slow_path((void ***)&v49, &v67); } else { if ( v50 ) { v21 = v68; *(_QWORD *)v50 = v67; *((_QWORD *)v20 + 1) = v21; *((_QWORD *)v20 + 2) = v69; v20 = v50; v67 = 0; v68 = 0; v69 = nullptr; } v50 = v20 + 24; } if ( (v67 & 1) != 0 ) operator delete(v69); v22 = v53; v48 = "GJ_button_06.png"; if ( (unsigned __int64)v53 >= v54 ) { std::vector::__push_back_slow_path((__int64)&v52, &v48); } else { if ( v53 ) { *v53 = "GJ_button_06.png"; v22 = v53; } v53 = v22 + 1; } v23 = *((_DWORD **)this + 160); v24 = *((_QWORD *)this + 161); LODWORD(v48) = 4; if ( (unsigned __int64)v23 >= v24 ) { std::vector::__push_back_slow_path((void **)this + 159, &v48); } else { if ( v23 ) { *v23 = 4; v23 = *((_DWORD **)this + 160); } *((_QWORD *)this + 160) = v23 + 1; } v67 = 0; v68 = 0; v69 = nullptr; if ( v5 <= 0 ) { v31 = (char *)this + 849; if ( (*((_BYTE *)this + 848) & 1) != 0 ) v31 = *((const char **)this + 108); v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Everything by %s.\n" "Tick rows on Reported or Filter to pick single items.", v31, (char *)this + 848); } else if ( *((_DWORD *)this + 309) ) { v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i selected on this page.", (const char *)(unsigned int)v5); } else { v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i selected on this page.\n" "Dismiss keeps the text, Delete removes it.", (const char *)(unsigned int)v5); } v26 = (char *)cocos2d::CCString::getCString(v25); std::string::assign(&v67, v26); v27 = ReviewChoiceSheet::create((__int64)this + 824, 1, "Delete", (char *)&v67, (__int64 *)&v49, &v52, 0, nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v27 + 1312LL))(v27); if ( (v67 & 1) != 0 ) operator delete(v69); if ( v52 ) { if ( v52 != v53 ) v53 += ~((unsigned __int64)((char *)(v53 - 1) - (_BYTE *)v52) >> 3); operator delete(v52); } v28 = (char *)v49; if ( v49 ) { v29 = v50; if ( v49 != v50 ) { do { v50 = v29 - 24; std::string::~string((__int64)(v29 - 24)); v29 = v50; } while ( v28 != v50 ); v29 = (char *)v49; } operator delete(v29); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source