// // GameLevelManager::storeUserName from 0x4d1230 to 0x4d133e (270 bytes) // // 14 xrefs: // > GameLevelManager::storeUserNames @ 0x4d1476 // > GameLevelManager::createAndGetScores @ 0x4d1e88 // > GameLevelManager::updateUsernames @ 0x4d2418 // > GameLevelManager::storeUserInfo @ 0x4d2498 // > GameLevelManager::onGetUserMessagesCompleted @ 0x4d2806 // > GameLevelManager::createAndGetCommentsFull @ 0x4d2a2a // > GameLevelManager::onAdminGetReportQueueCompleted @ 0x4d33ee // > GameLevelManager::onAdminGetAccountReviewCompleted @ 0x4d399a // > GameLevelManager::storeThreadManifest @ 0x4d3c52 // > GameLevelManager::storeThreadManifest @ 0x4d3d98 // > GameLevelManager::onGetUserSearchCompleted @ 0x4d4b1c // > GameLevelManager::onGetFriendRequestsCompleted @ 0x4d4e04 // > GameLevelManager::onGetUserListCompleted @ 0x4d519c // > ProfilePage::init @ 0x5fa816 // // 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:47 +0000 // unsigned __int8 *__fastcall GameLevelManager::storeUserName( unsigned __int8 *result, const char *a2, char *a3, unsigned __int8 *a4) { unsigned __int8 *v4; // r4 unsigned __int8 *v5; // r6 int v7; // r3 unsigned int v8; // r3 int v9; // r9 bool v10; // nf size_t v11; // r0 cocos2d::CCObject *v12; // r10 cocos2d::CCString *v13; // r0 const char *CString; // r11 size_t v15; // r0 cocos2d::CCDictionary *v16; // r8 cocos2d::CCObject *v17; // r0 cocos2d::CCDictionary *v18; // r6 cocos2d::CCObject *v19; // r0 unsigned __int8 *v20; // r0 char *v21; // [sp+4h] [bp-28h] BYREF int v22[3]; // [sp+Ch] [bp-20h] BYREF int v23[3]; // [sp+18h] [bp-14h] BYREF v4 = a4; v5 = result; v21 = a3; if ( (int)a3 > 0 ) { v7 = *a4; v8 = (v7 & 1) != 0 ? *((_DWORD *)v4 + 1) : v7 >> 1; if ( v8 > 1 ) { v20 = (unsigned __int8 *)std::unordered_map::operator[]( (int)(result + 704), (unsigned int *)&v21); result = std::string::operator=(v20, v4); } } if ( (int)a2 > 0 ) { v9 = *((_DWORD *)v5 + 173); v10 = (*v4 & 1) != 0; if ( (*v4 & 1) == 0 ) ++v4; v22[0] = 0; if ( v10 ) v4 = *((unsigned __int8 **)v4 + 2); v22[1] = 0; v22[2] = 0; v11 = strlen((const char *)v4); std::string::__init(v22, v4, v11); v12 = (cocos2d::CCObject *)cocos2d::CCString::create(v22); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); CString = (const char *)cocos2d::CCString::getCString(v13); memset(v23, 0, sizeof(v23)); v15 = strlen(CString); std::string::__init(v23, CString, v15); cocos2d::CCDictionary::setObject(v9, v12); std::string::~string((int)v23); result = (unsigned __int8 *)std::string::~string((int)v22); if ( (int)v21 > 0 ) { v16 = *((cocos2d::CCDictionary **)v5 + 175); v17 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v21); cocos2d::CCDictionary::setObject(v16, v17, (int)a2); v18 = *((cocos2d::CCDictionary **)v5 + 174); v19 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); return (unsigned __int8 *)cocos2d::CCDictionary::setObject(v18, v19, (int)v21); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source