// // GJRequestCell::loadFromScore from 0x140158d40 to 0x1401590f2 (946 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x140145fc3 // > @ 0x1409179fc // // 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:27:21 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall GJRequestCell::loadFromScore(__time64_t a1, cocos2d::CCObject *a2) { cocos2d::CCObject *v2; // rbx char v4; // di __int64 result; // rax cocos2d::CCObject *v6; // rcx struct cocos2d::CCMenu *v7; // r14 __int64 v8; // rax __int64 v9; // rdx __int64 v10; // rcx struct cocos2d::CCObject *v11; // rax struct cocos2d::CCObject *v12; // rbp bool v13; // bl const char *v14; // rcx struct cocos2d::CCSprite *v15; // rax int v16; // ebx cocos2d::CCObject *v17; // rdi __int64 v18; // rbx __int64 v19; // rax struct cocos2d::CCSprite *v20; // rdi struct cocos2d::CCSprite *v21; // rbx cocos2d::CCMenuItem *v22; // rax __int64 v23; // rcx __int64 v24; // rdi __int64 v25; // rbx __int64 v26; // rax void *v27; // [rsp+40h] [rbp-48h] BYREF _BYTE v28[16]; // [rsp+48h] [rbp-40h] BYREF __int64 v29; // [rsp+58h] [rbp-30h] v2 = a2; v4 = 0; LODWORD(v27) = 0; LOBYTE(a2) = 1; result = (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 544) + 576LL))( *(_QWORD *)(a1 + 544), a2); if ( v2 ) { cocos2d::CCObject::retain(v2); v6 = *(cocos2d::CCObject **)(a1 + 560); if ( v6 ) cocos2d::CCObject::release(v6); *(_QWORD *)(a1 + 560) = v2; *(_BYTE *)(a1 + 576) = *((_DWORD *)v2 + 190) == 4; v7 = cocos2d::CCMenu::create(nullptr); (*(void (__fastcall **)(struct cocos2d::CCMenu *, void *))(*(_QWORD *)v7 + 184LL))(v7, &unk_14090A3E8); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v7); GJCompactUserCell::buildUserRow( *(_QWORD *)(a1 + 560), *(_QWORD *)(a1 + 544), (__int64)v7, a1, (__int64)GJCompactUserCell::onViewProfile, *(float *)(a1 + 532) * 0.5, 0, 0); if ( *(_BYTE *)(a1 + 576) ) { v8 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 472LL))(*(_QWORD *)(a1 + 544), 100); if ( v8 ) { LOBYTE(v9) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 520LL))(v8, v9); } } v10 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v27 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v27); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v10 = *(_QWORD *)&qword_14090BFB0; } v11 = cocos2d::CCDictionary::objectForKey( *(cocos2d::CCDictionary **)(v10 + 1240), *(int *)(*(_QWORD *)(a1 + 560) + 392LL)); v12 = v11; v13 = false; if ( v11 ) { sub_14003F4F0((__int64)v28, (__int64)v11 + 336); v4 = 3; if ( v29 ) v13 = true; } if ( (v4 & 1) != 0 ) sub_14003D310((__int64)v28); v14 = "accountBtn_requests_001.png"; if ( v13 ) v14 = "accountBtn_messages_001.png"; v15 = cocos2d::CCSprite::createWithSpriteFrameName(v14); v16 = (int)v15; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 160LL))(v15); v17 = CCMenuItemSpriteExtra::create(v16, 0, a1, (__int64)GJRequestCell::onViewFriendRequest); *((_DWORD *)v17 + 93) = 1070386381; (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v7 + 464LL))(v7, v17); v18 = *(_QWORD *)v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, *(float *)(a1 + 528) - 52.0, *(float *)(a1 + 532) * 0.5); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v18 + 184))(v17, v19); v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v20 + 160LL))(v20); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v21 + 160LL))(v21); v22 = CCMenuItemToggler::create((int)v21, (int)v20, a1, (__int64)GJRequestCell::onToggle); *(_QWORD *)(a1 + 568) = v22; CCMenuItemToggler::toggle((__int64)v22, *(unsigned __int8 *)(*(_QWORD *)(a1 + 560) + 797LL)); v23 = *(_QWORD *)(a1 + 568); *(_DWORD *)(*(_QWORD *)(v23 + 376) + 372LL) = 1067869798; *(_DWORD *)(*(_QWORD *)(v23 + 384) + 372LL) = 1067869798; CCMenuItemToggler::toggle(v23, *(unsigned __int8 *)(v23 + 392)); (*(void (__fastcall **)(struct cocos2d::CCMenu *, _QWORD))(*(_QWORD *)v7 + 464LL))(v7, *(_QWORD *)(a1 + 568)); v24 = **(_QWORD **)(a1 + 568); v25 = *(_QWORD *)(a1 + 568); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, *(float *)(a1 + 528) - 22.0, *(float *)(a1 + 532) * 0.5); result = (*(__int64 (__fastcall **)(__int64, __int64))(v24 + 184))(v25, v26); if ( v12 ) { if ( *((_BYTE *)v12 + 401) ) return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 568) + 336LL))(*(_QWORD *)(a1 + 568), 0); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source