// // GJScoreCell::onViewProfile from 0x1002557d0 to 0x100255975 (421 bytes) // // 1 xrefs: // > GJScoreCell::loadFromScore @ 0x100249a2d // // 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 __fastcall GJScoreCell::onViewProfile(GJScoreCell *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 GJUserScore *m_score; // rax int m_accountID; // edi ProfilePage *v5; // rax cocos2d::CCScene *m_pSceneReference; // r15 cocos2d::CCDirector *v7; // rbx cocos2d::CCDirector *v8; // rax cocos2d::CCDirector *v9; // rbx cocos2d::CCString *v10; // rax const char *CString; // r15 size_t v12; // rax size_t v13; // r14 char *v14; // r12 size_t v15; // r13 GJSearchObject *v16; // rax cocos2d::CCScene *v17; // rax cocos2d::CCTransitionFade *v18; // rax _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] m_score = a1->m_score; if ( m_score ) { m_accountID = m_score->m_accountID; if ( m_accountID > 0 ) { v5 = ProfilePage::create(m_accountID, 0); ((void (__fastcall *)(ProfilePage *))v5->show)(v5); return; } } if ( m_score->m_scoreType == 1 && !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning ) { if ( cocos2d::CCDirector::sharedDirector()->m_pRunningScene->m_eObjType != MenuLayerObjectType ) { m_pSceneReference = cocos2d::CCDirector::sharedDirector()->m_pSceneReference; v7 = cocos2d::CCDirector::sharedDirector(); v8 = cocos2d::CCDirector::sharedDirector(); if ( m_pSceneReference ) cocos2d::CCDirector::popToSceneInStack(v7, v8->m_pSceneReference); else v7->m_pSceneReference = v8->m_pRunningScene; } v9 = cocos2d::CCDirector::sharedDirector(); v10 = (cocos2d::CCString *)sub_1007AB580("%i", __dst[0]); CString = cocos2d::CCString::getCString(v10); v12 = strlen(CString); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v13 = v12; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); __p = v14; __dst[0] = v15 + 1; __dst[1] = v13; } else { LOBYTE(__dst[0]) = 2 * v12; v14 = (char *)__dst + 1; if ( !v12 ) { LABEL_18: v14[v13] = 0; v16 = (GJSearchObject *)GJSearchObject::create_1(5, __dst); v17 = LevelBrowserLayer::scene(v16); v18 = cocos2d::CCTransitionFade::create_1(0.5, v17); cocos2d::CCDirector::pushScene(v9, v18); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return; } } memmove(v14, CString, v13); goto LABEL_18; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source