// // GameLevelManager::storeUserNames from 0x847e0c to 0x8480c8 (700 bytes) // // 5 xrefs: // > GameLevelManager::onGetOnlineLevelsCompleted @ 0x8483a0 // > GameLevelManager::onGetLevelListsCompleted @ 0x848c2c // > GameLevelManager::onGetEditorSoundsCompleted @ 0x849158 // > GameLevelManager::processOnDownloadLevelCompleted @ 0x859104 // > @ 0x4ee08 // // 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:21 +0000 // __int64 __fastcall GameLevelManager::storeUserNames(_QWORD *a1, unsigned __int8 *a2) { int v3; // w0 const char *v4; // x1 size_t v5; // x0 cocos2d::CCArray *v6; // x23 unsigned int i; // w21 cocos2d::CCString *v8; // x0 const char *CString; // x0 size_t v10; // x0 char *v11; // x22 size_t v12; // x0 cocos2d::CCArray *v13; // x22 cocos2d::CCString *v15; // x0 int v16; // w26 cocos2d::CCString *v17; // x27 cocos2d::CCString *v18; // x0 int v19; // w22 size_t v20; // x0 char *v21; // [xsp+68h] [xbp+68h] char *v22; // [xsp+68h] [xbp+68h] char *v23; // [xsp+68h] [xbp+68h] __int64 v24[2]; // [xsp+70h] [xbp+70h] BYREF void *v25; // [xsp+80h] [xbp+80h] __int64 v26[2]; // [xsp+88h] [xbp+88h] BYREF void *v27; // [xsp+98h] [xbp+98h] __int64 v28; // [xsp+A0h] [xbp+A0h] BYREF __int64 v29; // [xsp+A8h] [xbp+A8h] void *v30; // [xsp+B0h] [xbp+B0h] v3 = *a2; if ( (v3 & 1) != 0 ) { if ( !*((_QWORD *)a2 + 1) ) return _stack_chk_guard; v4 = *((const char **)a2 + 2); } else { v4 = (const char *)(a2 + 1); if ( !(v3 >> 1) ) return _stack_chk_guard; } v21 = (char *)v4; v28 = 0; v29 = 0; v30 = nullptr; v5 = strlen(v4); std::string::__init(&v28, v21, v5); v6 = sub_80CFCC((unsigned __int8 *)&v28, "|"); if ( (v28 & 1) != 0 ) operator delete(v30); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v6); ++i ) { v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, i); CString = (const char *)cocos2d::CCString::getCString(v8); v24[0] = 0; v24[1] = 0; v25 = nullptr; v22 = (char *)CString; v10 = strlen(CString); std::string::__init(v24, v22, v10); v11 = (char *)v24 + 1; if ( (v24[0] & 1) != 0 ) v11 = (char *)v25; v26[0] = 0; v26[1] = 0; v27 = nullptr; v12 = strlen(v11); std::string::__init(v26, v11, v12); v13 = sub_80CFCC((unsigned __int8 *)v26, ":"); if ( (v26[0] & 1) != 0 ) operator delete(v27); if ( (unsigned int)cocos2d::CCArray::count(v13) > 2 ) { v15 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v13, 0); v16 = cocos2d::CCString::intValue(v15); v17 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v13, 1u); v18 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v13, 2u); v19 = cocos2d::CCString::intValue(v18); v23 = (char *)cocos2d::CCString::getCString(v17); v28 = 0; v29 = 0; v30 = nullptr; v20 = strlen(v23); std::string::__init(&v28, v23, v20); GameLevelManager::storeUserName(a1, v16, v19, (char *)&v28); if ( (v28 & 1) != 0 ) operator delete(v30); } if ( (v24[0] & 1) != 0 ) operator delete(v25); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source