// // GameLevelManager::writeSpecialFilters from 0x100558000 to 0x10055829a (666 bytes) // // 2 xrefs: // > GameLevelManager::getOnlineLevels @ 0x100558c5e // > GameLevelManager::getLevelLists @ 0x10055b163 // // This function is hookable on this platform (idp: pc, 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:32:06 +0000 // std::string *__fastcall GameLevelManager::writeSpecialFilters(std::string *a1, __int64 a2, __int64 a3) { const std::string::value_type *data; // rsi std::string::size_type size; // rdx const std::string::value_type *v6; // rsi int v7; // eax unsigned int v8; // eax int v9; // ebx const std::string::value_type *v10; // rsi std::string::size_type v11; // rdx __int64 v12; // rax __int64 v13; // r14 __int64 v14; // rax int v15; // eax const std::string::value_type *v16; // rsi std::string::size_type v17; // rdx unsigned int i; // r15d __int64 v19; // rax int v20; // r12d const std::string::value_type *v21; // rsi std::string::size_type v22; // rdx const std::string::value_type *v23; // rsi size_t v25; // [rsp+0h] [rbp-60h] BYREF std::string::size_type v26; // [rsp+8h] [rbp-58h] void *v27; // [rsp+10h] [rbp-50h] std::string *v28; // [rsp+18h] [rbp-48h] std::string __s[2]; // [rsp+20h] [rbp-40h] BYREF *(_WORD *)&a1->__r_.__value_.__l.0 = 0; v28 = a1; std::string::append(a1, "&diff="); if ( (*(_BYTE *)(a3 + 344) & 1) != 0 ) sub_10001AD30(__s, *(const void **)(a3 + 360), *(_QWORD *)(a3 + 352)); else __s[0] = *(std::string *)(a3 + 344); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { data = __s[0].__r_.__value_.__l.__data_; size = __s[0].__r_.__value_.__l.__size_; } else { size = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1; data = __s[0].__r_.__value_.__s.__data_; } std::string::append(v28, data, size); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); if ( *(_BYTE *)(a3 + 396) ) { v6 = "&star=1"; } else { if ( *(_BYTE *)(a3 + 397) != 1 ) goto LABEL_14; v6 = "&noStar=1"; } std::string::append(v28, v6); LABEL_14: v7 = *(_DWORD *)(a3 + 416); if ( v7 > 0 ) { v8 = v7 - 6; v9 = 0; if ( v8 < 5 ) v9 = dword_100A0CEB8[v8]; std::string::append(v28, "&demonFilter="); GameToolbox::intToString((size_t *)__s, v9); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { v10 = __s[0].__r_.__value_.__l.__data_; v11 = __s[0].__r_.__value_.__l.__size_; } else { v11 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1; v10 = __s[0].__r_.__value_.__s.__data_; } std::string::append(v28, v10, v11); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); } if ( *(_DWORD *)(a3 + 316) == 12 ) { *(_WORD *)&__s[0].__r_.__value_.__l.0 = 0; v12 = GameLevelManager::sharedState(); v13 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(v12 + 776)); if ( (unsigned int)sub_1007FEF90(v13) ) { v14 = cocos2d::CCArray::stringAtIndex(v13, 0); v15 = cocos2d::CCString::intValue(v14); GameToolbox::intToString(&v25, v15); v16 = (char *)&v25 + 1; if ( (v25 & 1) != 0 ) { v16 = (const std::string::value_type *)v27; v17 = v26; } else { v17 = (unsigned __int8)v25 >> 1; } std::string::append(__s, v16, v17); if ( (v25 & 1) != 0 ) operator delete(v27); for ( i = 1; i < (unsigned int)sub_1007FEF90(v13); ++i ) { v19 = cocos2d::CCArray::stringAtIndex(v13, i); v20 = cocos2d::CCString::intValue(v19); std::string::append(__s, ","); GameToolbox::intToString(&v25, v20); if ( (v25 & 1) != 0 ) { v21 = (const std::string::value_type *)v27; v22 = v26; } else { v22 = (unsigned __int8)v25 >> 1; v21 = (char *)&v25 + 1; } std::string::append(__s, v21, v22); if ( (v25 & 1) != 0 ) operator delete(v27); } } std::string::append(v28, "&followed="); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) v23 = __s[0].__r_.__value_.__l.__data_; else v23 = __s[0].__r_.__value_.__s.__data_; std::string::append(v28, v23); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); } return v28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source