// // AccountReviewPopup::onDeleteMenu from 0x735030 to 0x735422 (1010 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:58:23 +0000 // int __fastcall AccountReviewPopup::onDeleteMenu(AccountReviewPopup *this, cocos2d::CCObject *a2) { int v3; // r2 int v4; // r3 const char *v5; // r8 const char *v6; // r0 const char *v7; // r11 cocos2d::CCString *v8; // r0 size_t v9; // r0 _DWORD *v10; // r3 int v11; // r1 int v12; // r2 _DWORD *v13; // r3 unsigned int v14; // r1 cocos2d::CCString *v15; // r0 const char *v16; // r11 size_t v17; // r0 _DWORD *v18; // r3 int v19; // r1 int v20; // r2 cocos2d::CCString *v21; // r0 const char *CString; // r11 size_t v23; // r0 _DWORD *v24; // r3 int v25; // r1 int v26; // r2 _DWORD *v27; // r3 unsigned int v28; // r1 _DWORD *v29; // r3 int v30; // r1 int v31; // r2 _DWORD *v32; // r3 unsigned int v33; // r1 _DWORD *v34; // r3 int v35; // r1 int v36; // r2 char *v37; // r3 const char *v38; // r1 char *v39; // r0 cocos2d::CCString *v40; // r0 char *v41; // r0 int v42; // r0 const char *v44; // [sp+14h] [bp-70h] const char *v45; // [sp+18h] [bp-6Ch] BYREF void *v46; // [sp+1Ch] [bp-68h] BYREF _DWORD *v47; // [sp+20h] [bp-64h] unsigned int v48; // [sp+24h] [bp-60h] char *v49; // [sp+28h] [bp-5Ch] BYREF _DWORD *v50; // [sp+2Ch] [bp-58h] unsigned int v51; // [sp+30h] [bp-54h] int v52; // [sp+34h] [bp-50h] BYREF int v53; // [sp+38h] [bp-4Ch] int v54; // [sp+3Ch] [bp-48h] int v55; // [sp+40h] [bp-44h] BYREF int v56; // [sp+44h] [bp-40h] int v57; // [sp+48h] [bp-3Ch] int v58; // [sp+4Ch] [bp-38h] BYREF int v59; // [sp+50h] [bp-34h] int v60; // [sp+54h] [bp-30h] int v61; // [sp+58h] [bp-2Ch] BYREF int v62; // [sp+5Ch] [bp-28h] int v63; // [sp+60h] [bp-24h] int v64; // [sp+64h] [bp-20h] BYREF int v65; // [sp+68h] [bp-1Ch] int v66; // [sp+6Ch] [bp-18h] int v67[3]; // [sp+70h] [bp-14h] BYREF v3 = *((_DWORD *)this + 226); v46 = nullptr; v47 = nullptr; v48 = 0; v49 = nullptr; v50 = nullptr; v51 = 0; while ( 1 ) { v4 = *((_DWORD *)this + 227); if ( v3 == v4 ) break; *((_DWORD *)this + 227) = v4 - 4; } if ( *((_DWORD *)this + 218) == 2 ) v5 = nullptr; else v5 = *((const char **)this + 237); v6 = (const char *)AccountReviewPopup::selectedDeletable(this); v7 = v6; if ( (int)v5 <= 0 || *((_DWORD *)this + 218) ) { if ( (int)v6 <= 0 ) goto LABEL_48; v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Delete Selected (%i)", v6); CString = (const char *)cocos2d::CCString::getCString(v21); v58 = 0; v59 = 0; v60 = 0; v23 = strlen(CString); std::string::__init(&v58, CString, v23); v24 = v47; if ( (unsigned int)v47 >= v48 ) { std::vector::__push_back_slow_path(&v46, &v58); } else { if ( v47 ) { v25 = v59; v26 = v60; *v47 = v58; v24[1] = v25; v24[2] = v26; v58 = 0; v59 = 0; v60 = 0; } v47 += 3; } std::string::~string((int)&v58); goto LABEL_38; } v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Dismiss Reports (%i)", v5); v44 = (const char *)cocos2d::CCString::getCString(v8); v52 = 0; v53 = 0; v54 = 0; v9 = strlen(v44); std::string::__init(&v52, v44, v9); v10 = v47; if ( (unsigned int)v47 >= v48 ) { std::vector::__push_back_slow_path(&v46, &v52); } else { if ( v47 ) { v11 = v53; v12 = v54; *v47 = v52; v10[1] = v11; v10[2] = v12; v52 = 0; v53 = 0; v54 = 0; } v47 += 3; } std::string::~string((int)&v52); v45 = "GJ_button_04.png"; if ( (unsigned int)v50 >= v51 ) { std::vector::__push_back_slow_path((int)&v49, &v45); } else { if ( v50 ) *v50 = "GJ_button_04.png"; ++v50; } v13 = *((_DWORD **)this + 227); v14 = *((_DWORD *)this + 228); v45 = (_BYTE *)(&dword_0 + 1); if ( (unsigned int)v13 >= v14 ) { std::vector::__push_back_slow_path((_DWORD *)this + 226, &v45); } else { if ( v13 ) *v13 = 1; *((_DWORD *)this + 227) += 4; } if ( (int)v7 > 0 ) { v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Delete Content (%i of %i)", v7, v5); v16 = (const char *)cocos2d::CCString::getCString(v15); v55 = 0; v56 = 0; v57 = 0; v17 = strlen(v16); std::string::__init(&v55, v16, v17); v18 = v47; if ( (unsigned int)v47 >= v48 ) { std::vector::__push_back_slow_path(&v46, &v55); } else { if ( v47 ) { v19 = v56; v20 = v57; *v47 = v55; v18[1] = v19; v18[2] = v20; v55 = 0; v56 = 0; v57 = 0; } v47 += 3; } std::string::~string((int)&v55); LABEL_38: v45 = "GJ_button_06.png"; if ( (unsigned int)v50 >= v51 ) { std::vector::__push_back_slow_path((int)&v49, &v45); } else { if ( v50 ) *v50 = "GJ_button_06.png"; ++v50; } v27 = *((_DWORD **)this + 227); v28 = *((_DWORD *)this + 228); v45 = (_BYTE *)(&dword_0 + 2); if ( (unsigned int)v27 >= v28 ) { std::vector::__push_back_slow_path((_DWORD *)this + 226, &v45); } else { if ( v27 ) *v27 = 2; *((_DWORD *)this + 227) += 4; } } LABEL_48: v61 = 0; v62 = 0; v63 = 0; std::string::__init(&v61, "Delete All Comments", 0x13u); v29 = v47; if ( (unsigned int)v47 >= v48 ) { std::vector::__push_back_slow_path(&v46, &v61); } else { if ( v47 ) { v30 = v62; v31 = v63; *v47 = v61; v29[1] = v30; v29[2] = v31; v61 = 0; v62 = 0; v63 = 0; } v47 += 3; } std::string::~string((int)&v61); v45 = "GJ_button_06.png"; if ( (unsigned int)v50 >= v51 ) { std::vector::__push_back_slow_path((int)&v49, &v45); } else { if ( v50 ) *v50 = "GJ_button_06.png"; ++v50; } v32 = *((_DWORD **)this + 227); v33 = *((_DWORD *)this + 228); v45 = (_BYTE *)(&dword_0 + 3); if ( (unsigned int)v32 >= v33 ) { std::vector::__push_back_slow_path((_DWORD *)this + 226, &v45); } else { if ( v32 ) *v32 = 3; *((_DWORD *)this + 227) += 4; } v64 = 0; v65 = 0; v66 = 0; std::string::__init(&v64, "Delete All Posts", 0x10u); v34 = v47; if ( (unsigned int)v47 >= v48 ) { std::vector::__push_back_slow_path(&v46, &v64); } else { if ( v47 ) { v35 = v65; v36 = v66; *v47 = v64; v34[1] = v35; v34[2] = v36; v64 = 0; v65 = 0; v66 = 0; } v47 += 3; } std::string::~string((int)&v64); v45 = "GJ_button_06.png"; if ( (unsigned int)v50 >= v51 ) { std::vector::__push_back_slow_path((int)&v49, &v45); } else { if ( v50 ) *v50 = "GJ_button_06.png"; ++v50; } v37 = *((char **)this + 227); v38 = *((const char **)this + 228); v45 = (const char *)&byte_4; if ( v37 >= v38 ) { std::vector::__push_back_slow_path((_DWORD *)this + 226, &v45); } else { if ( v37 ) *(_DWORD *)v37 = 4; *((_DWORD *)this + 227) += 4; } memset(v67, 0, sizeof(v67)); if ( (int)v5 <= 0 ) { if ( (*((_BYTE *)this + 632) & 1) == 0 ) v38 = (char *)this + 633; v39 = "Everything by %s.\nTick rows on Reported or Filter to pick single items."; if ( (*((_BYTE *)this + 632) & 1) != 0 ) v38 = *((const char **)this + 160); } else { if ( *((_DWORD *)this + 218) ) v39 = "%i selected on this page."; else v39 = "%i selected on this page.\nDismiss keeps the text, Delete removes it."; v38 = v5; } v40 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v39, v38); v41 = (char *)cocos2d::CCString::getCString(v40); std::string::assign(v67, v41); v42 = ReviewChoiceSheet::create((int)this + 620, 1, "Delete", (int)v67, &v46, &v49, 0, nullptr); (*(void (__fastcall **)(int))(*(_DWORD *)v42 + 656))(v42); std::string::~string((int)v67); std::__vector_base::~__vector_base(&v49); return std::__vector_base::~__vector_base((int)&v46); }
GD Web Decomp Icon

GD Web Decomp

Raw Source