// // GameLevelManager::getDemonLevelsString from 0x4d5cc0 to 0x4d5dda (282 bytes) // // 1 xrefs: // > GameLevelManager::updateUserScore @ 0x4d65b2 // // 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:51 +0000 // GameLevelManager *__fastcall GameLevelManager::getDemonLevelsString(GameLevelManager *this, int a2) { int v3; // r3 size_t v4; // r2 int *v5; // r0 const char *v6; // r1 int v7; // r3 int v8; // r6 int v9; // r8 const void *v10; // r0 GJGameLevel *v11; // r0 GJGameLevel *v12; // r11 GameStatsManager *v13; // r0 int v14; // r2 const char *v15; // r0 const char *v16; // r6 size_t v17; // r0 unsigned int v19[3]; // [sp+Ch] [bp-208h] BYREF char v20; // [sp+18h] [bp-1FCh] BYREF v19[0] = 0; v19[1] = 500; v19[2] = (unsigned int)&v20; v3 = *(_DWORD *)(a2 + 544); if ( !v3 ) goto LABEL_2; v7 = *(_DWORD *)(v3 + 52); v8 = v7 ? *(_DWORD *)(v7 + 272) : 0; v9 = 1; while ( v7 ) { v10 = *(const void **)(v7 + 260); if ( v10 ) { v11 = (GJGameLevel *)_dynamic_cast( v10, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); v12 = v11; if ( v11 ) { if ( *((_DWORD *)v11 + 193) - *((_DWORD *)v11 + 194) == 10 && GJGameLevel::getNormalPercent(v11) == 100 ) { v13 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)&dword_64); if ( GameStatsManager::hasCompletedLevel(v13, v12) ) { if ( !v9 ) fmt::BasicWriter::operator<<(v19, ",", 0); fmt::BasicWriter::operator<<(v19, *((_DWORD *)v12 + 67) - *((_DWORD *)v12 + 68)); v9 = 0; } } } } if ( v8 ) v14 = *(_DWORD *)(v8 + 272); else v14 = 0; v7 = v8; v8 = v14; } if ( v9 ) { LABEL_2: v4 = 0; v5 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v6 = (const char *)&unk_B6B226; *((_DWORD *)this + 2) = 0; } else { v15 = (const char *)fmt::BasicWriter::c_str((int *)v19); *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v16 = v15; *((_DWORD *)this + 2) = 0; v17 = strlen(v15); v6 = v16; v4 = v17; v5 = (int *)this; } std::string::__init(v5, v6, v4); fmt::internal::Array::free((int)v19); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source