// // GameLevelManager::storeUserName from 0x6f0f04 to 0x6f1120 (540 bytes) // // 9 xrefs: // > GameLevelManager::storeUserNames @ 0x6f130c // > GameLevelManager::updateUsernames @ 0x6f36e4 // > GameLevelManager::createAndGetScores @ 0x7113c0 // > GameLevelManager::onGetUserListCompleted @ 0x71224c // > GameLevelManager::onGetFriendRequestsCompleted @ 0x713578 // > GameLevelManager::onGetUserMessagesCompleted @ 0x714ab0 // > GameLevelManager::createAndGetCommentsFull @ 0x717bd8 // > ProfilePage::init @ 0x8fe7f8 // > @ 0x58290 // // 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 // __int64 __fastcall GameLevelManager::storeUserName(_QWORD *a1, int a2, int a3, char **a4) { __int64 v7; // x26 const std::string *v8; // x1 cocos2d::CCObject *v9; // x21 cocos2d::CCString *v10; // x0 char *CString; // x0 void *v12; // x0 void *v13; // x0 cocos2d::CCDictionary *v14; // x21 cocos2d::CCObject *v15; // x0 cocos2d::CCDictionary *v16; // x21 cocos2d::CCObject *v17; // x0 unsigned int *v19; // x1 int v20; // w2 unsigned int *v21; // x1 int v22; // w2 __int64 v23; // [xsp+68h] [xbp+68h] BYREF __int64 v24; // [xsp+70h] [xbp+70h] BYREF if ( a2 > 0 ) { v7 = a1[73]; sub_D153B8((int)&v23, *a4); v9 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v23, v8); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a2); CString = (char *)cocos2d::CCString::getCString(v10); sub_D153B8((int)&v24, CString); cocos2d::CCDictionary::setObject(v7, v9); v12 = (void *)(v24 - 24); if ( (__int64 *)(v24 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v24 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(_DWORD *)(v24 - 8); *(_DWORD *)(v24 - 8) = v22 - 1; } if ( v22 <= 0 ) operator delete(v12); } v13 = (void *)(v23 - 24); if ( (__int64 *)(v23 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v23 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(_DWORD *)(v23 - 8); *(_DWORD *)(v23 - 8) = v20 - 1; } if ( v20 <= 0 ) operator delete(v13); } if ( a3 > 0 ) { v14 = (cocos2d::CCDictionary *)a1[75]; v15 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a3); cocos2d::CCDictionary::setObject(v14, v15, a2); v16 = (cocos2d::CCDictionary *)a1[74]; v17 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a2); cocos2d::CCDictionary::setObject(v16, v17, a3); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source