// // GJMessageCell::loadFromMessage from 0x1002320e0 to 0x1002329e6 (2310 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x10022812d // // 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:11 +0000 // void __fastcall GJMessageCell::loadFromMessage(__int64 a1, __int64 a2) { __int64 v3; // rdi __int64 v4; // rax __int128 *v5; // rax char *v6; // rdi __int64 v7; // r14 char *v8; // r13 __int64 v9; // rax int v10; // r15d int v11; // edx int v12; // ecx int v13; // r8d int v14; // r9d __int64 v15; // r15 float *v16; // rax char *v17; // r12 __int64 v18; // r13 __int64 v19; // r14 __int64 v20; // r12 __int64 v21; // r15 __int64 v22; // rbx const char *v23; // rsi __int64 v24; // r14 __int128 *v25; // rbx __int64 v26; // rbx __int64 v27; // r14 __int64 v28; // rax __int64 CString; // r12 __int64 v30; // r12 __int64 v31; // r13 float v32; // xmm2_4 __int64 v33; // rax __int64 v34; // r13 __int64 v35; // r12 __int64 v36; // rax __int128 *v37; // rax __int64 v38; // r15 __int64 v39; // rbx bool v40; // zf __int64 v41; // rax __int128 *v42; // rax __int64 v43; // rax __int64 v44; // rax __int64 v45; // r12 float *v46; // rax __int64 v47; // r12 __int64 v48; // r13 char *v49; // rax __int64 v50; // r12 __int64 v51; // rax __int64 v52; // r15 __int64 v53; // rbx float v54; // xmm0_4 char v55[8]; // [rsp+0h] [rbp-80h] BYREF __int64 v56; // [rsp+8h] [rbp-78h] char v57[8]; // [rsp+14h] [rbp-6Ch] BYREF float v58; // [rsp+1Ch] [rbp-64h] __int128 __dst; // [rsp+20h] [rbp-60h] BYREF void *__p; // [rsp+30h] [rbp-50h] __int64 v61; // [rsp+38h] [rbp-48h] __int128 v62; // [rsp+40h] [rbp-40h] BYREF void *v63; // [rsp+50h] [rbp-30h] (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1); if ( !a2 ) return; v3 = *(_QWORD *)(a1 + 576); if ( v3 ) { cocos2d::CCObject::release(v3); *(_QWORD *)(a1 + 576) = 0; } *(_QWORD *)(a1 + 576) = a2; cocos2d::CCObject::retain(a2); v4 = *(_QWORD *)(a1 + 576); if ( (*(_BYTE *)(v4 + 328) & 1) != 0 ) { sub_10001AD30(&__dst, *(const void **)(v4 + 344), *(_QWORD *)(v4 + 336)); if ( (__dst & 1) == 0 ) goto LABEL_6; } else { v5 = (__int128 *)(v4 + 328); __p = *((void **)v5 + 2); __dst = *v5; if ( (__dst & 1) == 0 ) { LABEL_6: v6 = (char *)&__dst + 1; goto LABEL_9; } } v6 = (char *)__p; LABEL_9: v7 = cocos2d::CCLabelBMFont::create_3(v6, "bigFont.fnt"); if ( (__dst & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v7); sub_100278250(&__dst, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v7 + 296LL))(v7, &__dst); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 1.0); sub_100278250(&__dst, 38.0, (float)(*(float *)(a1 + 524) * 0.5) + 14.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v7 + 184LL))(v7, &__dst); v56 = v7; cocos2d::CCLabelBMFont::limitLabelWidth(v7, 180.0, 0.5, 0.0); v8 = ButtonSprite::create_1( (__int64)"View", 0x32u, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.60000002, 25.0); v9 = CCMenuItemSpriteExtra::create(v8, 0, a1, GJMessageCell::onViewMessage, 0); v10 = v9; CCMenuItemSpriteExtra::setSizeMult(v9, 1.1); v15 = sub_1008735E0(v10, 0, v11, v12, v13, v14); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v15); LODWORD(v61) = *(_DWORD *)(a1 + 520); v16 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v8 + 328LL))(v8); sub_100278250(&__dst, (float)((float)(*v16 * -0.5) + *(float *)&v61) + -45.0, *(float *)(a1 + 524) * 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v15 + 184LL))(v15, &__dst); v17 = ButtonSprite::create_1( (__int64)"X", 0x32u, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_06.png", 0.60000002, 31.25); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.80000001); v18 = *((_QWORD *)v17 + 78); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 192LL))(v18); sub_100278250(&v62, 1.5, -0.5); sub_100278350(&__dst, v19, &v62); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v18 + 184LL))(v18, &__dst); v20 = CCMenuItemSpriteExtra::create(v17, 0, a1, GJMessageCell::onDeleteMessage, 0); CCMenuItemSpriteExtra::setSizeMult(v20, 1.1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 456LL))(v15, v20); sub_100278250(&v62, *(float *)(a1 + 520) + -22.0, 0.5 * *(float *)(a1 + 524)); v61 = v15; cocos2d::CCNode::convertToNodeSpace(&__dst, v15, &v62); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v20 + 184LL))(v20, &__dst); v21 = a1; v22 = *(_QWORD *)(a1 + 576); v23 = "From:"; if ( *(_BYTE *)(v22 + 425) ) v23 = "To:"; v24 = 2 * (*(unsigned __int8 *)(v22 + 425) ^ 1u); LOBYTE(__dst) = 2 * (2 * (*(_BYTE *)(v22 + 425) ^ 1) + 3); memcpy((char *)&__dst + 1, v23, v24 + 3); *((_BYTE *)&__dst + v24 + 4) = 0; if ( (*(_BYTE *)(v22 + 376) & 1) != 0 ) { sub_10001AD30(&v62, *(const void **)(v22 + 392), *(_QWORD *)(v22 + 384)); } else { v25 = (__int128 *)(v22 + 376); v63 = *((void **)v25 + 2); v62 = *v25; } v26 = v21; v27 = v56; v28 = sub_10088E820("%s %s", v55[0]); CString = cocos2d::CCString::getCString(v28); if ( (v62 & 1) != 0 ) operator delete(v63); v30 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, 1.0); cocos2d::CCLabelBMFont::limitLabelWidth(v30, 140.0, 0.5, 0.0); v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v56 + 192LL))(v56); v58 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v30 + 328LL))(v30); v32 = (float)((float)(v58 * 0.5) * (*(float (__fastcall **)(__int64))(*(_QWORD *)v30 + 168LL))(v30)) + 1.0; sub_100278250(&v62, v32, -15.0); sub_100278350(v55, v31, &v62); v33 = CCMenuItemSpriteExtra::create(v30, 0, v21, GJMessageCell::onViewProfile, 0); v34 = v61; v35 = v33; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 456LL))(v61, v33); cocos2d::CCNode::convertToNodeSpace(&v62, v34, v55); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v35 + 184LL))(v35, &v62); v36 = *(_QWORD *)(v21 + 576); if ( (*(_BYTE *)(v36 + 400) & 1) != 0 ) { sub_10001AD30(&v62, *(const void **)(v36 + 416), *(_QWORD *)(v36 + 408)); } else { v37 = (__int128 *)(v36 + 400); v63 = *((void **)v37 + 2); v62 = *v37; } if ( (v62 & 1) != 0 ) { v39 = *((_QWORD *)&v62 + 1); operator delete(v63); v40 = v39 == 0; v26 = v21; v38 = v61; if ( v40 ) goto LABEL_31; LABEL_25: v41 = *(_QWORD *)(v26 + 576); if ( (*(_BYTE *)(v41 + 400) & 1) != 0 ) { sub_10001AD30(&v62, *(const void **)(v41 + 416), *(_QWORD *)(v41 + 408)); } else { v42 = (__int128 *)(v41 + 400); v63 = *((void **)v42 + 2); v62 = *v42; } v43 = sub_10088E820("%s ago", v55[0]); v44 = cocos2d::CCString::getCString(v43); v45 = cocos2d::CCLabelBMFont::create_3(v44, "chatFont.fnt"); if ( (v62 & 1) != 0 ) operator delete(v63); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v26 + 536) + 464LL))( *(_QWORD *)(v26 + 536), v45, 1); sub_100278250(&v62, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v45 + 296LL))(v45, &v62); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v45 + 160LL))(v45, 0.5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v45 + 1072LL))(v45, &unk_100A064E0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v45 + 1024LL))(v45, 125); v46 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 192LL))(v27); sub_100278250(&v62, *v46 + 3.0, 10.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v45 + 184LL))(v45, &v62); goto LABEL_31; } v38 = v61; if ( (_BYTE)v62 ) goto LABEL_25; LABEL_31: v47 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v48 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.69999999); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v48 + 160LL))(v48, 0.69999999); v49 = CCMenuItemToggler::create(v48, v47, v26, (__int64)GJMessageCell::onToggle, 0); *(_QWORD *)(v26 + 592) = v49; CCMenuItemToggler::toggle((__int64)v49, *(unsigned __int8 *)(*(_QWORD *)(v26 + 576) + 426LL)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v38 + 456LL))(v38, *(_QWORD *)(v26 + 592)); v50 = *(_QWORD *)(v26 + 592); sub_100278250(v57, 20.0, *(float *)(v26 + 524) * 0.5); cocos2d::CCNode::convertToNodeSpace(&v62, v38, v57); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v50 + 184LL))(v50, &v62); CCMenuItemToggler::setSizeMult(*(_QWORD *)(v26 + 592), 1.2); v51 = *(_QWORD *)(v26 + 576); if ( !*(_BYTE *)(v51 + 424) && !*(_BYTE *)(v51 + 425) ) { v52 = cocos2d::CCLabelBMFont::create_3("!", "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v52 + 1072LL))(v52, &unk_100A064E3); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 160LL))(v52, 0.5); sub_100278250(&v62, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v52 + 296LL))(v52, &v62); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v26 + 536) + 464LL))( *(_QWORD *)(v26 + 536), v52, 10); v53 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 192LL))(v27); LODWORD(v61) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 328LL))(v27); v54 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v27 + 168LL))(v27); sub_100278250(v57, (float)(*(float *)&v61 * v54) + 5.0, 0.0); sub_100278350(&v62, v53, v57); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v52 + 184LL))(v52, &v62); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v52 + 72LL))(v52, 100); } if ( (__dst & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source