// // GameLevelManager::getFolderName from 0x808efc to 0x80905c (352 bytes) // // 4 xrefs: // > LevelBrowserLayer::getSearchTitle @ 0x7f7de8 // > SetFolderPopup::valueChanged @ 0xa1f400 // > SetFolderPopup::onSetFolderName @ 0xa308c8 // > @ 0x52030 // // 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:54:46 +0000 // unsigned __int64 *__usercall GameLevelManager::getFolderName@( GameLevelManager *this@, const char *a2@, char a3@, unsigned __int64 *a4@) { __int64 v5; // x22 cocos2d::CCString *v6; // x0 size_t v7; // x0 cocos2d::CCString *v8; // x0 const char *v9; // x0 const char *v10; // x23 size_t v11; // x0 size_t v12; // x20 unsigned __int64 v13; // x22 void *v14; // x3 char *CString; // [xsp+48h] [xbp+48h] __int64 v17[2]; // [xsp+50h] [xbp+50h] BYREF void *v18; // [xsp+60h] [xbp+60h] v5 = *((_QWORD *)this + 105); if ( !a3 ) v5 = *((_QWORD *)this + 104); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); v17[0] = 0; CString = (char *)cocos2d::CCString::getCString(v6); v17[1] = 0; v18 = nullptr; v7 = strlen(CString); std::string::__init(v17, CString, v7); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v5, v17); v9 = (const char *)cocos2d::CCString::getCString(v8); *a4 = 0; v10 = v9; a4[1] = 0; a4[2] = 0; v11 = strlen(v9); v12 = v11; if ( v11 > 0xFFFFFFFFFFFFFFEFLL ) sub_62C79C(); if ( v11 > 0x16 ) { v13 = (v11 + 16) & 0xFFFFFFFFFFFFFFF0LL; v14 = (void *)operator new(v13); a4[2] = (unsigned __int64)v14; a4[1] = v12; *a4 = v13 | 1; LABEL_6: v14 = memcpy(v14, v10, v12); goto LABEL_7; } *(_BYTE *)a4 = 2 * v11; v14 = (char *)a4 + 1; if ( v11 ) goto LABEL_6; LABEL_7: *((_BYTE *)v14 + v12) = 0; if ( (v17[0] & 1) != 0 ) operator delete(v18); return a4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source