// // ThreadViewPopup::mountVirtualRow from 0x1004ffc80 to 0x100500c80 (4096 bytes) // // 2 xrefs: // > sub_100501260 @ 0x100501264 // > @ 0x1009958d0 // // 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 11:06:53 +0000 // void __fastcall ThreadViewPopup::mountVirtualRow(__int64 a1, int a2, __int64 a3, __int64 a4) { __int64 v7; // x26 float v8; // s10 int v9; // w8 void *v10; // x0 void *v11; // x22 float v12; // s10 void *v13; // x0 void *v14; // x21 float v15; // s0 float v16; // s1 const char *v17; // x8 void *v18; // x0 const char *CString; // x0 void *v20; // x20 float v21; // s0 float v22; // s1 float v23; // s8 float *v24; // x0 const char *v25; // x0 const char *v26; // x0 void *v27; // x0 __int64 v28; // x0 int v29; // w27 int v30; // w25 __int64 v31; // x0 __int64 v32; // x22 int v33; // w8 float v34; // s8 __int64 v35; // x9 float v36; // s9 void *v37; // x24 float v38; // s10 float *v39; // x0 float v40; // s10 __int64 v41; // x0 int v42; // w28 float *v43; // x25 __int64 v44; // x0 __int64 v45; // x1 __int64 v46; // x2 __int64 v47; // x3 __int64 v48; // x4 __int64 v49; // x5 __int64 v50; // x6 __int64 v51; // x7 __int64 v52; // x0 unsigned int v53; // w24 __int64 v54; // x26 __int64 v55; // x25 __int64 v56; // x28 char *v57; // x26 __int64 v58; // x0 __int64 v59; // x0 __int64 v60; // x0 __int64 v61; // x0 char v62; // w8 const char *v63; // x0 void *v64; // x26 int v65; // w8 float v66; // s10 float v67; // s9 void *v68; // x26 float v69; // s9 float v70; // s9 void *v71; // x24 __int64 v72; // x0 float v73; // s11 float v74; // s11 tm *v75; // x0 int tm_hour; // w9 int v77; // w8 const char *v78; // x9 void *v79; // x0 char *v80; // x0 std::string *p_p; // x0 void *v82; // x24 float *v83; // x25 float v84; // s9 float v85; // s10 __int64 v86; // x0 _BYTE *v87; // x24 float v88; // s0 void *v89; // x23 void *v90; // x21 void *v91; // x23 float v92; // s10 float v93; // s11 __int64 v94; // x0 unsigned __int8 *v95; // x23 void *v96; // x23 float v97; // s9 float *v98; // x0 char v99; // [xsp+0h] [xbp-110h] int v100; // [xsp+18h] [xbp-F8h] std::string v101; // [xsp+20h] [xbp-F0h] BYREF std::string __dst; // [xsp+40h] [xbp-D0h] BYREF std::string __p; // [xsp+60h] [xbp-B0h] BYREF void *v104; // [xsp+78h] [xbp-98h] BYREF void *v105; // [xsp+80h] [xbp-90h] __int64 v106; // [xsp+88h] [xbp-88h] time_t v107[2]; // [xsp+90h] [xbp-80h] BYREF v7 = *(_QWORD *)(a1 + 696) + 56LL * a2; v8 = *(float *)(v7 + 12); v9 = *(_DWORD *)v7; if ( *(int *)v7 > 1 ) { if ( v9 == 2 ) { v20 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"floorLine_001.png"); v23 = *(float *)(a1 + 840) + -20.0; v24 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v20 + 328LL))(v20); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v20 + 128LL))(v20, v23 / *v24); BYTE2(v104) = 60; LOWORD(v104) = -6401; (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v20 + 960LL))(v20, &v104); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v20 + 912LL))(v20, 125); sub_1000262BC((float *)&v104, *(float *)(a1 + 840) * 0.5, v8 + -4.0); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v20 + 184LL))(v20, &v104); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v20 + 1080LL))(v20, 0x100000302LL); LABEL_16: (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v20, 1); return; } if ( v9 != 3 ) { if ( v9 == 5 ) { v10 = ButtonSprite::create_1( (__int64)"Load newer", 90, 0, 1, (__int64)"bigFont.fnt", (__int64)"GJ_button_05.png", 0.4, 20.0); v11 = CCMenuItemSpriteExtra::create((__int64)v10, 0, a1, (__int64)sub_1004FAE3C, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v11, 1.1); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v11); v12 = v8 + -12.0; sub_1000262BC((float *)&v104, (float)(*(float *)(a1 + 840) * 0.5) + -62.0, v12); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v11 + 184LL))(v11, &v104); v13 = ButtonSprite::create_1( (__int64)"Latest", 70, 0, 1, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.4, 20.0); v14 = CCMenuItemSpriteExtra::create((__int64)v13, 0, a1, (__int64)sub_1004FAE60, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v14, 1.1); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v14); v15 = (float)(*(float *)(a1 + 840) * 0.5) + 58.0; v16 = v12; LABEL_21: sub_1000262BC((float *)&v104, v15, v16); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v14 + 184LL))(v14, &v104); return; } goto LABEL_22; } v25 = (const char *)(v7 + 24); if ( *(char *)(v7 + 47) < 0 ) v25 = *(const char **)v25; v20 = cocos2d::CCLabelBMFont::create_1(v25, "chatFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v20, *(float *)(a1 + 840) + -30.0, 0.5, 0.2); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v20 + 1072LL))(v20, v7 + 48); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v20 + 1024LL))(v20, 200); v21 = *(float *)(a1 + 840) * 0.5; v22 = (float)(v8 - (float)(*(float *)(v7 + 12) * 0.5)) + 1.0; LABEL_15: sub_1000262BC((float *)&v104, v21, v22); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v20 + 184LL))(v20, &v104); goto LABEL_16; } if ( !v9 ) { if ( *(_BYTE *)(a1 + 1104) ) v26 = "More results"; else v26 = "Load earlier"; v27 = ButtonSprite::create_1((__int64)v26, 90, 0, 1, (__int64)"bigFont.fnt", (__int64)"GJ_button_05.png", 0.4, 20.0); v14 = CCMenuItemSpriteExtra::create((__int64)v27, 0, a1, (__int64)sub_1004FAD8C, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v14, 1.1); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v14); v15 = *(float *)(a1 + 840) * 0.5; v16 = v8 + -12.0; goto LABEL_21; } if ( v9 == 1 ) { v17 = (const char *)(v7 + 24); if ( *(char *)(v7 + 47) < 0 ) v17 = *(const char **)v17; v18 = sub_1003065B0("- %s -", v17); CString = (const char *)cocos2d::CCString::getCString((__int64)v18); v20 = cocos2d::CCLabelBMFont::create_1(CString, "chatFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v20 + 160LL))(v20, 0.5); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v20 + 1024LL))(v20, 150); v21 = *(float *)(a1 + 840) * 0.5; v22 = v8 + -7.0; goto LABEL_15; } LABEL_22: v28 = GJAccountManager::sharedState(); v29 = *(_DWORD *)(v28 + 352); v30 = *(_DWORD *)(v28 + 356); v31 = sub_1002E75A0(*(_QWORD *)(a1 + 760), *(_DWORD *)(v7 + 4)); v32 = v31; v33 = *(unsigned __int8 *)(v7 + 17); if ( *(_BYTE *)(v7 + 17) ) v34 = v8 + -8.0; else v34 = v8; v35 = *(_QWORD *)(a1 + 1184); if ( v35 >= 1 && (*(_BYTE *)(a1 + 1192) & 1) == 0 && *(_QWORD *)(v31 + 56) == v35 ) { *(_BYTE *)(a1 + 1192) = 1; if ( v33 ) v36 = 8.0; else v36 = 0.0; v37 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png"); sub_1000262BC((float *)&v104, 0.0, 1.0); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v37 + 296LL))(v37, &v104); v38 = *(float *)(a1 + 840) + -4.0; v39 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v37 + 328LL))(v37); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v37 + 128LL))(v37, v38 / *v39); v40 = *(float *)(v7 + 12) - v36; v41 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v37 + 328LL))(v37); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v37 + 144LL))(v37, v40 / *(float *)(v41 + 4)); BYTE2(v104) = 90; LOWORD(v104) = -8961; (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v37 + 960LL))(v37, &v104); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v37 + 912LL))(v37, 100); sub_1000262BC((float *)&v104, 2.0, (float)(*(float *)(v7 + 12) - v36) + 2.0); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v37 + 184LL))(v37, &v104); (*(void (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)a3 + 464LL))(a3, v37, 0); v42 = v30; v43 = cocos2d::CCFadeTo::create(0, 1.5); v99 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)sub_1004FAF10, 0); v44 = (__int64)v43; v30 = v42; v52 = sub_10021D420(v44, v45, v46, v47, v48, v49, v50, v51, v99); cocos2d::CCNode::runAction((__int64)v37, v52); } if ( *(_BYTE *)(v7 + 16) == 1 ) { v53 = *(_DWORD *)(v32 + 64); sub_1004FC014(a1, v53, &v104); v54 = sub_100500D90(a1, *(unsigned int *)(v32 + 64)); v100 = v30; if ( v54 ) v55 = 0; else v55 = sub_100500E10(a1, *(unsigned int *)(v32 + 64)); if ( v55 ) v56 = v55; else v56 = v54; v57 = SimplePlayer::create(1); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v57 + 160LL))(v57, 0.55); if ( v56 ) { v58 = GameManager::sharedState(); v59 = GameManager::colorForIdx(v58, *(_DWORD *)(v56 + 416)); LOWORD(__p.__r_.__value_.__l.__data_) = v59; __p.__r_.__value_.__s.__data_[2] = BYTE2(v59); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v57 + 960LL))(v57, &__p); v60 = GameManager::sharedState(); v61 = GameManager::colorForIdx(v60, *(_DWORD *)(v56 + 420)); LOWORD(__p.__r_.__value_.__l.__data_) = v61; __p.__r_.__value_.__s.__data_[2] = BYTE2(v61); SimplePlayer::setSecondColor((__int64)v57); sub_1003A426C((__int64)v57, *(unsigned int *)(v56 + 424)); if ( *(_DWORD *)(v56 + 428) == 2 ) v62 = 1; else v62 = *(_BYTE *)(v56 + 672); v57[660] = v62 & 1; SimplePlayer::updatePlayerFrame((__int64)v57, *(_DWORD *)(v56 + 412), *(unsigned int *)(v56 + 432)); } else { memset(&__p, 125, 3); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v57 + 960LL))(v57, &__p); memset(&__p, 80, 3); SimplePlayer::setSecondColor((__int64)v57); } SimplePlayer::updateColors((__int64)v57); sub_1000262BC((float *)&__p, 17.0, v34 + -14.0); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v57 + 184LL))(v57, &__p); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v57, 1); if ( v106 >= 0 ) v63 = (const char *)&v104; else v63 = (const char *)v104; v64 = cocos2d::CCLabelBMFont::create_1(v63, "bigFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v64, 150.0, 0.35, 0.2); if ( v53 == v29 - v100 ) v65 = 6618980; else v65 = 5294335; LOWORD(__p.__r_.__value_.__l.__data_) = v65; __p.__r_.__value_.__s.__data_[2] = BYTE2(v65); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v64 + 1072LL))(v64, &__p); v66 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v64 + 328LL))(v64); v67 = (*(float (__fastcall **)(void *))(*(_QWORD *)v64 + 168LL))(v64); v68 = CCMenuItemSpriteExtra::create((__int64)v64, 0, a1, (__int64)sub_1004FBE44, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v68 + 72LL))(v68, *(unsigned int *)(v32 + 64)); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v68); v69 = v66 * v67; sub_1000262BC((float *)&__p, (float)(v69 * 0.5) + 32.0, v34 + -7.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v68 + 184LL))(v68, &__p); v70 = (float)(v69 + 32.0) + 5.0; if ( v55 && v53 != v29 - v100 ) { v71 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"particle_215_001.png"); v72 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v71 + 328LL))(v71); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v71 + 160LL))(v71, 10.0 / *(float *)(v72 + 4)); v73 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v71 + 328LL))(v71); v74 = v73 * (*(float (__fastcall **)(void *))(*(_QWORD *)v71 + 168LL))(v71); sub_1000262BC((float *)&__p, v70 + (float)(v74 * 0.5), v34 + -7.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v71 + 184LL))(v71, &__p); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v71, 1); v70 = v70 + (float)(v74 + 4.0); } v107[0] = *(_QWORD *)(v32 + 96); v75 = localtime(v107); if ( v75 ) { tm_hour = v75->tm_hour; v77 = tm_hour % 12; if ( !(tm_hour % 12) ) v77 = 12; if ( tm_hour >= 12 ) v78 = "PM"; else v78 = "AM"; v79 = sub_1003065B0("%d:%02d %s", v77, v75->tm_min, v78); v80 = (char *)cocos2d::CCString::getCString((__int64)v79); sub_100009900(&__p, v80); } else { sub_100009900(&__p, ""); } if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; v82 = cocos2d::CCLabelBMFont::create_1((const char *)p_p, "chatFont.fnt"); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); sub_1000262BC((float *)&__p, 0.0, 0.5); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v82 + 296LL))(v82, &__p); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v82 + 160LL))(v82, 0.5); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v82 + 1024LL))(v82, 150); sub_1000262BC((float *)&__p, v70, v34 + -8.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v82 + 184LL))(v82, &__p); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v82, 1); if ( SHIBYTE(v106) < 0 ) operator delete(v104); v34 = v34 + -16.0; } v104 = nullptr; v105 = nullptr; v106 = 0; sub_1004FEEB4((const std::string *)(v32 + 72), &v104, (__int64)&__p); v83 = (float *)sub_1004FEA64(a1, v32); v84 = v83[6]; if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, __p.__r_.__value_.__l.__data_, __p.__r_.__value_.__l.__size_); else __dst = __p; v85 = *(float *)(a1 + 840); sub_1000262BC((float *)v107, 0.0, 1.0); v86 = EmoteSprite::maxEmotesMessage(); v87 = TextArea::create( (__int64)&__dst, (__int64)"chatFont.fnt", (double *)v107, 1, v86, 1.0, (float)(v85 + -58.0) / v84, 20.0); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v87[597] = 1; if ( *((_BYTE *)v83 + 32) == 1 ) { v88 = sub_1004DC334(); sub_10011B3E0((__int64)v87, v88); } if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&v101, __p.__r_.__value_.__l.__data_, __p.__r_.__value_.__l.__size_); else v101 = __p; TextArea::setString((__int64)v87, (const void **)&v101.__r_.__value_.__l.__data_); if ( SHIBYTE(v101.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v101.__r_.__value_.__l.__data_); (*(void (__fastcall **)(_BYTE *, float))(*(_QWORD *)v87 + 160LL))(v87, v84); sub_1000262BC((float *)v107, 0.0, 1.0); (*(void (__fastcall **)(_BYTE *, time_t *))(*(_QWORD *)v87 + 296LL))(v87, v107); sub_1000262BC((float *)v107, 32.0, v34); (*(void (__fastcall **)(_BYTE *, time_t *))(*(_QWORD *)v87 + 184LL))(v87, v107); (*(void (__fastcall **)(__int64, _BYTE *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v87, 1); if ( v104 != v105 ) sub_100500E90((int)v87, &__p); if ( *(_BYTE *)(v32 + 104) == 1 ) { TextArea::colorAllCharactersTo((__int64)v87, 9868950); v89 = cocos2d::CCLabelBMFont::create_1("deleted", "bigFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v89 + 160LL))(v89, 0.3); BYTE2(v107[0]) = 120; LOWORD(v107[0]) = 30975; (*(void (__fastcall **)(void *, time_t *))(*(_QWORD *)v89 + 1072LL))(v89, v107); sub_1000262BC((float *)v107, 1.0, 1.0); (*(void (__fastcall **)(void *, time_t *))(*(_QWORD *)v89 + 296LL))(v89, v107); sub_1000262BC((float *)v107, *(float *)(a1 + 840) + -34.0, v34); (*(void (__fastcall **)(void *, time_t *))(*(_QWORD *)v89 + 184LL))(v89, v107); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v89, 2); } if ( v32 == *(_QWORD *)(a1 + 1040) ) { TextArea::colorAllCharactersTo((__int64)v87, 11184810); } else { v90 = cocos2d::CCLabelBMFont::create_1("...", "bigFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v90 + 160LL))(v90, 0.35); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v90 + 1024LL))(v90, 120); v91 = CCMenuItemSpriteExtra::create((__int64)v90, 0, a1, (__int64)sub_1004FBE84, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v91, 1.6); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v91 + 648LL))(v91, v32); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v91); v92 = *(float *)(a1 + 840); v93 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v90 + 328LL))(v90); v94 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v90 + 328LL))(v90); sub_1000262BC( (float *)v107, (float)(v92 + -16.0) - (float)((float)(v93 * 0.35) * 0.5), v34 - (float)((float)(*(float *)(v94 + 4) * 0.35) * 0.5)); (*(void (__fastcall **)(void *, time_t *))(*(_QWORD *)v91 + 184LL))(v91, v107); if ( *(_BYTE *)(a1 + 1104) == 1 ) { v95 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_03_001.png"); cocos2d::CCSprite::setFlipX(v95, 1); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v95 + 160LL))(v95, 0.385); v96 = CCMenuItemSpriteExtra::create((__int64)v95, 0, a1, (__int64)sub_1004FB18C, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v96, 1.3); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v96 + 648LL))(v96, v32); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v96); v97 = *(float *)(a1 + 840); v98 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v90 + 328LL))(v90); sub_1000262BC((float *)v107, (float)((float)(v97 + -16.0) + (float)(*v98 * -0.35)) + -19.0, v34 + -8.0); (*(void (__fastcall **)(void *, time_t *))(*(_QWORD *)v96 + 184LL))(v96, v107); } } if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( v104 ) { v105 = v104; operator delete(v104); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source