// // GJScoreCell::onViewProfile from 0x1400b9a30 to 0x1400b9ba7 (375 bytes) // // 4 xrefs: // > GJScoreCell::loadFromScore @ 0x1400b880d // > @ 0x14066b91c // > @ 0x14066b92c // > @ 0x1406c7cbc // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJScoreCell::onViewProfile(GJScoreCell *m_accountID, cocos2d::CCObject *a2) { GJUserScore *m_score; // rax GJScoreCell *v3; // rdi ProfilePage *v4; // rax __int64 v5; // rcx __int64 v6; // rcx __int64 v7; // rcx __int64 v8; // rbx __int64 v9; // rcx struct cocos2d::CCScene *v10; // rbx __int64 v11; // rcx cocos2d::CCDirector *v12; // rax cocos2d::CCString *v13; // rax const char *CString; // rax size_t v15; // r8 GJSearchObject *v16; // rbx __int64 v17; // rdx __int64 v18; // rcx struct cocos2d::CCScene *v19; // rdi __int64 v20; // rdx __int64 v21; // rcx LevelBrowserLayer *v22; // rax struct cocos2d::CCTransitionFade *v23; // rbx __int64 v24; // rcx cocos2d::CCDirector *v25; // rax __int128 v26; // [rsp+20h] [rbp-28h] BYREF __int64 v27; // [rsp+30h] [rbp-18h] __int64 v28; // [rsp+38h] [rbp-10h] m_score = m_accountID->m_score; v3 = m_accountID; if ( m_score && (m_accountID = (GJScoreCell *)(unsigned int)m_score->m_accountID, (int)m_accountID > 0) ) { v4 = ProfilePage::create((int)m_accountID, 0); v4->show(v4); } else if ( m_score->m_scoreType == 1 && !*(_BYTE *)(cocos2d::CCDirector::sharedDirector(m_accountID) + 168) ) { v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v5) + 264); if ( *(_DWORD *)(v6 + 28) != 15 ) { if ( *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v6) + 96) ) { v10 = *(struct cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v7) + 96); v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::popToSceneInStack(v12, v10); } else { v8 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v7) + 264); *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v9) + 96) = v8; } } v13 = cocos2d::CCString::createWithFormat("%i", v3->m_score->m_userID); CString = cocos2d::CCString::getCString(v13); v26 = 0; v27 = 0; v15 = -1; v28 = 0; do ++v15; while ( CString[v15] ); sub_14003A930(&v26, CString, v15); v16 = (GJSearchObject *)GJSearchObject::create_1(5, &v26); v19 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v18, v17); *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v21, v20) + 224) = v19; v22 = LevelBrowserLayer::create(v16); v19->addChild_1(v19, v22); v23 = cocos2d::CCTransitionFade::create(0.5, v19); v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v24); cocos2d::CCDirector::pushScene(v25, v23); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source