// // GameLevelManager::tryGetUsername from 0x4ceafc to 0x4cec54 (344 bytes) // // 16 xrefs: // > CommentCell::loadFromComment @ 0x432770 // > LevelBrowserLayer::getSearchTitle @ 0x4a60dc // > GJGameLevel::create @ 0x4cf33c // > ShareCommentLayer::init @ 0x541524 // > FriendRequestPopup::onBlock @ 0x5da408 // > FriendRequestPopup::init @ 0x5df236 // > GJWriteMessagePopup::init @ 0x5df8a6 // > ProfilePage::init @ 0x5fa82a // > ProfilePage::onCopyName @ 0x5fc3ba // > ProfilePage::onInfo @ 0x5fc520 // > ThreadViewPopup::senderNameFor @ 0x74d410 // > NewThreadPopup::init @ 0x756324 // > NewThreadPopup::threadSendFinished @ 0x75cfa4 // > CommentOptionsPopup::init @ 0x7a0054 // > ReportPopup::createForComment @ 0x7a1306 // > ReportPopup::createForFriendRequest @ 0x7a14aa // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:50:43 +0000 // GameLevelManager *__fastcall GameLevelManager::tryGetUsername( GameLevelManager *this, cocos2d::CCDictionary **a2, int a3) { GameLevelManager *v5; // r8 int v6; // r0 int v7; // r3 unsigned __int8 *v8; // r0 unsigned int v9; // r3 unsigned __int8 *v10; // r1 cocos2d::CCDictionary **v11; // r0 unsigned int v12; // r3 int v13; // r0 int v14; // r0 unsigned int v15; // r1 _BYTE *v16; // r2 int v17; // r3 int v18; // r3 int v19; // r0 unsigned int v20; // r1 _BYTE *v21; // r2 int v23; // [sp+4h] [bp-24h] BYREF int v24; // [sp+Ch] [bp-1Ch] BYREF unsigned int v25; // [sp+10h] [bp-18h] _BYTE *v26; // [sp+14h] [bp-14h] int v27; // [sp+18h] [bp-10h] BYREF unsigned int v28; // [sp+1Ch] [bp-Ch] _BYTE *v29; // [sp+20h] [bp-8h] v23 = a3; if ( !a3 ) { *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; std::string::__init((int *)this, "-", 1u); return this; } v5 = (GameLevelManager *)GameLevelManager::userIDForAccountID(a2, a3); v6 = GameLevelManager::sharedState(v5); v8 = (unsigned __int8 *)GameLevelManager::userNameForUserID((GameLevelManager *)&v24, v6, (const char *)v5, v7); v9 = (unsigned __int8)v24; if ( (v24 & 1) != 0 ) { if ( v25 > 1 ) goto LABEL_5; } else if ( (unsigned __int8)v24 > 3u ) { goto LABEL_17; } v10 = (unsigned __int8 *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( a2 + 176, (unsigned int *)&v23); if ( v10 ) std::string::operator=((unsigned __int8 *)&v24, v10 + 12); v9 = (unsigned __int8)v24; v8 = (unsigned __int8 *)((unsigned __int8)v24 << 31); if ( (v24 & 1) != 0 ) { LABEL_5: if ( v25 > 1 ) goto LABEL_15; goto LABEL_12; } LABEL_17: if ( v9 > 3 ) { v12 = (unsigned __int8)v24; goto LABEL_24; } LABEL_12: v11 = (cocos2d::CCDictionary **)GameLevelManager::sharedState((GameLevelManager *)v8); v8 = (unsigned __int8 *)GameLevelManager::userInfoForAccountID(v11, v23); if ( v8 ) v8 = std::string::operator=((unsigned __int8 *)&v24, v8 + 264); v12 = (unsigned __int8)v24; if ( (v24 & 1) == 0 ) { LABEL_24: if ( v12 > 3 ) { v17 = (unsigned __int8)v24; goto LABEL_26; } LABEL_19: v13 = GameStatsManager::sharedState((GameStatsManager *)v8); GameStatsManager::usernameForAccountID((GameStatsManager *)&v27, v13); if ( (v24 & 1) != 0 ) { *v26 = 0; v25 = 0; } else { LOWORD(v24) = 0; } std::string::reserve(&v24, 0); v14 = v27; v15 = v28; v16 = v29; v27 = 0; v28 = 0; v29 = nullptr; v24 = v14; v25 = v15; v26 = v16; std::string::~string((int)&v27); v17 = (unsigned __int8)v24; if ( (v24 & 1) != 0 ) goto LABEL_23; LABEL_26: v18 = v17 >> 1; goto LABEL_27; } LABEL_15: if ( v25 <= 1 ) goto LABEL_19; LABEL_23: v18 = v25; LABEL_27: if ( !v18 ) std::string::assign(&v24, "-"); v19 = v24; v20 = v25; v21 = v26; v24 = 0; v25 = 0; v26 = nullptr; *(_DWORD *)this = v19; *((_DWORD *)this + 1) = v20; *((_DWORD *)this + 2) = v21; std::string::~string((int)&v24); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source