// // GameLevelManager::tryGetUsername from 0x100093768 to 0x100093898 (304 bytes) // // 10 xrefs: // > GJGameLevel::create @ 0x100094404 // > CommentCell::loadFromComment @ 0x100105d94 // > ProfilePage::init @ 0x100196c8c // > ProfilePage::onInfo @ 0x10019a6d4 // > ProfilePage::onCopyName @ 0x10019abfc // > ShareCommentLayer::init @ 0x1001d4878 // > FriendRequestPopup::init @ 0x1002d8e00 // > FriendRequestPopup::onBlock @ 0x1002d9c00 // > GJWriteMessagePopup::init @ 0x1002dbeb8 // > LevelBrowserLayer::getSearchTitle @ 0x100418780 // // 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 __usercall GameLevelManager::tryGetUsername(__int64 a1@, int a2@, __int64 a3@) { intptr_t v5; // x21 cocos2d::CCString *v6; // x0 int v7; // w22 GameLevelManager *v8; // x0 unsigned __int64 v9; // x8 GameLevelManager *v10; // x0 cocos2d::CCObject *v11; // x0 unsigned __int64 v12; // x8 char v13; // w10 unsigned __int64 v14; // x9 unsigned __int64 v15; // x11 GameStatsManager *v16; // x0 unsigned __int64 v17; // x8 __int128 v18; // [xsp+8h] [xbp-38h] BYREF unsigned __int64 v19; // [xsp+18h] [xbp-28h] if ( a2 ) { v5 = a2; v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(cocos2d::CCDictionary **)(a1 + 544), a2); v7 = cocos2d::CCString::intValue(v6); v8 = GameLevelManager::sharedState(); GameLevelManager::userNameForUserID((__int64)v8, v7, (_QWORD *)a3); v9 = *(unsigned __int8 *)(a3 + 23); if ( (v9 & 0x80u) != 0LL ) v9 = *(_QWORD *)(a3 + 8); if ( v9 <= 1 ) { v10 = GameLevelManager::sharedState(); v11 = cocos2d::CCDictionary::objectForKey(v10->m_storedUserInfo, v5); if ( v11 ) std::string::operator=((std::string *)a3, (const std::string *)&v11[5].m_unknown2); } v12 = *(unsigned __int8 *)(a3 + 23); v13 = v12; v14 = *(_QWORD *)(a3 + 8); if ( (v12 & 0x80u) == 0LL ) v15 = *(unsigned __int8 *)(a3 + 23); else v15 = *(_QWORD *)(a3 + 8); if ( v15 <= 1 ) { v16 = GameStatsManager::sharedState(); GameStatsManager::usernameForAccountID(v16, a2, &v18); if ( *(char *)(a3 + 23) < 0 ) operator delete(*(void **)a3); *(_OWORD *)a3 = v18; v17 = v19; *(_QWORD *)(a3 + 16) = v19; v12 = HIBYTE(v17); v14 = *(_QWORD *)(a3 + 8); v13 = v12; } if ( v13 < 0 ) v12 = v14; if ( !v12 ) std::string::assign((std::string *)a3, "-"); } else { sub_100009900((_QWORD *)a3, "-"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source