// // ThreadViewPopup::init from 0x1400d93b0 to 0x1400da6cd (4893 bytes) // // 3 xrefs: // > ThreadViewPopup::create @ 0x1400d92e2 // > ThreadViewPopup::createModView @ 0x1400d9363 // > @ 0x140914864 // // 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:28 +0000 // // Hidden C++ exception states: #wind=5 char __fastcall ThreadViewPopup::init(__int64 a1, cocos2d::CCObject *a2) { __int64 v4; // rdx __int64 v5; // rdx __int64 v6; // rdx __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax __int64 v11; // rdi __int64 v12; // rbx __int64 v13; // rax __int64 v14; // rcx const char *v15; // rcx struct cocos2d::CCLabelBMFont *v16; // rax __int64 v17; // rdi __int64 v18; // rbx __int64 v19; // rax __int64 v20; // rax struct cocos2d::CCLabelBMFont *v21; // rdi __int64 v22; // rbx __int64 v23; // rax __int64 v24; // rax __int64 v25; // rax __int64 v26; // rax struct cocos2d::CCSprite *v27; // rax int v28; // ebx cocos2d::CCObject *v29; // rdi __int64 v30; // rbx __int64 v31; // rax struct cocos2d::CCLabelBMFont *v32; // rbx __int64 v33; // rdx cocos2d::CCObject *v34; // rdi __int64 v35; // rbx __int64 v36; // rax struct cocos2d::CCSprite *v37; // rax int v38; // ebx cocos2d::CCObject *v39; // rdi __int64 v40; // rbx __int64 v41; // rax struct cocos2d::CCSprite *v42; // rax int v43; // ebx cocos2d::CCObject *v44; // rdi __int64 v45; // rbx int v46; // ecx __int64 v47; // rax struct cocos2d::CCSprite *v48; // rax int v49; // ebx cocos2d::CCObject *v50; // rdi __int64 v51; // rbx int v52; // ecx __int64 v53; // rax __int64 v54; // rdx __int64 v55; // rax float v56; // xmm1_4 float v57; // xmm2_4 __int64 v58; // rax __int64 v59; // rax _QWORD *v60; // rdi __int64 v61; // rdx __int64 v62; // rbx __int64 v63; // rax const struct cocos2d::CCSize *v64; // rax cocos2d::CCObject *v65; // rdi __int64 v66; // rbx double v67; // xmm3_8 __int64 v68; // rax __int64 v69; // rbx __int64 v70; // rax __int64 v71; // rdx __int64 v72; // rbx __int64 v73; // rax float v74; // xmm9_4 struct cocos2d::CCSprite *v75; // rax int v76; // ebx cocos2d::CCObject *v77; // rax __int64 v78; // rdi __int64 v79; // rbx __int64 v80; // rax __int64 v81; // rdx __int64 v82; // r8 __int64 v83; // rax _QWORD *v84; // rbx void *v85; // r8 cocos2d::CCObject *v86; // rax __int64 v87; // rdi __int64 v88; // rbx __int64 v89; // rax __int64 v90; // rax _QWORD *v91; // rsi __int64 v92; // rbx __int64 v93; // rax __int64 v94; // rbx __int64 v95; // rax struct cocos2d::CCLabelBMFont *v96; // rax __int64 v97; // rdi __int64 v98; // rbx __int64 v99; // rax __int64 v100; // rdx int v101; // eax cocos2d::CCObject *v102; // rax __int64 v103; // rdx __int64 v104; // rcx char *v105; // rdi __int64 v106; // rbx __int64 v107; // rax __int64 v108; // rcx __int64 v109; // rdx __int64 v110; // rcx __int64 v111; // r8 __int64 v112; // rcx __int64 v113; // rdx __int64 v114; // r8 __int64 v115; // rax __int64 v116; // rcx __int64 v117; // rbx __int64 v118; // rax const struct cocos2d::CCPoint *v119; // rax char *v120; // rbx cocos2d::CCObject *v121; // rbx cocos2d::CCObject *v122; // rax __int64 v123; // rdi __int64 v124; // rbx __int64 v125; // rax __int64 v126; // rcx cocos2d::CCObject *v127; // rax __int64 v128; // rcx __int64 v129; // rax __int64 v130; // rax int v131; // ebx __int64 v132; // rcx struct cocos2d::CCObject *v133; // rax int v134; // ecx __int64 v135; // rax int v137; // [rsp+58h] [rbp-B0h] BYREF float v138; // [rsp+60h] [rbp-A8h] BYREF float v139; // [rsp+64h] [rbp-A4h] __int64 v140[2]; // [rsp+68h] [rbp-A0h] BYREF _QWORD Block[3]; // [rsp+78h] [rbp-90h] BYREF __int64 v142; // [rsp+90h] [rbp-78h] unsigned __int64 v143; // [rsp+98h] [rbp-70h] if ( !a2 ) return 0; v137 = -1778384896; if ( !cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v137) ) return 0; *(_QWORD *)(a1 + 744) = a2; cocos2d::CCObject::retain(a2); *(_DWORD *)(a1 + 776) = *(_DWORD *)(*(_QWORD *)(a1 + 744) + 128LL); LOBYTE(v4) = -106; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, v4); FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); *(_BYTE *)(a1 + 596) = 1; LOBYTE(v5) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v5); LOBYTE(v6) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v6); v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, Block); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, *(float *)Block * 0.5, *((float *)Block + 1) * 0.5); v9 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v9; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v9); v10 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v140, 0.0, 0.0, 80.0, 80.0); v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v10); v12 = *(_QWORD *)v11; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v137, 440.0, 290.0); (*(void (__fastcall **)(__int64, __int64))(v12 + 312))(v11, v13); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, &v138); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v11, 4294967294LL); v14 = *(_QWORD *)(a1 + 744); if ( *(_BYTE *)(v14 + 320) ) v15 = (const char *)(v14 + 64); else v15 = (const char *)(v14 + 96); if ( *((_QWORD *)v15 + 3) > 0xFu ) v15 = *(const char **)v15; v16 = cocos2d::CCLabelBMFont::create(v15, "goldFont.fnt"); *(_QWORD *)(a1 + 880) = v16; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 160LL))(v16); v17 = **(_QWORD **)(a1 + 880); v18 = *(_QWORD *)(a1 + 880); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, v138, (float)(v139 + 145.0) - 21.0); (*(void (__fastcall **)(__int64, __int64))(v17 + 184))(v18, v19); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 880)); ThreadViewPopup::layoutTitleRow(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, (float)(v138 - 220.0) + 38.0, (float)(v139 + 145.0) - 21.0); cocos2d::CCPoint::operator=(a1 + 872, v20); if ( *(_BYTE *)(*(_QWORD *)(a1 + 744) + 320LL) ) { v21 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, (const char *)&qword_140704F78); *(_QWORD *)(a1 + 856) = v21; v22 = *(_QWORD *)v21; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v22 + 288))(v21, v23); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 856) + 160LL))(*(_QWORD *)(a1 + 856)); LOWORD(v137) = -11521; BYTE2(v137) = 60; (**(void (__fastcall ***)(__int64, int *))(*(_QWORD *)(a1 + 856) + 368LL))(*(_QWORD *)(a1 + 856) + 368LL, &v137); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, 3.0, -3.0); cocos2d::CCPoint::operator+(a1 + 872, &v137, v24); (*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 856) + 184LL))(*(_QWORD *)(a1 + 856), &v137); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 856)); ThreadViewPopup::refreshDMSubLabel(a1); } v25 = *(_QWORD *)(a1 + 744); if ( *(_BYTE *)(v25 + 320) || *(_DWORD *)(v25 + 324) != 8 ) { if ( !*(_BYTE *)(a1 + 783) ) cocos2d::CCNode::schedule(a1, ThreadViewPopup::onAutoRefresh); } else { *(_DWORD *)(a1 + 932) = 0; } v26 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v26; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v26, 10); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 184LL))(*(_QWORD *)(a1 + 552), &unk_14090A188); *(_DWORD *)(a1 + 640) = -1; v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v28 = (int)v27; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v27 + 160LL))(v27); v29 = CCMenuItemSpriteExtra::create(v28, 0, a1, (__int64)ThreadViewPopup::onClose); *((_DWORD *)v29 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v29); v30 = *(_QWORD *)v29; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)(v138 - 220.0) + 8.0, (float)(v139 + 145.0) - 8.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v30 + 184))(v29, v31); v32 = cocos2d::CCLabelBMFont::create("...", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v32 + 160LL))(v32); LOBYTE(v33) = -116; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v32 + 46) + 40LL))((__int64)v32 + 368, v33); v34 = CCMenuItemSpriteExtra::create((int)v32, 0, a1, (__int64)ThreadViewPopup::onThreadOptions); *((_DWORD *)v34 + 93) = 1070386381; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v34); v35 = *(_QWORD *)v34; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)(v138 + 220.0) - 20.0, (float)(v139 + 145.0) - 21.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v35 + 184))(v34, v36); if ( !*(_BYTE *)(*(_QWORD *)(a1 + 744) + 320LL) ) { v37 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_config_001.png"); v38 = (int)v37; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v37 + 160LL))(v37); v39 = CCMenuItemSpriteExtra::create(v38, 0, a1, (__int64)ThreadViewPopup::onShowDescription); *((_DWORD *)v39 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v39); v40 = *(_QWORD *)v39; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)(v138 + 220.0) - 44.0, (float)(v139 + 145.0) - 21.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v40 + 184))(v39, v41); } v42 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); v43 = (int)v42; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v42 + 160LL))(v42); v44 = CCMenuItemSpriteExtra::create(v43, 0, a1, (__int64)ThreadViewPopup::onRefresh); *((_DWORD *)v44 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v44); v45 = *(_QWORD *)v44; v46 = 72; if ( *(_BYTE *)(*(_QWORD *)(a1 + 744) + 320LL) ) v46 = 44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)(v138 + 220.0) - (float)v46, (float)(v139 + 145.0) - 21.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v45 + 184))(v44, v47); v48 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_search_001.png"); v49 = (int)v48; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v48 + 160LL))(v48); v50 = CCMenuItemSpriteExtra::create(v49, 0, a1, (__int64)ThreadViewPopup::onSearch); *((_DWORD *)v50 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v50); v51 = *(_QWORD *)v50; v52 = 100; if ( *(_BYTE *)(*(_QWORD *)(a1 + 744) + 320LL) ) v52 = 72; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)(v138 + 220.0) - (float)v52, (float)(v139 + 145.0) - 21.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v51 + 184))(v50, v53); v55 = *(_QWORD *)(a1 + 744); LOBYTE(v54) = *(_BYTE *)(v55 + 320) || *(_DWORD *)(v55 + 324) != 8; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v50 + 336LL))(v50, v54); ThreadViewPopup::buildMemberButton(a1); v56 = (float)(v139 + 145.0) - 40.0; v57 = (float)(v139 - 145.0) + 46.0; *(float *)(a1 + 1068) = v56; *(_DWORD *)(a1 + 832) = 1137508352; *(float *)(a1 + 836) = v56 - v57; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, v138, (float)(v57 + v56) * 0.5); cocos2d::CCPoint::operator=(a1 + 840, v58); v59 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&Block[1], 0.0, 0.0, 40.0, 40.0); v60 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v59); LOBYTE(v61) = 80; (*(void (__fastcall **)(_QWORD *, __int64))(v60[40] + 40LL))(v60 + 40, v61); LOWORD(v137) = 0; BYTE2(v137) = 0; (*(void (__fastcall **)(_QWORD *, int *))v60[40])(v60 + 40, &v137); v62 = *v60; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v140, *(float *)(a1 + 832), *(float *)(a1 + 836)); (*(void (__fastcall **)(_QWORD *, __int64))(v62 + 312))(v60, v63); (*(void (__fastcall **)(_QWORD *, __int64))(*v60 + 184LL))(v60, a1 + 840); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v60, 0xFFFFFFFFLL); *(_QWORD *)(a1 + 1048) = v60; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v140, *(float *)(a1 + 832), *(float *)(a1 + 836)); v65 = ScrollableContentLayer::create(v64); *(_QWORD *)(a1 + 816) = v65; v66 = *(_QWORD *)v65; *(_QWORD *)&v67 = *(unsigned int *)(a1 + 832); *(float *)&v67 = *(float *)&v67 * 0.5; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v140, *(float *)(a1 + 840) - *(float *)&v67, *(float *)(a1 + 844) - (float)(*(float *)(a1 + 836) * 0.5)); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v66 + 184))(v65, v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, 2.0, 0.0); v69 = *(_QWORD *)(a1 + 816); cocos2d::CCPoint::operator=(v69 + 500, v70); ScrollableContentLayer::updateScrollThumb(v69, v71); v72 = *(_QWORD *)(a1 + 816); ScrollableContentLayer::ensureOwnedContentNode((_QWORD *)v72); ScrollableContentLayer::unmountAllRows(v72); *(_QWORD *)(v72 + 576) = a1 + 664; *(_DWORD *)(v72 + 584) = 1119879168; *(_DWORD *)(v72 + 588) = 1086324736; *(_DWORD *)(v72 + 592) = 1086324736; v73 = *(_QWORD *)(v72 + 600); if ( v73 != *(_QWORD *)(v72 + 608) ) *(_QWORD *)(v72 + 608) = v73; if ( a1 != -664 ) ScrollableContentLayer::reloadVirtualRows(v72, -1.0); *(_BYTE *)(*(_QWORD *)(a1 + 816) + 524LL) = 1; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 816), 1); v74 = (float)(v139 - 145.0) + 22.0; v75 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plusBtn_001.png"); v76 = (int)v75; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v75 + 160LL))(v75); v77 = CCMenuItemSpriteExtra::create(v76, 0, a1, (__int64)ThreadViewPopup::onShareLevel); *(_QWORD *)(a1 + 1224) = v77; *((_DWORD *)v77 + 93) = 1067869798; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 1224)); v78 = **(_QWORD **)(a1 + 1224); v79 = *(_QWORD *)(a1 + 1224); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)(v138 - 220.0) + 24.0, v74); (*(void (__fastcall **)(__int64, __int64))(v78 + 184))(v79, v80); *(_OWORD *)&Block[1] = 0; v142 = 4; v143 = 15; strcpy((char *)&Block[1], "easy"); v83 = EmoteSprite::defForName((__int64)&Block[1], v81, v82, v67); if ( v83 ) v84 = EmoteSprite::createWithDef(v83); else v84 = nullptr; if ( v143 > 0xF ) { v85 = (void *)Block[1]; if ( v143 + 1 >= 0x1000 ) { v85 = *(void **)(Block[1] - 8LL); if ( (unsigned __int64)(Block[1] - (_QWORD)v85 - 8LL) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v85); } EmoteSprite::fitToHeight(v84, 18.0, 0.0); v86 = CCMenuItemSpriteExtra::create((int)v84, 0, a1, (__int64)ThreadViewPopup::onEmotes); *(_QWORD *)(a1 + 1232) = v86; *((_DWORD *)v86 + 93) = 1068708659; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 1232)); v87 = **(_QWORD **)(a1 + 1232); v88 = *(_QWORD *)(a1 + 1232); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)((float)(v138 - 220.0) + 27.0) + 26.0, v74); (*(void (__fastcall **)(__int64, __int64))(v87 + 184))(v88, v89); v90 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&Block[1], 0.0, 0.0, 40.0, 40.0); v91 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v90); v92 = *v91; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v140, 293.0, 28.0); (*(void (__fastcall **)(_QWORD *, __int64))(v92 + 312))(v91, v93); LOWORD(v137) = 13405; BYTE2(v137) = 31; (*(void (__fastcall **)(_QWORD *, int *))v91[40])(v91 + 40, &v137); v94 = *v91; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)((float)(v138 - 27.5) + 13.0) + 13.0, v74); (*(void (__fastcall **)(_QWORD *, __int64))(v94 + 184))(v91, v95); (*(void (__fastcall **)(_QWORD, _QWORD *, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v91, 0); *(_QWORD *)(a1 + 1008) = v91; *(float *)(a1 + 1060) = v74 - 14.0; v96 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, "chatFont.fnt"); *(_QWORD *)(a1 + 1016) = v96; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v96 + 160LL))(v96); v97 = **(_QWORD **)(a1 + 1016); v98 = *(_QWORD *)(a1 + 1016); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, 1.0, 1.0); (*(void (__fastcall **)(__int64, __int64))(v97 + 288))(v98, v99); LOBYTE(v100) = -96; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 1016) + 368LL) + 40LL))( *(_QWORD *)(a1 + 1016) + 368LL, v100); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1016) + 336LL))(*(_QWORD *)(a1 + 1016), 0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1016), 6); v101 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("downArrowBtn_001.png"); v102 = CCMenuItemSpriteExtra::create(v101, 0, a1, (__int64)ThreadViewPopup::onScrollToBottom); *(_QWORD *)(a1 + 1024) = v102; *((_DWORD *)v102 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 1024)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1024) + 336LL))(*(_QWORD *)(a1 + 1024), 0); *(_DWORD *)(a1 + 1064) = 1133281280; v105 = CCTextInputNode::create(v104, v103, (__int64)"Message"); *(_QWORD *)(a1 + 920) = v105; v106 = *(_QWORD *)v105; v107 = (*(__int64 (__fastcall **)(_QWORD *))(*v91 + 200LL))(v91); (*(void (__fastcall **)(char *, __int64))(v106 + 184))(v105, v107); v108 = *(_QWORD *)(a1 + 920); *(_BYTE *)(v108 + 641) = 1; sub_1400405A0((void **)(v108 + 480), &byte_1406ED6E0, 0); ensureEmotesAreLoaded(v110, v109, v111, COERCE_DOUBLE(1109393408)); v112 = (unsigned int)(17 * dword_1408FE394 + 500); *(_DWORD *)(*(_QWORD *)(a1 + 920) + 608LL) = v112; ensureEmotesAreLoaded(v112, v113, v114, COERCE_DOUBLE(1109393408)); CCTextInputNode::setParseEmotes(*(_QWORD *)(a1 + 920), dword_1408FE394); v115 = *(_QWORD *)(a1 + 920); *(_BYTE *)(v115 + 640) = 1; *(_BYTE *)(*(_QWORD *)(v115 + 592) + 764LL) = 1; *(_QWORD *)(*(_QWORD *)(a1 + 920) + 600LL) = a1 + 544; LOWORD(v137) = 27843; v116 = *(_QWORD *)(a1 + 920); *(_WORD *)(v116 + 572) = 27843; *(_BYTE *)(v116 + 574) = 65; CCTextInputNode::refreshLabel(v116); *(_BYTE *)(*(_QWORD *)(a1 + 920) + 642LL) = 0; v117 = *(_QWORD *)(a1 + 920); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v140, 6.0, 4.0); cocos2d::CCSize::operator=(v117 + 644, v118); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 920), 5); v140[0] = (__int64)&Block[1]; *(_OWORD *)&Block[1] = 0; v142 = 0; v143 = 15; LOBYTE(Block[1]) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, 0.0, 1.0); v120 = TextArea::create((__int64)&Block[1], "chatFont.fnt", 1.0, 358.66666, v119, 1101004800, 1, 0); v120[601] = 1; (*(void (__fastcall **)(char *))(*(_QWORD *)v120 + 160LL))(v120); CCTextInputNode::addTextArea(*(_QWORD *)(a1 + 920), (__int64)v120); CCTextInputNode::enableTextScroll(*(_QWORD *)(a1 + 920)); v140[0] = (__int64)operator new(0x2C8u); v121 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(v140[0]); if ( v121 ) { if ( ButtonSprite::init_1( (__int64)v121, (__int64)"Send", 45, 0, 1057803469, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1105199104) ) { cocos2d::CCObject::autorelease(v121); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v121 + 8LL))(v121, 1); LODWORD(v121) = 0; } } v122 = CCMenuItemSpriteExtra::create((int)v121, 0, a1, (__int64)ThreadViewPopup::onSend); *(_QWORD *)(a1 + 904) = v122; *((_DWORD *)v122 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 904)); v123 = **(_QWORD **)(a1 + 904); v124 = *(_QWORD *)(a1 + 904); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, (float)((float)(v138 + 220.0) - 15.0) - 22.5, v74); (*(void (__fastcall **)(__int64, __int64))(v123 + 184))(v124, v125); ThreadViewPopup::layoutComposeBar(a1); v127 = (cocos2d::CCObject *)cocos2d::CCArray::create(v126); *(_QWORD *)(a1 + 752) = v127; cocos2d::CCObject::retain(v127); v129 = *(_QWORD *)(a1 + 744); if ( *(int *)(v129 + 128) > 0 && !*(_BYTE *)(v129 + 244) ) { v130 = GJAccountManager::sharedState(v128); v131 = *(_DWORD *)(v130 + 360) - *(_DWORD *)(v130 + 364); v132 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v140[0] = (__int64)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v140[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v132 = *(_QWORD *)&qword_14090BFB0; } v133 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v132 + 1232), v131); if ( v133 ) { v134 = 0; if ( *((_DWORD *)v133 + 191) - *(_DWORD *)(*(_QWORD *)(a1 + 744) + 128LL) >= 0 ) v134 = *((_DWORD *)v133 + 191) - *(_DWORD *)(*(_QWORD *)(a1 + 744) + 128LL); *((_DWORD *)v133 + 191) = v134; } } *(_DWORD *)(*(_QWORD *)(a1 + 744) + 128LL) = 0; ThreadViewPopup::refreshLockNotice(a1); v135 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v140[0] = (__int64)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v140[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v135 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v135 + 1392) = a1 + 672; if ( !*(_BYTE *)(a1 + 783) || *(__int64 *)(a1 + 784) <= 0 || !(unsigned __int8)ThreadViewPopup::openAt(a1) ) { ThreadViewPopup::showLoading(a1); ThreadViewPopup::requestMessages(a1, 0, 0); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source