// // GJScoreCell::onViewProfile from 0x10023e950 to 0x10023eaf5 (421 bytes) // // 1 xrefs: // > GJScoreCell::loadFromScore @ 0x10022fb8d // // 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 // void __fastcall GJScoreCell::onViewProfile(__int64 a1, __int64 a2) { __int64 v2; // rax __int64 v3; // rax __int64 v4; // r15 __int64 v5; // rbx __int64 v6; // rax __int64 v7; // rbx __int64 v8; // rax const char *CString; // r15 size_t v10; // rax size_t v11; // r14 char *v12; // r12 size_t v13; // r13 __int64 v14; // rax __int64 v15; // rax char *v16; // rax _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] v2 = *(_QWORD *)(a1 + 560); if ( v2 ) { a1 = *(unsigned int *)(v2 + 376); if ( (int)a1 > 0 ) { v3 = ProfilePage::create(a1, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3); return; } } if ( *(_DWORD *)(v2 + 368) == 1 && !*(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 176) ) { if ( *(_DWORD *)(*(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 272) + 28LL) != 15 ) { v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 96); v5 = cocos2d::CCDirector::sharedDirector(a1, a2); v6 = cocos2d::CCDirector::sharedDirector(a1, a2); if ( v4 ) { a2 = *(_QWORD *)(v6 + 96); a1 = v5; cocos2d::CCDirector::popToSceneInStack(v5, a2); } else { *(_QWORD *)(v5 + 96) = *(_QWORD *)(v6 + 272); } } v7 = cocos2d::CCDirector::sharedDirector(a1, a2); v8 = sub_10088E820("%i", __dst[0]); CString = (const char *)cocos2d::CCString::getCString(v8); v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v11 = v10; if ( v10 >= 0x17 ) { v13 = 26; if ( (v10 | 7) != 0x17 ) v13 = (v10 | 7) + 1; v12 = (char *)operator new(v13); __p = v12; __dst[0] = v13 + 1; __dst[1] = v11; } else { LOBYTE(__dst[0]) = 2 * v10; v12 = (char *)__dst + 1; if ( !v10 ) { LABEL_18: v12[v11] = 0; v14 = GJSearchObject::create_1(5, __dst); v15 = LevelBrowserLayer::scene(v14); v16 = cocos2d::CCTransitionFade::create_1(v15, 0.5); cocos2d::CCDirector::pushScene(v7, v16); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return; } } memmove(v12, CString, v11); goto LABEL_18; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source