// // ProfilePage::onMyLevels from 0x1008a4030 to 0x1008a41ea (442 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x1008a128b // // 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:37:15 +0000 // void __fastcall ProfilePage::onMyLevels(__int64 a1, __int64 a2) { char v2; // r15 __int64 v3; // rax __int64 v4; // r14 char *v5; // rax _BYTE *v6; // rax char *v7; // rax __int64 v8; // r15 _QWORD *v9; // r14 __int64 v10; // rax __int64 v11; // rax int v12; // r14d __int64 v13; // rbx char *v14; // rax const char *CString; // r15 size_t v16; // rax std::string::size_type v17; // r14 char *data; // r12 size_t v19; // r13 char *v20; // rax _BYTE *v21; // rax char *v22; // rax std::string __dst[2]; // [rsp+0h] [rbp-40h] BYREF v2 = *(_BYTE *)(a1 + 740); v3 = cocos2d::CCDirector::sharedDirector(); v4 = v3; if ( v2 == 1 ) { v5 = GJSearchObject::create_2(98); v6 = LevelBrowserLayer::scene((__int64)v5, a2); v7 = cocos2d::CCTransitionFade::create_1((__int64)v6, 0.5); cocos2d::CCDirector::pushScene(v4, (_UNKNOWN **)v7); return; } if ( !*(_BYTE *)(v3 + 176) ) { if ( *(_DWORD *)(*(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272) + 28LL) != 15 ) { v8 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 96); v9 = (_QWORD *)cocos2d::CCDirector::sharedDirector(); v10 = cocos2d::CCDirector::sharedDirector(); if ( v8 ) cocos2d::CCDirector::popToSceneInStack(v9, *(_QWORD *)(v10 + 96)); else v9[12] = *(_QWORD *)(v10 + 272); } v11 = GameLevelManager::sharedState(); v12 = GameLevelManager::userIDForAccountID(v11, *(_DWORD *)(a1 + 736)); v13 = cocos2d::CCDirector::sharedDirector(); v14 = sub_10088E820("%i", v12); CString = (const char *)cocos2d::CCString::getCString((__int64)v14); v16 = strlen(CString); if ( v16 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v17 = v16; if ( v16 >= 0x17 ) { v19 = 26; if ( (v16 | 7) != 0x17 ) v19 = (v16 | 7) + 1; data = (char *)operator new(v19); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v19 + 1; __dst[0].__r_.__value_.__l.__size_ = v17; } else { __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v16); data = __dst[0].__r_.__value_.__s.__data_; if ( !v16 ) { LABEL_16: data[v17] = 0; v20 = GJSearchObject::create_1(5, __dst); v21 = LevelBrowserLayer::scene((__int64)v20, (__int64)__dst); v22 = cocos2d::CCTransitionFade::create_1((__int64)v21, 0.5); cocos2d::CCDirector::pushScene(v13, (_UNKNOWN **)v22); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); return; } } memmove(data, CString, v17); goto LABEL_16; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source