// // GameLevelManager::storeUserNames from 0x4d134c to 0x4d14b8 (364 bytes) // // 4 xrefs: // > GameLevelManager::onGetOnlineLevelsCompleted @ 0x4d1698 // > GameLevelManager::onGetLevelListsCompleted @ 0x4d1a90 // > GameLevelManager::onGetEditorSoundsCompleted @ 0x4d1cf4 // > GameLevelManager::processOnDownloadLevelCompleted @ 0x4d9cd8 // // 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::storeUserNames(unsigned __int8 *result, unsigned __int8 *a2) { unsigned __int8 *v2; // r10 unsigned int v3; // r2 const char *v4; // r5 size_t v5; // r0 cocos2d::CCArray *v6; // r9 unsigned int i; // r6 cocos2d::CCString *v8; // r0 const char *CString; // r0 char *v10; // r7 size_t v11; // r0 size_t v12; // r0 cocos2d::CCArray *v13; // r7 cocos2d::CCString *v14; // r0 cocos2d::CCString *v15; // r11 cocos2d::CCString *v16; // r0 char *v17; // r7 const char *v18; // r11 size_t v19; // r0 const char *v20; // [sp+4h] [bp-38h] int v21[2]; // [sp+10h] [bp-2Ch] BYREF char *v22; // [sp+18h] [bp-24h] int v23[3]; // [sp+1Ch] [bp-20h] BYREF int v24; // [sp+28h] [bp-14h] BYREF int v25; // [sp+2Ch] [bp-10h] int v26; // [sp+30h] [bp-Ch] v2 = result; v3 = *a2; if ( (v3 & 1) != 0 ) { if ( !*((_DWORD *)a2 + 1) ) return result; v4 = *((const char **)a2 + 2); } else { if ( !(v3 >> 1) ) return result; v4 = (const char *)(a2 + 1); } v24 = 0; v25 = 0; v26 = 0; v5 = strlen(v4); std::string::__init(&v24, v4, v5); v6 = sub_4C1A88(&v24, "|"); std::string::~string((int)&v24); for ( i = 0; ; ++i ) { result = (unsigned __int8 *)cocos2d::CCArray::count(v6); if ( i >= (unsigned int)result ) break; v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, i); CString = (const char *)cocos2d::CCString::getCString(v8); v21[0] = 0; v21[1] = 0; v22 = nullptr; v10 = (char *)CString; v11 = strlen(CString); std::string::__init(v21, v10, v11); if ( (v21[0] & 1) == 0 ) v10 = (char *)v21 + 1; v23[0] = 0; if ( (v21[0] & 1) != 0 ) v10 = v22; v23[1] = 0; v23[2] = 0; v12 = strlen(v10); std::string::__init(v23, v10, v12); v13 = sub_4C1A88(v23, ":"); std::string::~string((int)v23); if ( cocos2d::CCArray::count(v13) > 2u ) { v14 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v13, 0); v20 = (const char *)cocos2d::CCString::intValue(v14); v15 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v13, 1u); v16 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v13, 2u); v17 = (char *)cocos2d::CCString::intValue(v16); v18 = (const char *)cocos2d::CCString::getCString(v15); v24 = 0; v25 = 0; v26 = 0; v19 = strlen(v18); std::string::__init(&v24, v18, v19); GameLevelManager::storeUserName(v2, v20, v17, (unsigned __int8 *)&v24); std::string::~string((int)&v24); } std::string::~string((int)v21); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source