// // ThreadRequestPopup::init from 0x757c14 to 0x7586bc (2728 bytes) // // 1 xrefs: // > ThreadRequestPopup::create @ 0x7587a0 // // 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:57 +0000 // int __fastcall ThreadRequestPopup::init(ThreadRequestPopup *this, GJMessageThread *a2, InvitesPopup *a3) { cocos2d::CCDirector *v6; // r0 cocos2d::CCLayer *v7; // r0 int v8; // r0 int v9; // r3 int v10; // r10 void (__fastcall *v11)(int, int *); // r7 cocos2d::CCMenu *v12; // r0 int v13; // r0 const char *v14; // r2 int v15; // r7 char *v16; // r0 int v17; // r0 int v18; // r1 int v19; // r6 void (__fastcall *v20)(int, int *); // r8 float v21; // s15 const char *v22; // r2 int v23; // r0 cocos2d::CCLabelBMFont *v24; // r0 float v25; // s16 cocos2d::CCLabelBMFont *v26; // r10 float v27; // s18 int v28; // r0 void (__fastcall *v29)(cocos2d::CCLabelBMFont *, int *); // r8 float v30; // s21 int v31; // r1 int v32; // r10 int v34; // r1 int v35; // r2 int v36; // r3 cocos2d::CCSprite *v37; // r10 int v38; // r1 int v39; // r2 int v40; // r3 void (__fastcall *v41)(cocos2d::CCSprite *, int *); // r8 float v42; // s15 float v43; // s18 cocos2d::CCLabelBMFont *v44; // r0 cocos2d::CCLabelBMFont *v45; // r0 int v46; // r9 float v47; // r1 float v48; // r2 int v49; // r8 void (__fastcall *v50)(int, int *); // r10 const char *v51; // r1 __int16 *v52; // r2 cocos2d::CCString *v53; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v55; // r2 int v56; // r10 float v57; // s22 float v58; // s22 float *v59; // r0 void (__fastcall *v60)(int, int *); // r10 float v61; // s21 float v62; // s16 void (__fastcall *v63)(int, int *); // r10 int *v64; // r0 int v65; // r1 cocos2d::CCLabelBMFont *v66; // r2 const char *v67; // r2 cocos2d::CCLabelBMFont *v68; // r0 int v69; // r10 void (__fastcall *v70)(int, int *); // r8 float v71; // s16 float v72; // s15 int v73; // r8 void (__fastcall *v74)(int, int *); // r9 int v75; // r1 int v76; // r3 int v77; // r3 size_t v78; // r2 const char *v79; // r1 int v80; // r1 int v81; // r3 int v82; // r3 EmoteSprite *v83; // r0 int v84; // r0 char **v85; // r8 float v86; // s17 float v87; // s16 ButtonSprite *v88; // r0 int v89; // r6 void (__fastcall *v90)(int, _DWORD *); // r8 const char *v91; // r1 int v92; // r3 int v93; // r6 ButtonSprite *v94; // r0 int v95; // r6 void (__fastcall *v96)(int, _DWORD *); // r8 int v97; // r6 void (__fastcall *v98)(int, _DWORD *); // r8 const char *v99; // r1 int v100; // r6 int v101; // r6 void (__fastcall *v102)(int, _BYTE *); // r8 int v104; // [sp+10h] [bp-C4h] float v105; // [sp+10h] [bp-C4h] int v106; // [sp+14h] [bp-C0h] float v107[2]; // [sp+24h] [bp-B0h] BYREF float v108; // [sp+2Ch] [bp-A8h] BYREF float v109; // [sp+30h] [bp-A4h] _BYTE v110[8]; // [sp+34h] [bp-A0h] BYREF _BYTE v111[8]; // [sp+3Ch] [bp-98h] BYREF ProfilePage *(__fastcall *v112)(ThreadRequestPopup *, cocos2d::CCObject *, bool); // [sp+44h] [bp-90h] int v113; // [sp+48h] [bp-8Ch] MemberListPopup *(__fastcall *v114)(ThreadRequestPopup *, cocos2d::CCObject *); // [sp+4Ch] [bp-88h] int v115; // [sp+50h] [bp-84h] int *(__fastcall *v116)(ThreadRequestPopup *, cocos2d::CCObject *); // [sp+54h] [bp-80h] int v117; // [sp+58h] [bp-7Ch] int (__fastcall *v118)(ThreadRequestPopup *, cocos2d::CCObject *); // [sp+5Ch] [bp-78h] int v119; // [sp+60h] [bp-74h] int (__fastcall *v120)(ThreadRequestPopup *, cocos2d::CCObject *); // [sp+64h] [bp-70h] int v121; // [sp+68h] [bp-6Ch] _DWORD v122[2]; // [sp+6Ch] [bp-68h] BYREF int v123[3]; // [sp+74h] [bp-60h] BYREF _DWORD v124[3]; // [sp+80h] [bp-54h] BYREF int v125; // [sp+8Ch] [bp-48h] BYREF int v126; // [sp+90h] [bp-44h] int v127; // [sp+94h] [bp-40h] int v128[3]; // [sp+98h] [bp-3Ch] BYREF int v129[3]; // [sp+A4h] [bp-30h] BYREF int v130; // [sp+B0h] [bp-24h] BYREF int v131; // [sp+B4h] [bp-20h] cocos2d::CCLabelBMFont *v132; // [sp+B8h] [bp-1Ch] int v133; // [sp+BCh] [bp-18h] BYREF char *v134; // [sp+C0h] [bp-14h] int v135; // [sp+C4h] [bp-10h] if ( !a2 ) return 0; v133 = -1778384896; v106 = cocos2d::CCLayerColor::initWithColor(this, &v133); if ( !v106 ) return 0; *((_DWORD *)this + 130) = a2; cocos2d::CCObject::retain(a2); *((_DWORD *)this + 131) = a3; FLAlertLayer::incrementForcePrio(this); (*(void (__fastcall **)(ThreadRequestPopup *, int))(*(_DWORD *)this + 500))(this, 1); v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(ThreadRequestPopup *, int))(*(_DWORD *)this + 536))(this, 1); cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v107); v7 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v108, v107[0] * 0.5, v107[1] * 0.5); v8 = cocos2d::CCLayer::create(v7); v9 = *(_DWORD *)this; *((_DWORD *)this + 115) = v8; (*(void (__fastcall **)(ThreadRequestPopup *, int))(v9 + 228))(this, v8); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v133, 0.0, 0.0, 80.0, 80.0); v10 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", &v133); v11 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v10 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v133, 360.0, 230.0); v11(v10, &v133); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v10 + 92))(v10, &v108); v12 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v10, -1); v13 = cocos2d::CCMenu::create(v12); *((_DWORD *)this + 111) = v13; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v13 + 92))(v13, &unk_D2DF00); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 111), 10); *((_DWORD *)this + 125) = -1; v15 = *(unsigned __int8 *)(*((_DWORD *)this + 130) + 168) ^ 1; if ( v15 ) v16 = "Group Invite"; else v16 = "Message Request"; v17 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v16, "bigFont.fnt", v14); if ( v15 ) v18 = 1056293519; else v18 = 1058642330; v19 = v17; (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 80))(v17, v18); v20 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v19 + 92); v21 = 12.0; if ( !v15 ) v21 = 16.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v108, (float)(v109 + 115.0) - v21); v20(v19, &v133); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v19); if ( v15 ) { v23 = *((_DWORD *)this + 130); v24 = (*(_BYTE *)(v23 + 72) & 1) != 0 ? *(cocos2d::CCLabelBMFont **)(v23 + 80) : (cocos2d::CCLabelBMFont *)(v23 + 73); v25 = (float)(v109 + 115.0) - 36.0; v26 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v24, "bigFont.fnt", v22); cocos2d::CCLabelBMFont::limitLabelWidth(v26, 230.0, 0.5, 0.25); v27 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 164))(v26); *(float *)&v28 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 84))(v26)); v29 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v26 + 92); v30 = *(float *)&v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v108 + 12.0, v25); v29(v26, &v133); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v26); v31 = *((_DWORD *)this + 130); v32 = *(unsigned __int8 *)(v31 + 156); if ( (v32 & 1) != 0 ? *(_DWORD *)(v31 + 160) : v32 >> 1 ) { std::string::basic_string(&v130, v31 + 156); } else { v130 = 0; v131 = 0; v132 = nullptr; std::string::__init(&v130, "na", 2u); } v37 = EmoteSprite::createWithName((int)&v130, v34, v35, v36); std::string::~string((int)&v130); if ( v37 || (v130 = 0, v131 = 0, v132 = nullptr, std::string::__init(&v130, "na", 2u), v37 = EmoteSprite::createWithName((int)&v130, v38, v39, v40), std::string::~string((int)&v130), v37) ) { EmoteSprite::fitToHeight(v37, 16.0, 0.0); v41 = *(void (__fastcall **)(cocos2d::CCSprite *, int *))(*(_DWORD *)v37 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v133, (float)(v108 - (float)((float)(v27 * v30) * 0.5)) - 4.0, v25 - 1.0); v41(v37, &v133); (*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v37); } } v42 = 39.0; if ( v15 ) v42 = 59.0; v43 = (float)(v109 + 115.0) - v42; std::operator+(v123, "From: ", (unsigned __int8 *)(*((_DWORD *)this + 130) + 60)); if ( (v123[0] & 1) != 0 ) v44 = (cocos2d::CCLabelBMFont *)v123[2]; else v44 = (cocos2d::CCLabelBMFont *)((char *)v123 + 1); v45 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( v44, "goldFont.fnt", (const char *)(LOBYTE(v123[0]) << 31)); v46 = (int)v45; if ( v15 ) v47 = 140.0; else v47 = 220.0; if ( v15 ) v48 = 0.5; else v48 = 0.6; cocos2d::CCLabelBMFont::limitLabelWidth(v45, v47, v48, 0.3); v113 = 0; v112 = ThreadRequestPopup::onViewProfile; v49 = CCMenuItemSpriteExtra::create(v46, 0, (int)this, (int)ThreadRequestPopup::onViewProfile, 0); v50 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v49 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v108, v43); v50(v49, &v133); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v49); if ( v15 ) { v51 = *(const char **)(*((_DWORD *)this + 130) + 116); if ( v51 == (_BYTE *)&dword_0 + 1 ) v52 = (__int16 *)&unk_B6B226; else v52 = &a1i2r3e45s789g[8]; v53 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i member%s", v51, v52); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v53); v56 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v55); (*(void (__fastcall **)(int, int))(*(_DWORD *)v56 + 80))(v56, 1056964608); v115 = 0; v114 = ThreadRequestPopup::onViewMembers; v104 = CCMenuItemSpriteExtra::create(v56, 0, (int)this, (int)ThreadRequestPopup::onViewMembers, 0); v57 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v46 + 164))(v46); v58 = v57 * COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v46 + 84))(v46)); v59 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v56 + 164))(v56); v60 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v49 + 92); v61 = *v59 * 0.5; v62 = (float)((float)(v58 + 20.0) + v61) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, (float)(v108 - v62) + (float)(v58 * 0.5), v43); v60(v49, &v133); v63 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v104 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, (float)(v62 + v108) - (float)(v61 * 0.5), v43); v63(v104, &v133); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v104); } if ( *(__int64 *)(*((_DWORD *)this + 130) + 200) >= 1 ) { GameToolbox::timestampToDateString((GameToolbox *)v124, *(_DWORD *)(*((_DWORD *)this + 130) + 200)); v64 = std::string::insert(v124, 0, "Sent: "); v65 = v64[1]; v66 = (cocos2d::CCLabelBMFont *)v64[2]; v130 = *v64; v131 = v65; v132 = v66; *v64 = 0; v64[1] = 0; v64[2] = 0; std::string::~string((int)v124); if ( (v130 & 1) != 0 ) v68 = v132; else v68 = (cocos2d::CCLabelBMFont *)((char *)&v130 + 1); v69 = cocos2d::CCLabelBMFont::create(v68, "chatFont.fnt", v67); (*(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 80))(v69, 1058642330); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v69 + 536))(v69, &unk_BF077C); (*(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 512))(v69, 225); v70 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v69 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v108, (float)(v109 - 115.0) + 49.0); v70(v69, &v133); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v69, 1); std::string::~string((int)&v130); } v71 = 110.0; if ( v15 ) v71 = 92.0; v72 = -7.0; if ( !v15 ) v72 = 2.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v110, v108, v109 + v72); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v133, 0.0, 0.0, 80.0, 80.0); v73 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", &v133); v74 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v73 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v133, 310.0, v71); v74(v73, &v133); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v73 + 92))(v73, v110); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v73 + 480))(v73, &unk_BF077C); (*(void (__fastcall **)(int, int))(*(_DWORD *)v73 + 456))(v73, 75); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v73, -1); v75 = *((_DWORD *)this + 130); if ( v15 ) { v76 = *(unsigned __int8 *)(v75 + 144); if ( (v76 & 1) != 0 ) v77 = *(_DWORD *)(v75 + 148); else v77 = v76 >> 1; if ( !v77 ) { v78 = 16; v125 = 0; v79 = "(no description)"; v126 = 0; v127 = 0; LABEL_57: std::string::__init(&v125, v79, v78); goto LABEL_58; } v80 = v75 + 144; } else { v81 = *(unsigned __int8 *)(v75 + 92); if ( (v81 & 1) != 0 ) v82 = *(_DWORD *)(v75 + 96); else v82 = v81 >> 1; if ( !v82 ) { v125 = 0; v78 = 17; v126 = 0; v79 = "(message removed)"; v127 = 0; goto LABEL_57; } v80 = v75 + 92; } std::string::basic_string(&v125, v80); LABEL_58: GameToolbox::stripNonBreakingSpaces(&v125); v133 = 0; v134 = nullptr; v135 = 0; ThreadViewPopup::expandShareTokens(v128, (unsigned __int8 *)&v125, (int)&v133); memset(v129, 0, sizeof(v129)); std::string::__init(v129, &unk_B6B226, 0); v83 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.5, 0.5); if ( v15 ) v84 = EmoteSprite::maxEmotesComment(v83); else v84 = EmoteSprite::maxEmotesMessage(v83); v85 = (char **)TextArea::create( (int)v129, "chatFont.fnt", 1065353216, 1133576192, (const cocos2d::CCPoint *)v122, 1101004800, 1, v84); std::string::~string((int)v129); std::string::basic_string(&v130, (int)v128); TextArea::fitString((int)v85, (int)&v130, 290.0, v71 - 10.0, 0.4, 0.0); std::string::~string((int)&v130); (*((void (__fastcall **)(char **, _BYTE *))*v85 + 23))(v85, v110); (*(void (__fastcall **)(_DWORD, char **))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v85); if ( (char *)v133 != v134 ) ThreadViewPopup::markShareLinks( v85, (unsigned __int8 *)v128, &v133, *((const cocos2d::CCPoint **)this + 115), (int)this + 528, 0); v86 = 0.0; v87 = (float)(v109 - 115.0) + 22.0; if ( !*(_BYTE *)(*((_DWORD *)this + 130) + 177) ) v86 = 50.0; v88 = ButtonSprite::create( (ButtonSprite *)"Accept", (const char *)&dword_40 + 1, 0, 0.55, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(26.0), COERCE_FLOAT(v128)); v117 = 0; v116 = ThreadRequestPopup::onAccept; v89 = CCMenuItemSpriteExtra::create((int)v88, 0, (int)this, (int)ThreadRequestPopup::onAccept, 0); v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v108 - v86, v87); v90(v89, v122); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v89); v92 = *((_DWORD *)this + 130); if ( !*(_BYTE *)(v92 + 177) ) { v94 = ButtonSprite::create( (ButtonSprite *)"Ignore", (const char *)&dword_40 + 1, *(unsigned __int8 *)(v92 + 177), 0.55, 1, "bigFont.fnt", "GJ_button_05.png", COERCE_CONST_CHAR_(26.0), v105); v119 = 0; v118 = ThreadRequestPopup::onIgnore; v95 = CCMenuItemSpriteExtra::create((int)v94, 0, (int)this, (int)ThreadRequestPopup::onIgnore, 0); v96 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v95 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v86 + v108, v87); v96(v95, v122); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v95); } v93 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_reportBtn_001.png", v91); (*(void (__fastcall **)(int, int))(*(_DWORD *)v93 + 80))(v93, 1058642330); v121 = 0; v120 = ThreadRequestPopup::onReport; v97 = CCMenuItemSpriteExtra::create(v93, 0, (int)this, (int)ThreadRequestPopup::onReport, 0); CCMenuItemSpriteExtra::setSizeMult(v97, 1.2); v98 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v97 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, (float)(v108 - 180.0) + 5.0, (float)(v109 - 115.0) + 8.0); v98(v97, v122); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v97); v100 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v99); (*(void (__fastcall **)(int, int))(*(_DWORD *)v100 + 80))(v100, 1061997773); v122[1] = 0; v122[0] = ThreadRequestPopup::onClose; v101 = CCMenuItemSpriteExtra::create(v100, 0, (int)this, (int)ThreadRequestPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v101, 1.5); v102 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v101 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v111, (float)(v108 - 180.0) + 8.0, (float)(v109 + 115.0) - 8.0); v102(v101, v111); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v101); std::string::~string((int)v128); std::__vector_base::~__vector_base((char **)&v133); std::string::~string((int)&v125); std::string::~string((int)v123); return v106; }
GD Web Decomp Icon

GD Web Decomp

Raw Source