// // GameLevelManager::tryGetUsername from 0x842fa0 to 0x8431c8 (552 bytes) // // 17 xrefs: // > CommentCell::loadFromComment @ 0x74c97c // > LevelBrowserLayer::getSearchTitle @ 0x7f82a8 // > GJGameLevel::create @ 0x844978 // > ShareCommentLayer::init @ 0x90f8c8 // > FriendRequestPopup::onBlock @ 0xa296a0 // > FriendRequestPopup::init @ 0xa31954 // > GJWriteMessagePopup::init @ 0xa32304 // > ProfilePage::init @ 0xa5bbec // > ProfilePage::onCopyName @ 0xa5d91c // > ProfilePage::onInfo @ 0xa5dbfc // > ThreadViewPopup::senderNameFor @ 0xc6dce8 // > NewThreadPopup::init @ 0xc7e5ac // > NewThreadPopup::threadSendFinished @ 0xc886bc // > CommentOptionsPopup::init @ 0xcffdc0 // > ReportPopup::createForComment @ 0xd0221c // > ReportPopup::createForFriendRequest @ 0xd02448 // > @ 0xa1bf0 // // This function is hookable on this platform (idp: arm, 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:55:18 +0000 // __int64 *__usercall GameLevelManager::tryGetUsername@( __int64 *__return_ptr a1@, cocos2d::CCDictionary **this@, int a3@) { GameLevelManager *v5; // x0 GameLevelManager *v6; // x0 GameLevelManager *v7; // x0 GameLevelManager *v8; // x0 GameStatsManager *v9; // x1 __int64 *v11; // x0 const void *v12; // x1 size_t v13; // x2 cocos2d::CCDictionary **v14; // x0 __int64 v15; // x0 const void *v16; // x1 size_t v17; // x2 GameStatsManager *v18; // x0 const char *v19; // [xsp+30h] [xbp+30h] int v20[3]; // [xsp+3Ch] [xbp+3Ch] BYREF GameLevelManager *v21; // [xsp+48h] [xbp+48h] BYREF GameStatsManager *v22; // [xsp+50h] [xbp+50h] void *v23; // [xsp+58h] [xbp+58h] __int64 v24[3]; // [xsp+60h] [xbp+60h] BYREF v20[0] = a3; if ( !a3 ) { *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, &byte_1191DE0, 1u); return a1; } v5 = (GameLevelManager *)GameLevelManager::userIDForAccountID(this, a3); v19 = (const char *)(unsigned int)v5; v6 = (GameLevelManager *)GameLevelManager::sharedState(v5); GameLevelManager::userNameForUserID((__int64 *)&v21, v6, v19); v7 = (GameLevelManager *)(unsigned __int8)v21; if ( ((unsigned __int8)v21 & 1) != 0 ) { v7 = v22; if ( (unsigned __int64)v22 > 1 ) goto LABEL_6; } else if ( (unsigned __int8)v21 > 3u ) { goto LABEL_4; } v11 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( this + 125, v20); if ( v11 && &v21 != (GameLevelManager **)(v11 + 3) ) { if ( (v11[3] & 1) != 0 ) { v12 = (const void *)v11[5]; v13 = v11[4]; } else { v12 = (char *)v11 + 25; v13 = *((_BYTE *)v11 + 24) >> 1; } std::string::assign((__int64 *)&v21, v12, v13); } v7 = (GameLevelManager *)(unsigned __int8)v21; if ( ((unsigned __int8)v21 & 1) != 0 ) { v7 = v22; if ( (unsigned __int64)v22 > 1 ) goto LABEL_6; } else if ( (unsigned __int8)v21 > 3u ) { goto LABEL_4; } v14 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v7); v15 = GameLevelManager::userInfoForAccountID(v14, v20[0]); if ( v15 && &v21 != (GameLevelManager **)(v15 + 320) ) { if ( (*(_BYTE *)(v15 + 320) & 1) != 0 ) { v16 = *(const void **)(v15 + 336); v17 = *(_QWORD *)(v15 + 328); } else { v16 = (const void *)(v15 + 321); v17 = *(_BYTE *)(v15 + 320) >> 1; } std::string::assign((__int64 *)&v21, v16, v17); } v7 = (GameLevelManager *)(unsigned __int8)v21; if ( ((unsigned __int8)v21 & 1) == 0 ) { LABEL_4: if ( (unsigned int)v7 > 3 ) { LABEL_5: v7 = (GameLevelManager *)((int)v7 >> 1); goto LABEL_6; } LABEL_24: v18 = (GameStatsManager *)GameStatsManager::sharedState(v7); GameStatsManager::usernameForAccountID(v24, v18, v20[0]); if ( ((unsigned __int8)v21 & 1) != 0 ) { *(_BYTE *)v23 = 0; v22 = nullptr; } else { LOWORD(v21) = 0; } std::string::reserve((__int64 *)&v21, 0); v21 = (GameLevelManager *)v24[0]; v22 = (GameStatsManager *)v24[1]; LODWORD(v7) = LOBYTE(v24[0]); v23 = (void *)v24[2]; if ( (v24[0] & 1) != 0 ) { if ( v22 ) goto LABEL_7; LABEL_28: std::string::assign((__int64 *)&v21, &byte_1191DE0); goto LABEL_7; } goto LABEL_5; } v7 = v22; if ( (unsigned __int64)v22 <= 1 ) goto LABEL_24; LABEL_6: if ( !v7 ) goto LABEL_28; LABEL_7: v8 = v21; v9 = v22; a1[2] = (__int64)v23; *a1 = (__int64)v8; a1[1] = (__int64)v9; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source