// // ReportPopup::onSubmit from 0xcff058 to 0xcff8a0 (2120 bytes) // // 3 xrefs: // > @ 0xa38d0 // > ReportPopup::init @ 0xd00df4 // > @ 0x15448d0 // // 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:06:53 +0000 // __int64 __fastcall ReportPopup::onSubmit(ReportPopup *this, cocos2d::CCObject *a2) { unsigned __int64 v3; // x19 size_t v4; // x0 int v5; // w0 const char *v6; // x1 char *v7; // x21 size_t v8; // x0 size_t v9; // x2 int v10; // w19 int v11; // w26 const char *v12; // x1 size_t v13; // x0 __int64 v14; // x0 __int64 v15; // x3 char *v16; // x1 size_t v17; // x2 __int64 v18; // x0 __int64 v19; // x5 __int64 v20; // x0 size_t v21; // x3 char *v22; // x1 size_t v23; // x2 size_t v24; // x19 char *v25; // x1 char *v26; // x2 cocos2d::CCString *v27; // x0 size_t v28; // x0 char *v29; // x23 const char *v30; // x1 size_t v31; // x0 ButtonSprite **v32; // x19 unsigned __int8 *v34; // x0 unsigned __int8 *v35; // x1 unsigned __int8 *v36; // x3 unsigned __int8 *v37; // x2 int v38; // t1 char *v39; // x0 char *v40; // x1 __int64 v41; // x0 size_t v42; // x3 char *v43; // x1 size_t v44; // x2 __int64 v45; // x0 char *v46; // [xsp+58h] [xbp+58h] char *v47; // [xsp+58h] [xbp+58h] char *v48; // [xsp+58h] [xbp+58h] char *CString; // [xsp+58h] [xbp+58h] char *v50; // [xsp+58h] [xbp+58h] void *v51; // [xsp+60h] [xbp+60h] BYREF _BYTE *v52; // [xsp+68h] [xbp+68h] _QWORD v53[2]; // [xsp+78h] [xbp+78h] BYREF void *v54; // [xsp+88h] [xbp+88h] __int64 v55; // [xsp+90h] [xbp+90h] BYREF __int64 v56; // [xsp+98h] [xbp+98h] char *v57; // [xsp+A0h] [xbp+A0h] __int64 v58[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v59; // [xsp+B8h] [xbp+B8h] unsigned __int64 v60; // [xsp+C0h] [xbp+C0h] BYREF __int64 v61; // [xsp+C8h] [xbp+C8h] void *v62; // [xsp+D0h] [xbp+D0h] __int64 v63; // [xsp+D8h] [xbp+D8h] BYREF __int64 v64; // [xsp+E0h] [xbp+E0h] void *v65; // [xsp+E8h] [xbp+E8h] __int64 v66; // [xsp+F0h] [xbp+F0h] BYREF size_t v67; // [xsp+F8h] [xbp+F8h] void *v68; // [xsp+100h] [xbp+100h] ReportPopup::selectedReasons(this, &v51); if ( v51 == v52 ) { v63 = 0; v64 = 0; v65 = nullptr; std::string::__init(&v63, "Please select at least one reason.", 0x22u); v45 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Report", (char *)&v63, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v45 + 1312LL))(v45); if ( (v63 & 1) != 0 ) operator delete(v65); goto LABEL_40; } v53[0] = 0; v53[1] = 0; v54 = nullptr; if ( (v52 - (_BYTE *)v51) >> 2 ) { v3 = 0; do { std::string::append((__int64)v53, "\n- ", 7u); v46 = ReportPopup::reasonLabel((ReportPopup *)*((unsigned int *)v51 + v3)); v4 = strlen(v46); std::string::append((__int64)v53, v46, v4); std::string::append((__int64)v53, "", 4u); ++v3; } while ( v3 < (v52 - (_BYTE *)v51) >> 2 ); } v5 = *((_DWORD *)this + 256); switch ( v5 ) { case 3: case 7: v6 = "comment"; goto LABEL_7; case 4: v6 = "post"; goto LABEL_7; case 5: goto LABEL_75; case 6: v6 = "friend request"; goto LABEL_7; case 8: if ( *((__int64 *)this + 136) <= 0 ) v6 = &byte_11B8890; else LABEL_75: v6 = "message"; goto LABEL_7; default: v6 = &byte_11B8890; if ( v5 ) LABEL_7: v7 = ""; else v7 = ""; v47 = (char *)v6; v55 = 0; v56 = 0; v57 = nullptr; v8 = strlen(v6); std::string::__init(&v55, v47, v8); v9 = *((_BYTE *)this + 1040) >> 1; if ( (*((_BYTE *)this + 1040) & 1) != 0 ) v9 = *((_QWORD *)this + 131); v10 = *((unsigned __int8 *)this + 1096); v11 = v10 & 1; if ( (v10 & 1) != 0 ) { if ( v9 != *((_QWORD *)this + 138) ) goto LABEL_12; } else if ( v9 != (unsigned __int8)v10 >> 1 ) { goto LABEL_12; } v34 = (unsigned __int8 *)this + 1041; if ( (*((_BYTE *)this + 1040) & 1) != 0 ) v34 = *((unsigned __int8 **)this + 132); v35 = (unsigned __int8 *)this + 1097; if ( (v10 & 1) != 0 ) v35 = *((unsigned __int8 **)this + 139); if ( (*((_BYTE *)this + 1040) & 1) != 0 ) { if ( v9 && memcmp(v34, v35, v9) ) { LABEL_12: if ( (v55 & 1) != 0 ) { if ( v56 ) goto LABEL_14; } else if ( (unsigned __int8)v55 >> 1 ) { LABEL_14: v12 = " in "; goto LABEL_15; } v12 = &byte_11B8890; LABEL_15: v48 = (char *)v12; v58[0] = 0; v58[1] = 0; v59 = nullptr; v13 = strlen(v12); std::string::__init(v58, v48, v13); v14 = std::string::append((__int64)v58, v7); v15 = *(_QWORD *)(v14 + 8); v60 = *(_QWORD *)v14; v61 = v15; v62 = *(void **)(v14 + 16); *(_QWORD *)v14 = 0; *(_QWORD *)(v14 + 8) = 0; *(_QWORD *)(v14 + 16) = 0; if ( (*((_BYTE *)this + 1040) & 1) != 0 ) { v16 = *((char **)this + 132); v17 = *((_QWORD *)this + 131); } else { v16 = (char *)this + 1041; v17 = *((_BYTE *)this + 1040) >> 1; } v18 = std::string::append((__int64)&v60, v16, v17); v19 = *(_QWORD *)(v18 + 8); v63 = *(_QWORD *)v18; v64 = v19; v65 = *(void **)(v18 + 16); *(_QWORD *)v18 = 0; *(_QWORD *)(v18 + 8) = 0; *(_QWORD *)(v18 + 16) = 0; v20 = std::string::append((__int64)&v63, ""); v21 = *(_QWORD *)(v20 + 8); v66 = *(_QWORD *)v20; v67 = v21; v68 = *(void **)(v20 + 16); *(_QWORD *)v20 = 0; *(_QWORD *)(v20 + 8) = 0; *(_QWORD *)(v20 + 16) = 0; if ( (v66 & 1) != 0 ) { v22 = (char *)v68; v23 = v67; } else { v23 = (unsigned __int8)v66 >> 1; v22 = (char *)&v66 + 1; } std::string::append((__int64)&v55, v22, v23); if ( (v66 & 1) != 0 ) { operator delete(v68); if ( (v63 & 1) == 0 ) { LABEL_21: if ( (v60 & 1) == 0 ) goto LABEL_22; goto LABEL_87; } } else if ( (v63 & 1) == 0 ) { goto LABEL_21; } operator delete(v65); if ( (v60 & 1) == 0 ) { LABEL_22: if ( (v58[0] & 1) == 0 ) { LABEL_23: v10 = *((unsigned __int8 *)this + 1096); v11 = v10 & 1; goto LABEL_24; } LABEL_88: operator delete(v59); goto LABEL_23; } LABEL_87: operator delete(v62); if ( (v58[0] & 1) == 0 ) goto LABEL_23; goto LABEL_88; } LABEL_24: if ( v11 ) goto LABEL_25; goto LABEL_57; } if ( !v9 ) goto LABEL_24; if ( *v34 != *v35 ) goto LABEL_12; v36 = v34 + 1; v37 = &v34[v9]; while ( 1 ) { ++v35; if ( v36 == v37 ) break; v38 = *v36++; if ( *v35 != v38 ) goto LABEL_12; } if ( (v10 & 1) != 0 ) { LABEL_25: v24 = *((_QWORD *)this + 138); if ( !v24 ) goto LABEL_26; v60 = 0; v61 = 0; v62 = nullptr; goto LABEL_59; } LABEL_57: LODWORD(v24) = v10 >> 1; if ( !(_DWORD)v24 ) goto LABEL_26; v60 = 0; v24 = (int)v24; v61 = 0; v62 = nullptr; LABEL_59: if ( v24 + 8 > 0xFFFFFFFFFFFFFFEFLL ) sub_6317D8(); if ( v24 + 8 > 0x16 ) { v39 = (char *)operator new((v24 + 24) & 0xFFFFFFFFFFFFFFF0LL); v60 = (v24 + 24) & 0xFFFFFFFFFFFFFFF0LL | 1; v62 = v39; v61 = 8; } else { v39 = (char *)&v60 + 1; LOBYTE(v60) = 16; } v40 = (char *)this + 1097; strcpy(v39, " by "); if ( (*((_BYTE *)this + 1096) & 1) != 0 ) v40 = *((char **)this + 139); std::string::append((__int64)&v60, v40, v24); v41 = std::string::append((__int64)&v60, ""); v42 = *(_QWORD *)(v41 + 8); v66 = *(_QWORD *)v41; v67 = v42; v68 = *(void **)(v41 + 16); *(_QWORD *)v41 = 0; *(_QWORD *)(v41 + 8) = 0; *(_QWORD *)(v41 + 16) = 0; if ( (v66 & 1) != 0 ) { v43 = (char *)v68; v44 = v67; } else { v44 = (unsigned __int8)v66 >> 1; v43 = (char *)&v66 + 1; } std::string::append((__int64)&v55, v43, v44); if ( (v66 & 1) != 0 ) operator delete(v68); if ( (v60 & 1) != 0 ) operator delete(v62); LABEL_26: v25 = (char *)&v55 + 1; if ( (v55 & 1) != 0 ) v25 = v57; v26 = (char *)v53 + 1; if ( (v53[0] & 1) != 0 ) v26 = (char *)v54; v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Report %s for:%s\n" "False reports may result in action against your own account.", v25, v26); CString = (char *)cocos2d::CCString::getCString(v27); v63 = 0; v64 = 0; v65 = nullptr; v28 = strlen(CString); std::string::__init(&v63, CString, v28); v29 = (char *)this + 1016; v30 = (char *)&v63 + 1; if ( (v63 & 1) != 0 ) v30 = (const char *)v65; v50 = (char *)v30; v66 = 0; v67 = 0; v68 = nullptr; v31 = strlen(v30); std::string::__init(&v66, v50, v31); v32 = (ButtonSprite **)FLAlertLayer::create( (__int64)v29, (cocos2d::CCLabelBMFont *)"Confirm Report", (char *)&v66, (ButtonSprite *)"Cancel", (ButtonSprite *)"Report", 0, 380.0, 0.0, 1.0); if ( (v66 & 1) != 0 ) operator delete(v68); (*((void (__fastcall **)(ButtonSprite **, __int64))*v32 + 9))(v32, 1); ButtonSprite::updateBGImage(v32[77], "GJ_button_06.png"); (*((void (__fastcall **)(ButtonSprite **))*v32 + 164))(v32); if ( (v63 & 1) != 0 ) operator delete(v65); if ( (v55 & 1) != 0 ) operator delete(v57); if ( (v53[0] & 1) != 0 ) operator delete(v54); LABEL_40: if ( v51 ) { if ( v51 != v52 ) v52 += 4 * ~((unsigned __int64)(v52 - 4 - (_BYTE *)v51) >> 2); operator delete(v51); } return _stack_chk_guard; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source