// // GameStatsManager::hasCompletedDemonLevel from 0x10006d950 to 0x10006da64 (276 bytes) // // 1 xrefs: // > GameStatsManager::completedDemonLevel @ 0x10006dd07 // // 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 // bool __fastcall GameStatsManager::hasCompletedDemonLevel(GameStatsManager *a1, GJGameLevel *a2) { double v2; // xmm0_8 cocos2d::CCDictionary *m_completedLevels; // rbx char *v4; // rdi cocos2d::CCString *v5; // rax const char *CString; // r15 size_t v7; // rax size_t v8; // r14 char *v9; // r12 size_t v10; // r13 __int64 v11; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] m_completedLevels = a1->m_completedLevels; if ( a2->m_dailyID.random <= a2->m_dailyID.seed ) { if ( a2->m_gauntletLevel ) v4 = "gdemon_%i"; else v4 = "demon_%i"; } else { v4 = "ddemon_%i"; } v5 = (cocos2d::CCString *)sub_1007AB580(v4, __dst[0]); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v8 = v7; if ( v7 >= 0x17 ) { v10 = 26; if ( (v7 | 7) != 0x17 ) v10 = (v7 | 7) + 1; v9 = (char *)operator new(v10); __p = v9; __dst[0] = v10 + 1; __dst[1] = v8; goto LABEL_13; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_13: memmove(v9, CString, v8); v9[v8] = 0; v11 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return v11 != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source