// // GameLevelManager::writeSpecialFilters from 0x4c0714 to 0x4c08c4 (432 bytes) // // 2 xrefs: // > GameLevelManager::getLevelLists @ 0x4c09a8 // > GameLevelManager::getOnlineLevels @ 0x4c1134 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:50:23 +0000 // GameLevelManager *__fastcall GameLevelManager::writeSpecialFilters(GameLevelManager *this, GJSearchObject *a2, int a3) { int v4; // r3 char *v6; // r1 size_t v7; // r2 GameLevelManager *v8; // r0 char *v9; // r1 int v10; // r3 unsigned int v11; // r3 int v12; // r8 char *v13; // r1 size_t v14; // r2 GameLevelManager *v15; // r0 int v16; // r0 cocos2d::CCArray *v17; // r9 unsigned int i; // r6 cocos2d::CCString *v19; // r0 int v20; // r11 char *v21; // r1 size_t v22; // r2 char *v23; // r1 int v25[3]; // [sp+0h] [bp-2Ch] BYREF int v26; // [sp+Ch] [bp-20h] BYREF size_t v27; // [sp+10h] [bp-1Ch] char *v28; // [sp+14h] [bp-18h] unsigned __int8 v29; // [sp+18h] [bp-14h] BYREF char v30; // [sp+19h] [bp-13h] BYREF size_t v31; // [sp+1Ch] [bp-10h] char *v32; // [sp+20h] [bp-Ch] int v33; // [sp+24h] [bp-8h] *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v4 = _stack_chk_guard; *(_DWORD *)this = 0; v33 = v4; std::string::__init((int *)this, &unk_B6B226, 0); std::string::append(this, "&diff="); std::string::basic_string(v25, a3 + 280); if ( (v25[0] & 1) != 0 ) { v6 = (char *)v25[2]; v7 = v25[1]; } else { v7 = (int)LOBYTE(v25[0]) >> 1; v6 = (char *)v25 + 1; } std::string::append(this, v6, v7); std::string::~string((int)v25); if ( *(_BYTE *)(a3 + 308) ) { v8 = this; v9 = "&star=1"; LABEL_5: std::string::append(v8, v9); goto LABEL_6; } if ( *(_BYTE *)(a3 + 309) ) { v8 = this; v9 = "&noStar=1"; goto LABEL_5; } LABEL_6: v10 = *(_DWORD *)(a3 + 328); if ( v10 > 0 ) { v11 = v10 - 6; if ( v11 > 4 ) v12 = 0; else v12 = asc_BEC464[v11 + 72]; std::string::append(this, "&demonFilter="); GameToolbox::intToString((GameToolbox *)&v26, v12); if ( (v26 & 1) != 0 ) { v13 = v28; v14 = v27; } else { v14 = (int)(unsigned __int8)v26 >> 1; v13 = (char *)&v26 + 1; } std::string::append(this, v13, v14); std::string::~string((int)&v26); } if ( *(_DWORD *)(a3 + 264) == 12 ) { v26 = 0; v27 = 0; v28 = nullptr; v15 = (GameLevelManager *)std::string::__init(&v26, &unk_B6B226, 0); v16 = GameLevelManager::sharedState(v15); v17 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*(cocos2d::CCDictionary **)(v16 + 552)); for ( i = 0; i < cocos2d::CCArray::count(v17); ++i ) { v19 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v17, i); v20 = cocos2d::CCString::intValue(v19); if ( i ) std::string::append(&v26, ","); GameToolbox::intToString((GameToolbox *)&v29, v20); if ( (v29 & 1) != 0 ) { v21 = v32; v22 = v31; } else { v22 = (int)v29 >> 1; v21 = &v30; } std::string::append(&v26, v21, v22); std::string::~string((int)&v29); } std::string::append(this, "&followed="); if ( (v26 & 1) != 0 ) v23 = v28; else v23 = (char *)&v26 + 1; std::string::append(this, v23); std::string::~string((int)&v26); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source