// // ThreadViewPopup::mountVirtualRow from 0x1400e1750 to 0x1400e2c59 (5385 bytes) // // 2 xrefs: // > @ 0x140728688 // > @ 0x140914ac8 // // 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:31 +0000 // // Hidden C++ exception states: #wind=11 void __fastcall ThreadViewPopup::mountVirtualRow(__int64 a1, int a2, __int64 a3, void *a4) { __int64 v4; // xmm3_8 __int64 v6; // r12 __int64 v8; // rsi __int64 v9; // r15 float v10; // xmm8_4 int v11; // eax char v12; // di cocos2d::CCObject *v13; // rbx const char *v14; // rdx cocos2d::CCObject *v15; // rdi __int64 v16; // rbx __int64 v17; // rax cocos2d::CCObject *v18; // rbx cocos2d::CCObject *v19; // rdi __int64 v20; // rbx float v21; // xmm8_4 __int64 v22; // rax cocos2d::CCObject *v23; // rbx cocos2d::CCObject *v24; // rdi __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rdx cocos2d::CCString *v28; // rax const char *CString; // rax struct cocos2d::CCSprite *v30; // rdi __int64 v31; // rdx void (__fastcall *v32)(char *, __int64); // r8 float v33; // xmm8_4 __int64 v34; // rbx __int64 v35; // rax __int64 v36; // rbx __int64 v37; // rdx __int64 v38; // rbx __int64 v39; // rax __int64 v40; // rcx __int64 v41; // rdx __int64 v42; // rax struct cocos2d::CCObject *v43; // r13 __int64 v44; // rax float v45; // xmm7_4 cocos2d::CCNode *v46; // rdi __int64 v47; // rbx __int64 v48; // rax __int64 v49; // rbx __int64 v50; // rbx __int64 v51; // rdx __int64 v52; // rbx __int64 v53; // rax __int64 v54; // rbx struct cocos2d::CCFiniteTimeAction *v55; // rax struct cocos2d::CCAction *v56; // rax __int64 v57; // r15 size_t v58; // r12 __int64 v59; // rsi int v60; // esi __int64 v61; // rbx cocos2d::CCString *v62; // rax const char *v63; // rax size_t v64; // r8 cocos2d::CCArray *v65; // rdi void *v66; // rcx signed int i; // ebx signed int v68; // eax struct cocos2d::CCObject *v69; // rax __int64 v70; // rax __int64 v71; // rcx void (__fastcall **v72)(__int64, __int64); // rbx __int64 v73; // rax __int64 v74; // rcx __int64 v75; // rax bool v76; // al __int64 v77; // rbx __int64 v78; // rax __int64 v79; // r15 const char *v80; // rcx struct cocos2d::CCLabelBMFont *v81; // rbx int v82; // esi __int16 *v83; // rdx float v84; // xmm6_4 double v85; // xmm0_8 float v86; // xmm9_4 cocos2d::CCObject *v87; // rdi __int64 v88; // rbx __int64 v89; // rax float v90; // xmm9_4 struct cocos2d::CCSprite *v91; // rdi __int64 v92; // rbx float v93; // xmm6_4 double v94; // xmm0_8 float v95; // xmm7_4 __int64 v96; // rbx __int64 v97; // rax struct tm *v98; // rax unsigned __int64 v99; // rax int tm_hour; // ecx int v101; // edx const char *v102; // r9 cocos2d::CCString *v103; // rax const char *v104; // rax void **v105; // rcx struct cocos2d::CCLabelBMFont *v106; // rdi void *v107; // rax __int64 v108; // rbx __int64 v109; // rax __int64 v110; // rdx __int64 v111; // rbx __int64 v112; // rax __int64 v113; // r8 __int64 v114; // rsi float v115; // xmm6_4 __int64 v116; // rdi __int64 v117; // rdx __int64 v118; // rcx __int64 v119; // r8 int v120; // ebx double v121; // xmm3_8 const struct cocos2d::CCPoint *v122; // rax __int64 v123; // rdx __int64 v124; // rcx __int64 v125; // r8 char *v126; // r15 __int64 v127; // rax __int64 v128; // rbx __int64 v129; // rax __int64 v130; // rbx __int64 v131; // rax struct cocos2d::CCLabelBMFont *v132; // rdi __int64 v133; // rbx __int64 v134; // rax __int64 v135; // rbx __int64 v136; // rax struct cocos2d::CCLabelBMFont *v137; // rsi __int64 v138; // rdx void (__fastcall *v139)(char *, __int64); // r8 cocos2d::CCObject *v140; // rdi void *v141; // r15 __int64 v142; // rbx float v143; // xmm7_4 float v144; // xmm6_4 float v145; // xmm6_4 __int64 v146; // rax cocos2d::CCSprite *v147; // rbx cocos2d::CCObject *v148; // rdi __int64 v149; // rbx float v150; // xmm6_4 float v151; // xmm6_4 __int64 v152; // rax void *v153; // r8 _WORD v154[8]; // [rsp+58h] [rbp-B0h] BYREF __int16 v155; // [rsp+68h] [rbp-A0h] BYREF char v156; // [rsp+6Ah] [rbp-9Eh] _QWORD *v157; // [rsp+78h] [rbp-90h] BYREF __time64_t Time; // [rsp+80h] [rbp-88h] BYREF void *v159; // [rsp+88h] [rbp-80h] BYREF unsigned int v160; // [rsp+90h] [rbp-78h] int v161; // [rsp+94h] [rbp-74h] int v162; // [rsp+98h] [rbp-70h] __int64 v163; // [rsp+A0h] [rbp-68h] BYREF void *v164[2]; // [rsp+A8h] [rbp-60h] BYREF __int64 v165; // [rsp+B8h] [rbp-50h] void *Block[2]; // [rsp+C0h] [rbp-48h] BYREF __int64 v167; // [rsp+D0h] [rbp-38h] unsigned __int64 v168; // [rsp+D8h] [rbp-30h] _QWORD v169[4]; // [rsp+E0h] [rbp-28h] BYREF _BYTE Src[32]; // [rsp+100h] [rbp-8h] BYREF v159 = a4; v6 = a3; v163 = a3; v162 = a2; v8 = (__int64)a2 << 6; v9 = *(_QWORD *)(a1 + 32); v10 = *(float *)(v8 + v9 + 12); v11 = *(_DWORD *)(v8 + v9); switch ( v11 ) { case 0: v12 = *(_BYTE *)(a1 + 440); v159 = operator new(0x2C8u); v13 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v159); if ( v13 ) { v14 = "Load earlier"; if ( v12 ) v14 = "More results"; if ( ButtonSprite::init_1( (__int64)v13, (__int64)v14, 90, 0, 1053609165, 1, &qword_140704F78, (__int64)"GJ_button_05.png", 1101004800) ) { cocos2d::CCObject::autorelease(v13); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 8LL))(v13, 1); LODWORD(v13) = 0; } } v15 = CCMenuItemSpriteExtra::create((int)v13, 0, (int)a1 - 664, (__int64)ThreadViewPopup::onLoadEarlier); *((_DWORD *)v15 + 93) = 1066192077; (*(void (__fastcall **)(void *, cocos2d::CCObject *))(*(_QWORD *)a4 + 464LL))(a4, v15); v16 = *(_QWORD *)v15; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, *(float *)(a1 + 168) * 0.5, v10 - 12.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v16 + 184))(v15, v17); return; case 5: v159 = operator new(0x2C8u); v18 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v159); if ( v18 ) { if ( ButtonSprite::init_1( (__int64)v18, (__int64)"Load newer", 90, 0, 1053609165, 1, &qword_140704F78, (__int64)"GJ_button_05.png", 1101004800) ) { cocos2d::CCObject::autorelease(v18); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v18 + 8LL))(v18, 1); LODWORD(v18) = 0; } } v19 = CCMenuItemSpriteExtra::create((int)v18, 0, (int)a1 - 664, (__int64)ThreadViewPopup::onLoadNewer); *((_DWORD *)v19 + 93) = 1066192077; (*(void (__fastcall **)(void *, cocos2d::CCObject *))(*(_QWORD *)a4 + 464LL))(a4, v19); v20 = *(_QWORD *)v19; v21 = v10 - 12.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, (float)(*(float *)(a1 + 168) * 0.5) - 62.0, v21); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v20 + 184))(v19, v22); v159 = operator new(0x2C8u); v23 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v159); if ( v23 ) { if ( ButtonSprite::init_1( (__int64)v23, (__int64)"Latest", 70, 0, 1053609165, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1101004800) ) { cocos2d::CCObject::autorelease(v23); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v23 + 8LL))(v23, 1); LODWORD(v23) = 0; } } v24 = CCMenuItemSpriteExtra::create((int)v23, 0, (int)a1 - 664, (__int64)ThreadViewPopup::onJumpToLatest); *((_DWORD *)v24 + 93) = 1066192077; (*(void (__fastcall **)(void *, cocos2d::CCObject *))(*(_QWORD *)a4 + 464LL))(a4, v24); v25 = *(_QWORD *)v24; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, (float)(*(float *)(a1 + 168) * 0.5) + 58.0, v21); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v25 + 184))(v24, v26); return; case 1: v27 = v8 + v9 + 24; if ( *(_QWORD *)(v27 + 24) > 0xFu ) v27 = *(_QWORD *)v27; v28 = cocos2d::CCString::createWithFormat("- %s -", (const char *)v27); CString = cocos2d::CCString::getCString(v28); v30 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 160LL))(v30); v31 = *((_QWORD *)v30 + 46); v32 = *(void (__fastcall **)(char *, __int64))(v31 + 40); LOBYTE(v31) = -106; v32((char *)v30 + 368, v31); v33 = v10 - 7.0; LABEL_23: v34 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, *(float *)(a1 + 168) * 0.5, v33); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v34 + 184))(v30, v35); LABEL_24: (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v6 + 456LL))(v6, v30, 1); return; case 2: v30 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); v36 = *(_QWORD *)v30; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v30 + 320LL))(v30); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v36 + 120))(v30); v154[0] = -6401; LOBYTE(v154[1]) = 60; (**((void (__fastcall ***)(__int64, _WORD *))v30 + 40))((__int64)v30 + 320, v154); LOBYTE(v37) = 125; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v30 + 40) + 40LL))((__int64)v30 + 320, v37); v38 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, *(float *)(a1 + 168) * 0.5, v10 - 4.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v38 + 184))(v30, v39); Time = 0x100000302LL; (**((void (__fastcall ***)(__int64, __int64))v30 + 43))((__int64)v30 + 344, 0x100000302LL); goto LABEL_24; case 3: v40 = v8 + v9 + 24; if ( *(_QWORD *)(v40 + 24) > 0xFu ) v40 = *(_QWORD *)v40; v30 = cocos2d::CCLabelBMFont::create((const char *)v40, "chatFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth(v30, *(float *)(a1 + 168) - 30.0, 0.5, 0.2); (**((void (__fastcall ***)(__int64, __int64))v30 + 46))((__int64)v30 + 368, v8 + v9 + 56); LOBYTE(v41) = -56; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v30 + 46) + 40LL))((__int64)v30 + 368, v41); v33 = (float)(v10 - (float)(*(float *)(v8 + v9 + 12) * 0.5)) + 1.0; goto LABEL_23; } v42 = GJAccountManager::sharedState(a1); v161 = *(_DWORD *)(v42 + 360) - *(_DWORD *)(v42 + 364); v43 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 88), *(_DWORD *)(v8 + v9 + 4)); if ( *(_BYTE *)(v8 + v9 + 17) ) v10 = v10 + -8.0; v44 = *(_QWORD *)(a1 + 528); if ( v44 > 0 && !*(_BYTE *)(a1 + 536) && *((_QWORD *)v43 + 7) == v44 ) { *(_BYTE *)(a1 + 536) = 1; v45 = (float)(*(_BYTE *)(v8 + v9 + 17) != 0 ? 8 : 0); v46 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); v47 = *(_QWORD *)v46; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Time, 0.0, 1.0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v47 + 288))(v46, v48); v49 = *(_QWORD *)v46; (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v46 + 320LL))(v46); (*(void (__fastcall **)(cocos2d::CCNode *))(v49 + 120))(v46); v50 = *(_QWORD *)v46; (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v46 + 320LL))(v46); (*(void (__fastcall **)(cocos2d::CCNode *))(v50 + 136))(v46); v154[0] = -8961; LOBYTE(v154[1]) = 90; (**((void (__fastcall ***)(__int64, _WORD *))v46 + 40))((__int64)v46 + 320, v154); LOBYTE(v51) = 100; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v46 + 40) + 40LL))((__int64)v46 + 320, v51); v52 = *(_QWORD *)v46; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Time, 2.0, (float)(*(float *)(v8 + v9 + 12) - v45) + 2.0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v52 + 184))(v46, v53); (*(void (__fastcall **)(__int64, cocos2d::CCNode *, _QWORD))(*(_QWORD *)v6 + 456LL))(v6, v46, 0); v54 = cocos2d::CCCallFunc::create(a1 - 664, ThreadViewPopup::onHighlightFaded); v55 = cocos2d::CCFadeTo::create(1.5, 0); v56 = cocos2d::CCSequence::create(v55, v54, 0); cocos2d::CCNode::runAction(v46, v56); } if ( *(_BYTE *)(v8 + v9 + 16) ) { v160 = *((_DWORD *)v43 + 16); ThreadViewPopup::senderNameFor(a1 - 664, v169, v160); v57 = ThreadViewPopup::senderScoreFor(a1 - 664, *((unsigned int *)v43 + 16)); v58 = -1; if ( v57 ) { Time = 0; v59 = SimplePlayer::create(1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v59 + 160LL))(v59); LABEL_58: v71 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v157 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v157); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v71 = qword_14090BFD0; } v72 = *(void (__fastcall ***)(__int64, __int64))(v59 + 320); v73 = GameManager::colorForIdx(v71, &v155, *(unsigned int *)(v57 + 432)); (*v72)(v59 + 320, v73); v74 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v157 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v157); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v74 = qword_14090BFD0; } v75 = GameManager::colorForIdx(v74, v154, *(unsigned int *)(v57 + 436)); (**(void (__fastcall ***)(__int64, __int64))(*(_QWORD *)(v59 + 608) + 320LL))(*(_QWORD *)(v59 + 608) + 320LL, v75); SimplePlayer::updateColors(v59); SimplePlayer::tryEnableCustomGlowColor(v59, *(unsigned int *)(v57 + 440)); v76 = *(_DWORD *)(v57 + 444) == 2 || *(_BYTE *)(v57 + 744); *(_BYTE *)(v59 + 660) = v76; SimplePlayer::updatePlayerFrame(v59, *(unsigned int *)(v57 + 428), *(unsigned int *)(v57 + 448)); } else { v60 = *((_DWORD *)v43 + 16); v61 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { Time = (__time64_t)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(Time); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v61 = *(_QWORD *)&qword_14090BFB0; } v62 = cocos2d::CCString::createWithFormat( (const char *)&word_1406ED6F8, *(unsigned int *)(*(_QWORD *)(a1 + 80) + 56LL)); v63 = cocos2d::CCString::getCString(v62); *(_OWORD *)Block = 0; v167 = 0; v168 = 0; v64 = -1; do ++v64; while ( v63[v64] ); sub_14003D230(Block, v63, v64); v65 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(v61 + 1224), Block); if ( v168 > 0xF ) { v66 = Block[0]; if ( v168 + 1 >= 0x1000 ) { v66 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v66 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v66); } v167 = 0; v168 = 15; LOBYTE(Block[0]) = 0; for ( i = 0; ; ++i ) { if ( v65 ) v68 = cocos2d::CCArray::count(v65); else v68 = 0; if ( i >= v68 ) { Time = 0; v59 = SimplePlayer::create(1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v59 + 160LL))(v59); goto LABEL_69; } v69 = cocos2d::CCArray::objectAtIndex(v65, i); v57 = (__int64)v69; if ( *((_DWORD *)v69 + 98) == v60 ) break; } Time = (__time64_t)v69; v70 = SimplePlayer::create(1); v59 = v70; if ( v57 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v70 + 160LL))(v70); goto LABEL_58; } (*(void (__fastcall **)(__int64))(*(_QWORD *)v70 + 160LL))(v70); Time = 0; LABEL_69: memset(v154, 125, 3); (**(void (__fastcall ***)(__int64, _WORD *))(v59 + 320))(v59 + 320, v154); memset(v154, 80, 3); (**(void (__fastcall ***)(__int64, _WORD *))(*(_QWORD *)(v59 + 608) + 320LL))( *(_QWORD *)(v59 + 608) + 320LL, v154); SimplePlayer::updateColors(v59); } SimplePlayer::updateColors(v59); v77 = *(_QWORD *)v59; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, 17.0, v10 - 14.0); (*(void (__fastcall **)(__int64, __int64))(v77 + 184))(v59, v78); v79 = v163; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v163 + 456LL))(v163, v59, 1); v80 = (const char *)v169; if ( v169[3] > 0xFu ) v80 = (const char *)v169[0]; v81 = cocos2d::CCLabelBMFont::create(v80, (const char *)&qword_140704F78); v4 = 1045220557; cocos2d::CCLabelBMFont::limitLabelWidth(v81, 150.0, 0.34999999, 0.2); v82 = v161; if ( v160 == v161 ) { v154[0] = -156; LOBYTE(v154[1]) = 100; v83 = v154; } else { v154[0] = -14081; v155 = -14081; v156 = 80; v83 = &v155; } (**((void (__fastcall ***)(__int64, __int16 *))v81 + 46))((__int64)v81 + 368, v83); v84 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v81 + 320LL))(v81); v85 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v81 + 168LL))(v81); v86 = *(float *)&v85 * v84; v87 = CCMenuItemSpriteExtra::create((int)v81, 0, (int)a1 - 664, (__int64)ThreadViewPopup::onSenderProfile); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v87 + 64LL))(v87, *((unsigned int *)v43 + 16)); (*(void (__fastcall **)(void *, cocos2d::CCObject *))(*(_QWORD *)v159 + 464LL))(v159, v87); v88 = *(_QWORD *)v87; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, (float)((float)(*(float *)&v85 * v84) * 0.5) + 32.0, v10 - 7.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v88 + 184))(v87, v89); v90 = (float)(v86 + 32.0) + 5.0; if ( Time && v160 != v82 ) { v91 = cocos2d::CCSprite::createWithSpriteFrameName("particle_215_001.png"); v92 = *(_QWORD *)v91; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v91 + 320LL))(v91); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v92 + 160))(v91); v93 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v91 + 320LL))(v91); v94 = (*(double (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v91 + 168LL))(v91); v95 = *(float *)&v94 * v93; v96 = *(_QWORD *)v91; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v157, (float)((float)(*(float *)&v94 * v93) * 0.5) + v90, v10 - 7.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v96 + 184))(v91, v97); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v79 + 456LL))(v79, v91, 1); v90 = v90 + (float)(v95 + 4.0); } Time = *((_QWORD *)v43 + 13); v98 = localtime64(&Time); if ( v98 ) { tm_hour = v98->tm_hour; v101 = tm_hour % 12; if ( !(tm_hour % 12) ) v101 = 12; v102 = "PM"; if ( tm_hour < 12 ) v102 = "AM"; v103 = cocos2d::CCString::createWithFormat("%d:%02d %s", v101, v98->tm_min, v102); v104 = cocos2d::CCString::getCString(v103); *(_OWORD *)Block = 0; v167 = 0; v168 = 0; do ++v58; while ( v104[v58] ); sub_14003D230(Block, v104, v58); v99 = v168; } else { *(_OWORD *)Block = 0; v167 = 0; v99 = 15; v168 = 15; LOBYTE(Block[0]) = 0; } v105 = Block; if ( v99 > 0xF ) v105 = (void **)Block[0]; v106 = cocos2d::CCLabelBMFont::create((const char *)v105, "chatFont.fnt"); if ( v168 > 0xF ) { v107 = Block[0]; if ( v168 + 1 >= 0x1000 ) { v107 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v107 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v107); } v167 = 0; v168 = 15; LOBYTE(Block[0]) = 0; v108 = *(_QWORD *)v106; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v108 + 288))(v106, v109); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v106 + 160LL))(v106); LOBYTE(v110) = -106; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v106 + 46) + 40LL))((__int64)v106 + 368, v110); v111 = *(_QWORD *)v106; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, v90, v10 - 8.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v111 + 184))(v106, v112); v6 = v163; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v163 + 456LL))(v163, v106, 1); v10 = v10 + -16.0; sub_14003D310((__int64)v169); } *(_OWORD *)v164 = 0; v165 = 0; sub_1400E4180(Src); v114 = ThreadViewPopup::measureBody(a1 - 664, v43, v113, *(double *)&v4); v115 = *(float *)(v114 + 32); v157 = v169; v116 = sub_14003F4F0((__int64)v169, (__int64)Src); ensureEmotesAreLoaded(v118, v117, v119, *(double *)&v4); v120 = dword_1408FE394; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v163, 0.0, 1.0); *(_QWORD *)&v121 = *(unsigned int *)(a1 + 168); *(float *)&v121 = (float)(*(float *)&v121 - 58.0) / v115; v126 = TextArea::create(v116, "chatFont.fnt", 1.0, *(float *)&v121, v122, 1101004800, 1, v120); v126[601] = 1; if ( *(_BYTE *)(v114 + 40) ) { ensureEmotesAreLoaded(v124, v123, v125, v121); *((_DWORD *)v126 + 152) = dword_1408FE3A0; } v127 = sub_14003F4F0((__int64)Block, (__int64)Src); TextArea::setString((__int64 *)v126, v127); (*(void (__fastcall **)(char *))(*(_QWORD *)v126 + 160LL))(v126); v128 = *(_QWORD *)v126; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, 0.0, 1.0); (*(void (__fastcall **)(char *, __int64))(v128 + 288))(v126, v129); v130 = *(_QWORD *)v126; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, 32.0, v10); (*(void (__fastcall **)(char *, __int64))(v130 + 184))(v126, v131); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v6 + 456LL))(v6, v126, 1); if ( v164[0] != v164[1] ) sub_1400E4730( (_DWORD)v126, (unsigned int)Src, (unsigned int)v164, *(_QWORD *)(*(_QWORD *)(a1 + 152) + 416LL), a1 + 408, v162); if ( *((_BYTE *)v43 + 112) ) { v155 = -26986; v156 = -106; TextArea::colorAllCharactersTo((__int64)v126, (__int64)&v155); v132 = cocos2d::CCLabelBMFont::create("deleted", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v132 + 160LL))(v132); v155 = 30975; v156 = 120; (**((void (__fastcall ***)(__int64, __int16 *))v132 + 46))((__int64)v132 + 368, &v155); v133 = *(_QWORD *)v132; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, 1.0, 1.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v133 + 288))(v132, v134); v135 = *(_QWORD *)v132; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, *(float *)(a1 + 168) - 34.0, v10); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v135 + 184))(v132, v136); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v6 + 456LL))(v6, v132, 2); } if ( v43 == *(struct cocos2d::CCObject **)(a1 + 376) ) { v155 = -21846; v156 = -86; TextArea::colorAllCharactersTo((__int64)v126, (__int64)&v155); } else { v137 = cocos2d::CCLabelBMFont::create("...", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v137 + 160LL))(v137); v138 = *((_QWORD *)v137 + 46); v139 = *(void (__fastcall **)(char *, __int64))(v138 + 40); LOBYTE(v138) = 120; v139((char *)v137 + 368, v138); v140 = CCMenuItemSpriteExtra::create((int)v137, 0, (int)a1 - 664, (__int64)ThreadViewPopup::onMessageOptions); *((_DWORD *)v140 + 93) = 1070386381; (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v140 + 640LL))(v140, v43); v141 = v159; (*(void (__fastcall **)(void *, cocos2d::CCObject *))(*(_QWORD *)v159 + 464LL))(v159, v140); v142 = *(_QWORD *)v140; v143 = v10 - (float)((float)(*(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v137 + 320LL))(v137) + 4) * 0.34999999) * 0.5); v144 = *(float *)(a1 + 168); v145 = (float)(v144 - 16.0) - (float)((float)(*(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v137 + 320LL))(v137) * 0.34999999) * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, v145, v143); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v142 + 184))(v140, v146); if ( *(_BYTE *)(a1 + 440) ) { v147 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); cocos2d::CCSprite::setFlipX(v147, 1); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v147 + 160LL))(v147); v148 = CCMenuItemSpriteExtra::create((int)v147, 0, (int)a1 - 664, (__int64)ThreadViewPopup::onJumpToMessage); *((_DWORD *)v148 + 93) = 1067869798; (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v148 + 640LL))(v148, v43); (*(void (__fastcall **)(void *, cocos2d::CCObject *))(*(_QWORD *)v141 + 464LL))(v141, v148); v149 = *(_QWORD *)v148; v150 = *(float *)(a1 + 168); v151 = (float)((float)(v150 - 16.0) - (float)(*(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v137 + 320LL))(v137) * 0.34999999)) - 19.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v157, v151, v10 - 8.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v149 + 184))(v148, v152); } } sub_14003D310((__int64)Src); v153 = v164[0]; if ( v164[0] ) { if ( (unsigned __int64)(24 * ((signed __int64)(v165 - (unsigned __int64)v164[0]) / 24)) >= 0x1000 ) { v153 = *((void **)v164[0] - 1); if ( (unsigned __int64)((char *)v164[0] - (char *)v153 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v153); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source