// // ThreadRequestPopup::init from 0x1400fe990 to 0x1400ffcd5 (4933 bytes) // // 3 xrefs: // > InvitesPopup::onViewRequest @ 0x1400f9311 // > @ 0x1409155e4 // > @ 0x1409155f0 // // This function is hookable on this platform (idp: pc, 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 11:26:42 +0000 // // Hidden C++ exception states: #wind=21 char __fastcall ThreadRequestPopup::init(__int64 a1, cocos2d::CCObject *a2, __int64 a3) { int v6; // esi __int64 v7; // rdx __int64 v8; // rdx __int64 v9; // rcx __int64 v10; // rax __int64 v11; // rax __int64 v12; // rax __int64 v13; // rdi __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rax char v17; // r15 const char *v18; // rcx struct cocos2d::CCLabelBMFont *v19; // rdi __int64 v20; // rbx int v21; // eax __int64 v22; // rax float v23; // xmm7_4 const char *v24; // rcx cocos2d::CCLabelBMFont *v25; // rdi float v26; // xmm6_4 double v27; // xmm0_8 float v28; // xmm8_4 __int64 v29; // rbx __int64 v30; // rax __int64 v31; // r8 __int64 v32; // rdx __int64 v33; // rax __int64 v34; // rax __int64 v35; // rdx __int64 v36; // r8 __int64 *v37; // rdi void *v38; // rcx __int64 v39; // rax void *v40; // rcx __int64 v41; // rbx __int64 v42; // rax int v43; // eax float v44; // xmm9_4 _QWORD *v45; // r12 size_t v46; // rcx __int64 v47; // r15 size_t v48; // r13 unsigned __int64 v49; // rbx _WORD *v50; // rdi int v51; // esi void **v52; // rcx cocos2d::CCLabelBMFont *v53; // rax int v54; // ebx char v55; // r12 float v56; // xmm2_4 float v57; // xmm1_4 cocos2d::CCObject *v58; // r13 __int64 v59; // rbx __int64 v60; // rax int v61; // edx const char *v62; // r8 cocos2d::CCString *v63; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v65; // rbx cocos2d::CCObject *v66; // rdi float v67; // xmm6_4 double v68; // xmm0_8 float v69; // xmm7_4 float v70; // xmm8_4 __int64 v71; // rbx float v72; // xmm6_4 __int64 v73; // rax __int64 v74; // rbx __int64 v75; // rax __time64_t v76; // rdx char *v77; // rax __int64 v78; // rax const char *v79; // rcx struct cocos2d::CCLabelBMFont *v80; // rdi __int64 v81; // rdx void (__fastcall *v82)(char *, __int64); // r8 __int64 v83; // rbx __int64 v84; // rax int v85; // eax double v86; // xmm7_8 int v87; // eax __int64 v88; // rax _QWORD *v89; // rdi __int64 v90; // rbx __int64 v91; // rax __int64 v92; // rdx __int64 v93; // rcx _QWORD *v94; // rbx __int128 *v95; // rax char v96; // si void **v97; // rax char v98; // si void **v99; // rax char v100; // si _OWORD *v101; // rdi unsigned __int64 v102; // rbx void *v103; // rcx void *v104; // rcx __int64 v105; // rdx __int64 v106; // rcx __int64 v107; // r8 int v108; // ebx const struct cocos2d::CCPoint *v109; // rax float *v110; // rbx __int64 v111; // rax float v112; // xmm6_4 int v113; // ecx float v114; // xmm7_4 cocos2d::CCObject *v115; // rbx cocos2d::CCObject *v116; // rdi __int64 v117; // rbx __int64 v118; // rax cocos2d::CCObject *v119; // rbx cocos2d::CCObject *v120; // rdi __int64 v121; // rbx __int64 v122; // rax struct cocos2d::CCSprite *v123; // rax int v124; // ebx cocos2d::CCObject *v125; // rdi __int64 v126; // rbx __int64 v127; // rax struct cocos2d::CCSprite *v128; // rax cocos2d::CCObject *v129; // rdi __int64 v130; // rbx __int64 v131; // rax void *v132; // r8 void *v133; // rcx void *v134; // rcx float v136; // [rsp+58h] [rbp-B0h] BYREF float v137; // [rsp+5Ch] [rbp-ACh] __int64 v138; // [rsp+60h] [rbp-A8h] size_t Size; // [rsp+68h] [rbp-A0h] BYREF size_t Size_8[2]; // [rsp+70h] [rbp-98h] BYREF __int64 v141; // [rsp+80h] [rbp-88h] float v142[2]; // [rsp+88h] [rbp-80h] BYREF char v143[8]; // [rsp+90h] [rbp-78h] BYREF void *v144[2]; // [rsp+98h] [rbp-70h] BYREF __int128 v145; // [rsp+A8h] [rbp-60h] void *Block[2]; // [rsp+B8h] [rbp-50h] BYREF __int64 v147; // [rsp+C8h] [rbp-40h] unsigned __int64 v148; // [rsp+D0h] [rbp-38h] __int128 v149; // [rsp+D8h] [rbp-30h] BYREF __int128 v150; // [rsp+E8h] [rbp-20h] void *v151[2]; // [rsp+F8h] [rbp-10h] BYREF size_t v152; // [rsp+108h] [rbp+0h] unsigned __int64 v153; // [rsp+110h] [rbp+8h] __int128 v154; // [rsp+118h] [rbp+10h] BYREF __int64 v155; // [rsp+128h] [rbp+20h] __int64 v156; // [rsp+130h] [rbp+28h] void *v157[2]; // [rsp+138h] [rbp+30h] BYREF __int128 v158; // [rsp+148h] [rbp+40h] void *v159[2]; // [rsp+158h] [rbp+50h] BYREF __int128 v160; // [rsp+168h] [rbp+60h] _QWORD Src[4]; // [rsp+178h] [rbp+70h] BYREF _BYTE v162[32]; // [rsp+198h] [rbp+90h] BYREF v6 = 0; LODWORD(Size) = 0; if ( !a2 ) return 0; LODWORD(v149) = -1778384896; if ( !cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v149) ) return 0; *(_QWORD *)(a1 + 664) = a2; cocos2d::CCObject::retain(a2); *(_QWORD *)(a1 + 672) = a3; FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); LOBYTE(v7) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v7); LOBYTE(v8) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v8); v10 = cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(v10, v142); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, v142[0] * 0.5, v142[1] * 0.5); v11 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v11; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11); v12 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, 0.0, 0.0, 80.0, 80.0); v13 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v12); v14 = *(_QWORD *)v13; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v149, 360.0, 230.0); (*(void (__fastcall **)(__int64, __int64))(v14 + 312))(v13, v15); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v13 + 184LL))(v13, &v136); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v13, 0xFFFFFFFFLL); v16 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v16; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v16 + 184LL))(v16, &unk_14090A188); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); *(_DWORD *)(a1 + 640) = -1; v17 = *(_BYTE *)(*(_QWORD *)(a1 + 664) + 320LL); LOBYTE(v138) = v17; v18 = "Message Request"; if ( !v17 ) v18 = "Group Invite"; v19 = cocos2d::CCLabelBMFont::create(v18, (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v19 + 160LL))(v19); v20 = *(_QWORD *)v19; v21 = 16; if ( !v17 ) v21 = 12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, v136, (float)(v137 + 115.0) - (float)v21); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v20 + 184))(v19, v22); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v19); if ( !v17 ) { v23 = (float)(v137 + 115.0) - 36.0; v24 = (const char *)(*(_QWORD *)(a1 + 664) + 96LL); if ( *(_QWORD *)(*(_QWORD *)(a1 + 664) + 120LL) > 0xFu ) v24 = *(const char **)v24; v25 = cocos2d::CCLabelBMFont::create(v24, (const char *)&qword_140704F78); cocos2d::CCLabelBMFont::limitLabelWidth(v25, 230.0, 0.5, 0.25); v26 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 320LL))(v25); v27 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 168LL))(v25); v28 = *(float *)&v27 * v26; v29 = *(_QWORD *)v25; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v149, v136 + 12.0, v23); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v29 + 184))(v25, v30); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v25); v32 = *(_QWORD *)(a1 + 664); if ( *(_QWORD *)(v32 + 304) ) { v33 = sub_14003F4F0((__int64)v157, v32 + 288); v6 = 2; LODWORD(Size) = 2; } else { *(_OWORD *)Block = 0; v147 = 2; v148 = 15; strcpy((char *)Block, "na"); v33 = (__int64)Block; v6 = 1; LODWORD(Size) = 1; } v34 = EmoteSprite::defForName(v33, v32, v31, COERCE_DOUBLE(1048576000)); if ( v34 ) v37 = EmoteSprite::createWithDef(v34); else v37 = nullptr; if ( (v6 & 2) != 0 ) { v6 &= ~2u; sub_14003D310((__int64)v157); } if ( (v6 & 1) != 0 ) { v6 &= ~1u; v35 = v148; if ( v148 > 0xF ) { v38 = Block[0]; if ( v148 + 1 >= 0x1000 ) { v38 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v38 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v38); } } if ( v37 ) goto LABEL_33; *(_OWORD *)Block = 0; v147 = 2; v148 = 15; strcpy((char *)Block, "na"); v39 = EmoteSprite::defForName((__int64)Block, v35, v36, COERCE_DOUBLE(1048576000)); if ( v39 ) v37 = EmoteSprite::createWithDef(v39); else v37 = nullptr; if ( v148 > 0xF ) { v40 = Block[0]; if ( v148 + 1 >= 0x1000 ) { v40 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v40 - 8) > 0x1F ) LABEL_129: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v40); } if ( v37 ) { LABEL_33: EmoteSprite::fitToHeight(v37, 16.0, 0.0); v41 = *v37; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Size, (float)(v136 - (float)(v28 * 0.5)) - 4.0, v23 - 1.0); (*(void (__fastcall **)(__int64 *, __int64))(v41 + 184))(v37, v42); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v37); } } v43 = 39; if ( !v17 ) v43 = 59; v44 = (float)(v137 + 115.0) - (float)v43; v45 = (_QWORD *)(*(_QWORD *)(a1 + 664) + 64LL); v46 = *(_QWORD *)(*(_QWORD *)(a1 + 664) + 80LL); Size = v46; v47 = 0x7FFFFFFFFFFFFFFFLL; if ( 0x7FFFFFFFFFFFFFFFLL - v46 < 6 ) sub_140009D90(v46); if ( v45[3] > 0xFu ) v45 = (_QWORD *)*v45; *(_OWORD *)v151 = 0; v152 = 0; v153 = 0; v48 = v46 + 6; v49 = 15; v50 = v151; if ( v46 + 6 > 0xF ) { v49 = v48 | 0xF; if ( (v48 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { if ( v49 < 0x16 ) v49 = 22; } else { v49 = 0x7FFFFFFFFFFFFFFFLL; } v50 = sub_14003D460(v49 + 1); v151[0] = v50; } v152 = v48; v153 = v49; *(_DWORD *)v50 = 1836020294; v50[2] = 8250; memcpy(v50 + 3, v45, Size); *((_BYTE *)v50 + v48) = 0; v51 = v6 | 0x100; LODWORD(Size) = v51; v52 = v151; if ( v153 > 0xF ) v52 = (void **)v151[0]; v53 = cocos2d::CCLabelBMFont::create((const char *)v52, "goldFont.fnt"); v54 = (int)v53; *(_QWORD *)&v149 = v53; v55 = v138; if ( (_BYTE)v138 ) { v56 = 0.60000002; v57 = 220.0; } else { v56 = 0.5; v57 = 140.0; } cocos2d::CCLabelBMFont::limitLabelWidth(v53, v57, v56, 0.30000001); v58 = CCMenuItemSpriteExtra::create(v54, 0, a1, (__int64)ThreadRequestPopup::onViewProfile); v59 = *(_QWORD *)v58; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, v136, v44); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v59 + 184))(v58, v60); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v58); if ( !v55 ) { v61 = *(_DWORD *)(*(_QWORD *)(a1 + 664) + 200LL); v62 = (const char *)&unk_14070D03C; if ( v61 == 1 ) v62 = &byte_1406ED6E0; v63 = cocos2d::CCString::createWithFormat("%i member%s", v61, v62); CString = cocos2d::CCString::getCString(v63); v65 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v65 + 160LL))(v65); v66 = CCMenuItemSpriteExtra::create((int)v65, 0, a1, (__int64)ThreadRequestPopup::onViewMembers); v67 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v149 + 320LL))(v149); v68 = (*(double (__fastcall **)(_QWORD))(*(_QWORD *)v149 + 168LL))(v149); v69 = *(float *)&v68 * v67; v70 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v65 + 320LL))(v65) * 0.5; v71 = *(_QWORD *)v58; v72 = (float)((float)((float)(*(float *)&v68 * v67) + 20.0) + v70) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, (float)(v136 - v72) + (float)(v69 * 0.5), v44); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v71 + 184))(v58, v73); v74 = *(_QWORD *)v66; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, (float)(v72 + v136) - (float)(v70 * 0.5), v44); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v74 + 184))(v66, v75); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v66); } v76 = *(_QWORD *)(*(_QWORD *)(a1 + 664) + 352LL); if ( v76 > 0 ) { v77 = GameToolbox::timestampToDateString((char *)v157, v76); v78 = sub_140059D70(v77, 0, "Sent: ", 6u); v149 = 0; v150 = 0u; v149 = *(_OWORD *)v78; v150 = *(_OWORD *)(v78 + 16); *(_QWORD *)(v78 + 16) = 0; *(_QWORD *)(v78 + 24) = 15; *(_BYTE *)v78 = 0; v51 |= 0x200u; LODWORD(Size) = v51; sub_14003D310((__int64)v157); v79 = (const char *)&v149; if ( *((_QWORD *)&v150 + 1) > 0xFu ) v79 = (const char *)v149; v80 = cocos2d::CCLabelBMFont::create(v79, "chatFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v80 + 160LL))(v80); (**((void (__fastcall ***)(__int64, void *))v80 + 46))((__int64)v80 + 368, &unk_140702E6C); v81 = *((_QWORD *)v80 + 46); v82 = *(void (__fastcall **)(char *, __int64))(v81 + 40); LOBYTE(v81) = -31; v82((char *)v80 + 368, v81); v83 = *(_QWORD *)v80; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, v136, (float)(v137 - 115.0) + 49.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v83 + 184))(v80, v84); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v80, 1); sub_14003D310((__int64)&v149); } v85 = 110; if ( !v55 ) v85 = 92; *(_QWORD *)&v86 = COERCE_UNSIGNED_INT((float)v85); v87 = 2; if ( !v55 ) v87 = -7; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v143, v136, (float)v87 + v137); v88 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v149, 0.0, 0.0, 80.0, 80.0); v89 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v88); v90 = *v89; cocos2d::CCSize::CCSize((cocos2d::CCSize *)Block, 310.0, *(float *)&v86); (*(void (__fastcall **)(_QWORD *, __int64))(v90 + 312))(v89, v91); (*(void (__fastcall **)(_QWORD *, char *))(*v89 + 184LL))(v89, v143); (*(void (__fastcall **)(_QWORD *, void *))v89[40])(v89 + 40, &unk_140702E6C); LOBYTE(v92) = 75; (*(void (__fastcall **)(_QWORD *, __int64))(v89[40] + 40LL))(v89 + 40, v92); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v89, 0xFFFFFFFFLL); v94 = *(_QWORD **)(a1 + 664); if ( v55 ) { if ( v94[19] ) { Block[1] = nullptr; v101 = v94 + 17; if ( v94[20] > 0xFu ) v101 = (_OWORD *)v94[17]; v102 = v94[19]; if ( v102 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v93); if ( v102 > 0xF ) { if ( (v102 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v47 = v102 | 0xF; if ( (v102 | 0xF) < 0x16 ) v47 = 22; } Block[0] = sub_14003D460(v47 + 1); v147 = v102; v148 = v47; memcpy(Block[0], v101, v102 + 1); } else { v147 = v102; v148 = 15; *(_OWORD *)Block = *v101; } v99 = Block; v100 = v51 | 0x40; } else { v149 = 0; *(_QWORD *)&v149 = sub_14003D460(0x20u); *(_QWORD *)&v150 = 17; *((_QWORD *)&v150 + 1) = 31; strcpy((char *)v149, "(message removed)"); v99 = (void **)&v149; v100 = v51 | 0x20; } *(_OWORD *)v144 = *(_OWORD *)v99; v145 = *((_OWORD *)v99 + 1); v99[2] = nullptr; v99[3] = (void *)15; *(_BYTE *)v99 = 0; v97 = v144; v98 = v100 | 0x80; } else { if ( v94[34] ) { v95 = (__int128 *)sub_14003F4F0((__int64)v162, (__int64)(v94 + 32)); v96 = v51 | 8; } else { v154 = 0; *(_QWORD *)&v154 = sub_14003D460(0x20u); v155 = 16; v156 = 31; strcpy((char *)v154, "(no description)"); v95 = &v154; v96 = v51 | 4; } *(_OWORD *)v157 = *v95; v158 = v95[1]; *((_QWORD *)v95 + 2) = 0; *((_QWORD *)v95 + 3) = 15; *(_BYTE *)v95 = 0; v97 = v157; v98 = v96 | 0x10; } *(_OWORD *)v159 = *(_OWORD *)v97; v160 = *((_OWORD *)v97 + 1); v97[2] = nullptr; v97[3] = (void *)15; *(_BYTE *)v97 = 0; if ( v98 < 0 ) { v98 &= ~0x80u; if ( *((_QWORD *)&v145 + 1) > 0xFu ) { v103 = v144[0]; if ( (unsigned __int64)(*((_QWORD *)&v145 + 1) + 1LL) >= 0x1000 ) { v103 = *((void **)v144[0] - 1); if ( (unsigned __int64)((char *)v144[0] - (char *)v103 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v103); } } if ( (v98 & 0x40) != 0 ) { v98 &= ~0x40u; sub_14003D310((__int64)Block); } if ( (v98 & 0x20) != 0 ) { v98 &= ~0x20u; sub_14003D310((__int64)&v149); } if ( (v98 & 0x10) != 0 ) { v98 &= ~0x10u; if ( *((_QWORD *)&v158 + 1) > 0xFu ) { v104 = v157[0]; if ( (unsigned __int64)(*((_QWORD *)&v158 + 1) + 1LL) >= 0x1000 ) { v104 = *((void **)v157[0] - 1); if ( (unsigned __int64)((char *)v157[0] - (char *)v104 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v104); } } if ( (v98 & 8) != 0 ) { v98 &= ~8u; sub_14003D310((__int64)v162); } if ( (v98 & 4) != 0 ) sub_14003D310((__int64)&v154); GameToolbox::stripNonBreakingSpaces((unsigned __int64 *)v159); *(_OWORD *)Size_8 = 0; v141 = 0; sub_1400E4180(Src, v159, Size_8); ensureEmotesAreLoaded(v106, v105, v107, COERCE_DOUBLE(1117782016)); v108 = dword_1408FE3A4; if ( v55 ) v108 = dword_1408FE394; Block[0] = &v154; v154 = 0; v155 = 0; v156 = 15; LOBYTE(v154) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Size, 0.5, 0.5); v110 = (float *)TextArea::create((__int64)&v154, "chatFont.fnt", 1.0, 290.0, v109, 1101004800, 1, v108); v111 = sub_14003F4F0((__int64)v162, (__int64)Src); *(float *)&v86 = *(float *)&v86 - 10.0; TextArea::fitString(v110, v111, 290.0, v86, 0.40000001, 0.0); (*(void (__fastcall **)(float *, char *))(*(_QWORD *)v110 + 184LL))(v110, v143); (*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v110); if ( Size_8[0] != Size_8[1] ) sub_1400E4730((__int64)v110, Src, (__int64 *)Size_8, *(_QWORD *)(a1 + 584), a1 + 680, 0); v112 = (float)(v137 - 115.0) + 22.0; v113 = 50; if ( *(_BYTE *)(*(_QWORD *)(a1 + 664) + 329LL) ) v113 = 0; v114 = (float)v113; Block[0] = operator new(0x2C8u); v115 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)Block[0]); if ( v115 ) { if ( ButtonSprite::init_1( (__int64)v115, (__int64)"Accept", 65, 0, 1057803469, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1104150528) ) { cocos2d::CCObject::autorelease(v115); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v115 + 8LL))(v115, 1); LODWORD(v115) = 0; } } v116 = CCMenuItemSpriteExtra::create((int)v115, 0, a1, (__int64)ThreadRequestPopup::onAccept); v117 = *(_QWORD *)v116; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, v136 - v114, v112); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v117 + 184))(v116, v118); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v116); if ( !*(_BYTE *)(*(_QWORD *)(a1 + 664) + 329LL) ) { Block[0] = operator new(0x2C8u); v119 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)Block[0]); if ( v119 ) { if ( ButtonSprite::init_1( (__int64)v119, (__int64)"Ignore", 65, 0, 1057803469, 1, &qword_140704F78, (__int64)"GJ_button_05.png", 1104150528) ) { cocos2d::CCObject::autorelease(v119); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v119 + 8LL))(v119, 1); LODWORD(v119) = 0; } } v120 = CCMenuItemSpriteExtra::create((int)v119, 0, a1, (__int64)ThreadRequestPopup::onIgnore); v121 = *(_QWORD *)v120; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, v114 + v136, v112); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v121 + 184))(v120, v122); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v120); } v123 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_reportBtn_001.png"); v124 = (int)v123; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v123 + 160LL))(v123); v125 = CCMenuItemSpriteExtra::create(v124, 0, a1, (__int64)ThreadRequestPopup::onReport); *((_DWORD *)v125 + 93) = 1067030938; v126 = *(_QWORD *)v125; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, (float)(v136 - 180.0) + 5.0, (float)(v137 - 115.0) + 8.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v126 + 184))(v125, v127); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v125); v128 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); LODWORD(v126) = (_DWORD)v128; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v128 + 160LL))(v128); v129 = CCMenuItemSpriteExtra::create(v126, 0, a1, (__int64)PagedListPopup::onClose); *((_DWORD *)v129 + 93) = 1069547520; v130 = *(_QWORD *)v129; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, (float)(v136 - 180.0) + 8.0, (float)(v137 + 115.0) - 8.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v130 + 184))(v129, v131); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v129); sub_14003D310((__int64)Src); v132 = (void *)Size_8[0]; if ( Size_8[0] ) { if ( (unsigned __int64)(24 * ((signed __int64)(v141 - Size_8[0]) / 24)) >= 0x1000 ) { v132 = *(void **)(Size_8[0] - 8); if ( Size_8[0] - (unsigned __int64)v132 - 8 > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v132); *(_OWORD *)Size_8 = 0; v141 = 0; } if ( *((_QWORD *)&v160 + 1) > 0xFu ) { v133 = v159[0]; if ( (unsigned __int64)(*((_QWORD *)&v160 + 1) + 1LL) >= 0x1000 ) { v133 = *((void **)v159[0] - 1); if ( (unsigned __int64)((char *)v159[0] - (char *)v133 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v133); } if ( v153 > 0xF ) { v134 = v151[0]; if ( v153 + 1 >= 0x1000 ) { v134 = *((void **)v151[0] - 1); if ( (unsigned __int64)((char *)v151[0] - (char *)v134 - 8) > 0x1F ) goto LABEL_129; } j_j_free(v134); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source