// // GameLevelManager::writeSpecialFilters from 0x10009d27c to 0x10009d4d0 (596 bytes) // // 2 xrefs: // > GameLevelManager::getOnlineLevels @ 0x10009d9ac // > GameLevelManager::getLevelLists @ 0x10009ed20 // // 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 __usercall GameLevelManager::writeSpecialFilters(__int64 a1@, std::string *a2@) { std::string *p_p; // x1 std::string::size_type size; // x2 const std::string::value_type *v6; // x1 int v7; // w8 unsigned int v8; // w8 __int64 v9; // x21 std::string *v10; // x1 std::string::size_type v11; // x2 GameLevelManager *v12; // x0 cocos2d::CCArray *v13; // x20 unsigned int i; // w21 cocos2d::CCString *v15; // x0 __int64 v16; // x23 void **v17; // x1 std::string::size_type v18; // x2 std::string *v19; // x1 void *v20[2]; // [xsp+8h] [xbp-68h] BYREF unsigned __int8 v21; // [xsp+1Fh] [xbp-51h] std::string __p; // [xsp+20h] [xbp-50h] BYREF sub_100009900(a2, ""); std::string::append(a2, "&diff="); if ( *(char *)(a1 + 367) < 0 ) sub_1000097D0(&__p, *(void **)(a1 + 344), *(_QWORD *)(a1 + 352)); else __p = *(std::string *)(a1 + 344); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) size = HIBYTE(__p.__r_.__value_.__r.__words[2]); else size = __p.__r_.__value_.__l.__size_; std::string::append(a2, (const std::string::value_type *)p_p, size); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( (*(_BYTE *)(a1 + 396) & 1) != 0 ) { v6 = "&star=1"; LABEL_16: std::string::append(a2, v6); goto LABEL_17; } if ( *(_BYTE *)(a1 + 397) == 1 ) { v6 = "&noStar=1"; goto LABEL_16; } LABEL_17: v7 = *(_DWORD *)(a1 + 416); if ( v7 >= 1 ) { v8 = v7 - 6; v9 = v8 >= 5 ? 0LL : dword_1006369C4[v8]; std::string::append(a2, "&demonFilter="); GameToolbox::intToString(v9, &__p); v10 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ? &__p : (std::string *)__p.__r_.__value_.__r.__words[0]; v11 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ? HIBYTE(__p.__r_.__value_.__r.__words[2]) : __p.__r_.__value_.__l.__size_; std::string::append(a2, (const std::string::value_type *)v10, v11); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); } if ( *(_DWORD *)(a1 + 316) == 12 ) { sub_100009900(&__p, ""); v12 = GameLevelManager::sharedState(); v13 = cocos2d::CCDictionary::allKeys(v12->m_followedCreators); for ( i = 0; i < (unsigned int)sub_10024A36C(v13); ++i ) { v15 = cocos2d::CCArray::stringAtIndex(v13, i); v16 = cocos2d::CCString::intValue(v15); if ( i ) std::string::append(&__p, ","); GameToolbox::intToString(v16, v20); if ( (v21 & 0x80u) == 0 ) v17 = v20; else v17 = (void **)v20[0]; if ( (v21 & 0x80u) == 0 ) v18 = v21; else v18 = (std::string::size_type)v20[1]; std::string::append(&__p, (const std::string::value_type *)v17, v18); if ( (char)v21 < 0 ) operator delete(v20[0]); } std::string::append(a2, "&followed="); v19 = (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ? &__p : (std::string *)__p.__r_.__value_.__r.__words[0]; std::string::append(a2, (const std::string::value_type *)v19); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source