// // GJCompactUserCell::buildUserRow from 0x10023f400 to 0x10023fdab (2475 bytes) // // 6 xrefs: // > GJCompactUserCell::loadFromScore @ 0x100231c3d // > GJRequestCell::loadFromScore @ 0x100231e48 // > FriendsProfilePage::mountVirtualRow @ 0x10073641d // > FriendPickerPopup::mountVirtualRow @ 0x10093dde8 // > MemberListPopup::buildRows @ 0x100941da8 // > MemberListPopup::buildRows @ 0x1009420c1 // // 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 12:27:17 +0000 // __int64 __fastcall GJCompactUserCell::buildUserRow( __int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, double a7, unsigned __int8 a8, char a9) { _BYTE *v11; // r12 __int64 v12; // rdx double v13; // xmm0_8 __int64 v14; // rax double v15; // xmm0_8 __int16 v16; // ax char v17; // eax^2 __int64 v18; // rdx double v19; // xmm0_8 __int64 v20; // rax double v21; // xmm0_8 __int16 v22; // ax char v23; // eax^2 char v24; // al std::string *v25; // rbx char v26; // al __int64 v27; // rbx bool v28; // zf char *v29; // rdi __int64 v30; // r12 float *v31; // rax float v32; // xmm0_4 __int64 v33; // r15 float *v34; // rax __int64 v35; // rax double v36; // xmm0_8 int v37; // r12d int v38; // eax bool v39; // bl __int64 v40; // rax __int64 v41; // rax double v42; // xmm1_8 __int64 v43; // r13 __int64 v44; // r15 double v45; // xmm0_8 __int64 v46; // rax const char *CString; // r15 size_t v48; // rax size_t v49; // rbx char *v50; // r13 std::string *v51; // rbx size_t v52; // r12 char v53; // r12 __int64 v54; // r15 __int64 v55; // rax __int64 v56; // rax float v57; // xmm0_4 __int64 v58; // rax float v59; // xmm1_4 __int64 v60; // r12 __int64 v61; // rbx __int64 v62; // rdi __int64 v63; // rdi char v65; // [rsp+0h] [rbp-110h] std::string *v66; // [rsp+8h] [rbp-108h] std::string __str; // [rsp+10h] [rbp-100h] BYREF char v68; // [rsp+28h] [rbp-E8h] BYREF void *v69; // [rsp+38h] [rbp-D8h] __int128 v70; // [rsp+40h] [rbp-D0h] BYREF void *data; // [rsp+50h] [rbp-C0h] __int128 v72; // [rsp+60h] [rbp-B0h] BYREF void *v73; // [rsp+70h] [rbp-A0h] __int64 v74; // [rsp+78h] [rbp-98h] char v75; // [rsp+80h] [rbp-90h] BYREF void *v76; // [rsp+90h] [rbp-80h] float v77; // [rsp+9Ch] [rbp-74h] __int64 v78; // [rsp+A0h] [rbp-70h] int v79; // [rsp+A8h] [rbp-68h] BYREF float v80; // [rsp+ACh] [rbp-64h] __int64 v81; // [rsp+B0h] [rbp-60h] __int64 v82; // [rsp+B8h] [rbp-58h] __int128 __dst; // [rsp+C0h] [rbp-50h] BYREF void *__p; // [rsp+D0h] [rbp-40h] float v85; // [rsp+E0h] [rbp-30h] float v86; // [rsp+E4h] [rbp-2Ch] v85 = *(float *)&a7; v82 = a6; v81 = a5; v74 = a3; v11 = (_BYTE *)SimplePlayer::create(1, a7); (*(void (__fastcall **)(_BYTE *, float))(*(_QWORD *)v11 + 160LL))(v11, 0.80000001); sub_100278250(&__dst, 22.0, *(float *)&a7); (*(void (__fastcall **)(_BYTE *, __int128 *))(*(_QWORD *)v11 + 184LL))(v11, &__dst); *(_QWORD *)&v13 = GameManager::sharedState(v11, &__dst, v12).u64[0]; *(_QWORD *)&v15 = GameManager::colorForIdx(v14, *(unsigned int *)(a1 + 416), v13).u64[0]; LOWORD(__dst) = v16; BYTE2(__dst) = v17; (*(void (__fastcall **)(_BYTE *, __int128 *, double))(*(_QWORD *)v11 + 960LL))(v11, &__dst, v15); *(_QWORD *)&v19 = GameManager::sharedState(v11, &__dst, v18).u64[0]; *(_QWORD *)&v21 = GameManager::colorForIdx(v20, *(unsigned int *)(a1 + 420), v19).u64[0]; LOWORD(__dst) = v22; BYTE2(__dst) = v23; SimplePlayer::setSecondColor(v11, &__dst); SimplePlayer::tryEnableCustomGlowColor(v11, *(unsigned int *)(a1 + 424), v21); v24 = 1; if ( *(_DWORD *)(a1 + 428) != 2 ) v24 = *(_BYTE *)(a1 + 672); v11[660] = v24; SimplePlayer::updatePlayerFrame(v11, *(unsigned int *)(a1 + 412), *(unsigned int *)(a1 + 432), v21); SimplePlayer::updateColors(v11); if ( a8 ) (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v11 + 912LL))(v11, 110); (*(void (__fastcall **)(__int64, _BYTE *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v11, 1); v25 = (std::string *)(a1 + 320); if ( (*(_BYTE *)(a1 + 320) & 1) == 0 ) { __p = *(void **)(a1 + 336); __dst = *(_OWORD *)&v25->__r_.__value_.__l.0; v26 = __dst; if ( (__dst & 1) != 0 ) goto LABEL_7; LABEL_10: if ( v26 ) goto LABEL_13; goto LABEL_11; } sub_10001AD30(&__dst, *(const void **)(a1 + 336), *(_QWORD *)(a1 + 328)); v26 = __dst; if ( (__dst & 1) == 0 ) goto LABEL_10; LABEL_7: v27 = *((_QWORD *)&__dst + 1); operator delete(__p); v28 = v27 == 0; v25 = (std::string *)(a1 + 320); if ( !v28 ) goto LABEL_13; LABEL_11: *(_WORD *)&__str.__r_.__value_.__l.0 = 11522; __str.__r_.__value_.__s.__data_[1] = 0; std::string::operator=(v25, &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); LABEL_13: if ( (*(_BYTE *)&v25->__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&__dst, *(const void **)(a1 + 336), *(_QWORD *)(a1 + 328)); if ( (__dst & 1) == 0 ) goto LABEL_15; } else { __p = v25->__r_.__value_.__l.__data_; __dst = *(_OWORD *)&v25->__r_.__value_.__l.0; if ( (__dst & 1) == 0 ) { LABEL_15: v29 = (char *)&__dst + 1; goto LABEL_18; } } v29 = (char *)__p; LABEL_18: v30 = cocos2d::CCLabelBMFont::create_3(v29, "goldFont.fnt"); if ( (__dst & 1) != 0 ) operator delete(__p); v66 = v25; v78 = a2; cocos2d::CCLabelBMFont::limitLabelWidth(v30, 150.0, 0.60000002, 0.0); if ( a8 ) { BYTE2(__dst) = -126; LOWORD(__dst) = -32126; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v30 + 1072LL))(v30, &__dst); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v30 + 1024LL))(v30, 150); } v31 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v30 + 328LL))(v30); v86 = 0.5; v77 = *v31 * 0.5; v32 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v30 + 168LL))(v30); sub_100278250(&v79, (float)(v32 * v77) + 46.0, v85 + 9.5); v33 = CCMenuItemSpriteExtra::create(v30, 0, a4, v81, v82); CCMenuItemSpriteExtra::setSizeMult(v33, 1.4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 648LL))(v33, a1); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v33 + 184LL))(v33, &v79); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v74 + 464LL))(v74, v33, 2); LODWORD(v82) = v79; v34 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v30 + 328LL))(v30); *(_QWORD *)&v36 = LODWORD(v86); v86 = v86 * *v34; v35 = *(_QWORD *)v30; v81 = v30; *(float *)&v36 = (*(float (__fastcall **)(__int64))(v35 + 168))(v30); *(float *)&v36 = *(float *)&v36 * v86; v37 = *(_DWORD *)(a1 + 456); v38 = *(_DWORD *)(a1 + 688); v39 = v38 == 1 || v37 > 0; if ( v37 <= 0 && v38 == 0 ) { v86 = *(float *)&v36; v40 = GameLevelManager::sharedState(v36); v41 = GameLevelManager::storedFriendForAccountID(v40, *(unsigned int *)(a1 + 376)); *(_QWORD *)&v36 = LODWORD(v86); if ( v41 ) { v37 = *(_DWORD *)(v41 + 456); v39 = 1; } } *(float *)&v36 = *(float *)&v36 + *(float *)&v82; *(_QWORD *)&v42 = LODWORD(v85); if ( !a9 ) { v43 = v78; if ( v37 <= 0 ) goto LABEL_57; LABEL_31: v86 = *(float *)&v36; sub_1004F5B90(&v75, (unsigned int)v37, v36, v42); GameToolbox::timestampToHumanReadable(&v68, (unsigned int)v37); v46 = sub_10088E820("%s since %s\n(%s)", v65); CString = (const char *)cocos2d::CCString::getCString(v46); v48 = strlen(CString); if ( v48 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v49 = v48; if ( v48 >= 0x17 ) { v52 = 26; if ( (v48 | 7) != 0x17 ) v52 = (v48 | 7) + 1; v50 = (char *)operator new(v52); __p = v50; *(_QWORD *)&__dst = v52 | 1; *((_QWORD *)&__dst + 1) = v49; } else { LOBYTE(__dst) = 2 * v48; v50 = (char *)&__dst + 1; if ( !v48 ) { BYTE1(__dst) = 0; if ( (v68 & 1) == 0 ) goto LABEL_35; goto LABEL_42; } } memmove(v50, CString, v49); v50[v49] = 0; if ( (v68 & 1) == 0 ) { LABEL_35: v43 = v78; v51 = v66; if ( (v75 & 1) == 0 ) goto LABEL_36; goto LABEL_43; } LABEL_42: operator delete(v69); v43 = v78; v51 = v66; if ( (v75 & 1) == 0 ) { LABEL_36: if ( (*(_BYTE *)&v51->__r_.__value_.__s.0 & 1) == 0 ) { LABEL_37: data = v51->__r_.__value_.__l.__data_; v70 = *(_OWORD *)&v51->__r_.__value_.__l.0; LABEL_45: v53 = __dst & 1; if ( (__dst & 1) != 0 ) { sub_10001AD30(&v72, __p, *((unsigned __int64 *)&__dst + 1)); } else { v73 = __p; v72 = __dst; } v54 = InfoAlertButton::create(&v70, &v72, 0.40000001); if ( (v72 & 1) != 0 ) operator delete(v73); if ( (v70 & 1) != 0 ) operator delete(data); v55 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v54 + 1072LL))(v54); LODWORD(v82) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v55 + 328LL))(v55); v56 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v54 + 1072LL))(v54); v57 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v56 + 168LL))(v56); *(float *)&v82 = *(float *)&v82 * v57; sub_100278250(&v75, (float)(0.5 * *(float *)&v82) + (float)(v86 + 5.0), v80 + -1.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v54 + 184LL))(v54, &v75); if ( a8 ) { v58 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v54 + 1072LL))(v54); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v58 + 912LL))(v58, 110); } (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v74 + 464LL))(v74, v54, 2); v59 = *(float *)&v82 + 5.0; if ( v53 ) { *(float *)&v82 = *(float *)&v82 + 5.0; operator delete(__p); v59 = *(float *)&v82; } *(float *)&v36 = v86 + v59; *(_QWORD *)&v42 = LODWORD(v85); goto LABEL_57; } LABEL_44: sub_10001AD30(&v70, *(const void **)(a1 + 336), *(_QWORD *)(a1 + 328)); goto LABEL_45; } LABEL_43: operator delete(v76); if ( (*(_BYTE *)&v51->__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_37; goto LABEL_44; } v43 = v78; if ( v39 ) { v86 = *(float *)&v36; v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sFriendsIcon_001.png"); (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v44 + 160LL))(v44, 0.69999999, *(float *)&v42); LODWORD(v82) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 328LL))(v44); v45 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v44 + 168LL))(v44); *(float *)&v82 = *(float *)&v45 * *(float *)&v82; sub_100278250(&__dst, (float)(0.5 * *(float *)&v82) + (float)(v86 + 5.0), v80 + -1.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v44 + 184LL))(v44, &__dst); if ( a8 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 912LL))(v44, 110); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v43 + 464LL))(v43, v44, 2); *(_QWORD *)&v36 = LODWORD(v86); *(float *)&v36 = v86 + (float)(*(float *)&v82 + 5.0); *(_QWORD *)&v42 = LODWORD(v85); } if ( v37 > 0 ) goto LABEL_31; LABEL_57: v60 = v81; if ( *(_BYTE *)(a1 + 724) == 1 ) { v86 = *(float *)&v36; v61 = cocos2d::CCLabelBMFont::create_3("New!", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float, double))(*(_QWORD *)v61 + 160LL))(v61, 0.44999999, v42); sub_100278250(&__dst, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v61 + 296LL))(v61, &__dst); sub_100278250(&__dst, v86 + 8.0, v80); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v61 + 184LL))(v61, &__dst); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 72LL))(v61, 100); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v43 + 464LL))(v43, v61, 10); *(_QWORD *)&v42 = LODWORD(v85); } *(float *)&v42 = *(float *)&v42 + -8.0; LODWORD(__dst) = 1110966272; v62 = *(unsigned int *)(a1 + 380); v85 = *(float *)&v42; GJCompactUserCell::addStat(v62, "GJ_starsIcon_001.png", v43, &__dst, a8, v42); GJCompactUserCell::addStat( *(unsigned int *)(a1 + 384), "GJ_moonsIcon_001.png", v43, &__dst, a8, COERCE_DOUBLE((unsigned __int64)LODWORD(v85))); GJCompactUserCell::addStat( *(unsigned int *)(a1 + 392), "GJ_demonIcon_001.png", v43, &__dst, a8, COERCE_DOUBLE((unsigned __int64)LODWORD(v85))); v63 = *(unsigned int *)(a1 + 400); if ( (int)v63 > 0 ) GJCompactUserCell::addStat( v63, "GJ_hammerIcon_001.png", v43, &__dst, a8, COERCE_DOUBLE((unsigned __int64)LODWORD(v85))); return v60; }
GD Web Decomp Icon

GD Web Decomp

Raw Source