// // GameLevelManager::getLevelLists from 0x10009ec0c to 0x10009edf4 (488 bytes) // // 2 xrefs: // > LevelListLayer::onRefreshLevelList @ 0x100244bdc // > LevelBrowserLayer::loadPage @ 0x100417204 // // 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 // void __fastcall GameLevelManager::getLevelLists(GameLevelManager *a1, GJSearchObject *a2) { char *Key; // x20 std::string *p_dst; // x22 SearchType m_searchType; // w23 int m_page; // w24 cocos2d::CCString *v8; // x0 const char *CString; // x0 cocos2d::CCString *v10; // x0 const char *v11; // x0 std::string *capacitym1; // x1 std::string *v13; // x1 void *__p[2]; // [xsp+38h] [xbp-A8h] BYREF char v15; // [xsp+4Fh] [xbp-91h] void *v16[2]; // [xsp+50h] [xbp-90h] BYREF char v17; // [xsp+67h] [xbp-79h] std::string v18; // [xsp+68h] [xbp-78h] BYREF std::string __dst; // [xsp+80h] [xbp-60h] BYREF std::string v20; // [xsp+98h] [xbp-48h] BYREF Key = (char *)GJSearchObject::getKey(a2); if ( !GameLevelManager::isDLActive(a1, Key) ) { GameLevelManager::addDLToActive(a1, Key); GameLevelManager::getBasePostString(&v20); if ( a2->m_searchQuery.m_data.m_short.shortStorage.__elems_[22] < 0 ) sub_1000097D0(&__dst, (void *)a2->m_searchQuery.m_data.m_long.capacitym1, a2->m_searchQuery.m_data.m_long.size); else __dst = a2->m_searchQuery; if ( __dst.m_data.m_short.shortStorage.__elems_[22] >= 0 ) p_dst = &__dst; else p_dst = (std::string *)__dst.m_data.m_long.capacitym1; m_searchType = a2->m_searchType; m_page = a2->m_page; v8 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); CString = cocos2d::CCString::getCString(v8); v10 = (cocos2d::CCString *)sub_100268F4C( "&str=%s&type=%i&page=%i&secret=%s", (const char *)p_dst, m_searchType, m_page, CString); v11 = cocos2d::CCString::getCString(v10); std::string::append(&v20, v11); if ( __dst.m_data.m_short.shortStorage.__elems_[22] < 0 ) operator delete((void *)__dst.m_data.m_long.capacitym1); GameLevelManager::writeSpecialFilters((__int64)a2, (std::string *)&__dst); if ( __dst.m_data.m_short.shortStorage.__elems_[22] >= 0 ) capacitym1 = &__dst; else capacitym1 = (std::string *)__dst.m_data.m_long.capacitym1; std::string::append(&v20, (const std::string::value_type *)capacitym1); if ( __dst.m_data.m_short.shortStorage.__elems_[22] < 0 ) operator delete((void *)__dst.m_data.m_long.capacitym1); sub_100009900(&v18, "https://www.boomlings.com/database/getGJLevelLists.php"); if ( (v20.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v13 = &v20; else v13 = (std::string *)v20.__r_.__value_.__r.__words[0]; sub_100009900(v16, (char *)v13); sub_100009900(__p, Key); GameLevelManager::ProcessHttpRequest(a1, &v18, (char *)v16, (const std::string::value_type *)__p, 60); if ( v15 < 0 ) operator delete(__p[0]); if ( v17 < 0 ) operator delete(v16[0]); if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v18.__r_.__value_.__l.__data_); if ( SHIBYTE(v20.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v20.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source