// // GameLevelManager::writeSpecialFilters from 0x82c774 to 0x82cae8 (884 bytes) // // 3 xrefs: // > GameLevelManager::getOnlineLevels @ 0x82e414 // > GameLevelManager::getLevelLists @ 0x82ef54 // > @ 0x412c0 // // 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:06 +0000 // __int64 *__usercall GameLevelManager::writeSpecialFilters@(GJSearchObject *a1@, __int64 *a2@) { __int64 v4; // x3 char v6; // w0 __int64 v7; // x0 size_t v8; // x1 char *v9; // x1 size_t v10; // x2 int v11; // w0 unsigned int v12; // w0 unsigned int v13; // w22 size_t v14; // x2 char *v15; // x1 GameLevelManager *v17; // x0 __int64 v18; // x0 cocos2d::CCArray *v19; // x22 unsigned int i; // w19 cocos2d::CCString *v21; // x0 unsigned int v22; // w26 char *v23; // x1 size_t v24; // x2 const char *v25; // x1 size_t v26; // x0 char *v27; // [xsp+58h] [xbp+58h] __int64 v28; // [xsp+60h] [xbp+60h] BYREF size_t v29; // [xsp+68h] [xbp+68h] void *v30; // [xsp+70h] [xbp+70h] __int64 v31; // [xsp+78h] [xbp+78h] BYREF size_t v32; // [xsp+80h] [xbp+80h] void *v33; // [xsp+88h] [xbp+88h] unsigned __int64 v34[2]; // [xsp+90h] [xbp+90h] BYREF void *v35; // [xsp+A0h] [xbp+A0h] __int64 v36; // [xsp+A8h] [xbp+A8h] a2[1] = 0; v4 = _stack_chk_guard; a2[2] = 0; *a2 = 0; v36 = v4; std::string::__init(a2, &byte_11B8890, 0); std::string::append((__int64)a2, "&diff=", 6u); v6 = *((_BYTE *)a1 + 344); v28 = 0; v29 = 0; v30 = nullptr; if ( (v6 & 1) != 0 ) { std::string::__init(&v28, *((void **)a1 + 45), *((_QWORD *)a1 + 44)); } else { v7 = *((_QWORD *)a1 + 43); v8 = *((_QWORD *)a1 + 44); v30 = *((void **)a1 + 45); v28 = v7; v29 = v8; } if ( (v28 & 1) != 0 ) { v9 = (char *)v30; v10 = v29; } else { v10 = (unsigned __int8)v28 >> 1; v9 = (char *)&v28 + 1; } std::string::append((__int64)a2, v9, v10); if ( (v28 & 1) != 0 ) operator delete(v30); if ( *((_BYTE *)a1 + 396) ) { std::string::append((__int64)a2, "&star=1", 7u); } else if ( *((_BYTE *)a1 + 397) ) { std::string::append((__int64)a2, "&noStar=1", 9u); } v11 = *((_DWORD *)a1 + 104); if ( v11 > 0 ) { v12 = v11 - 6; v13 = 0; if ( v12 <= 4 ) v13 = dword_1147060[v12]; std::string::append((__int64)a2, "&demonFilter=", 0xDu); GameToolbox::intToString((unsigned __int64 *)&v31, (GameToolbox *)v13); if ( (v31 & 1) != 0 ) { v15 = (char *)v33; v14 = v32; } else { v14 = (unsigned __int8)v31 >> 1; v15 = (char *)&v31 + 1; } std::string::append((__int64)a2, v15, v14); if ( (v31 & 1) != 0 ) operator delete(v33); } if ( *((_DWORD *)a1 + 79) == 12 ) { v31 = 0; v32 = 0; v33 = nullptr; v17 = (GameLevelManager *)std::string::__init(&v31, &byte_11B8890, 0); v18 = GameLevelManager::sharedState(v17); v19 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*(cocos2d::CCDictionary **)(v18 + 776)); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v19); ++i ) { v21 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v19, i); v22 = cocos2d::CCString::intValue(v21); if ( i ) std::string::append((__int64)&v31, &byte_1169BE0, 1u); GameToolbox::intToString(v34, (GameToolbox *)v22); if ( (v34[0] & 1) != 0 ) { v23 = (char *)v35; v24 = v34[1]; } else { v24 = LOBYTE(v34[0]) >> 1; v23 = (char *)v34 + 1; } std::string::append((__int64)&v31, v23, v24); if ( (v34[0] & 1) != 0 ) operator delete(v35); } std::string::append((__int64)a2, "&followed=", 0xAu); v25 = (char *)&v31 + 1; if ( (v31 & 1) != 0 ) v25 = (const char *)v33; v27 = (char *)v25; v26 = strlen(v25); std::string::append((__int64)a2, v27, v26); if ( (v31 & 1) != 0 ) operator delete(v33); } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source