// // GameStatsManager::hasCompletedGauntletLevel from 0x1401de170 to 0x1401de2a0 (304 bytes) // // 4 xrefs: // > GJMapPack::completedMaps @ 0x140171033 // > GauntletLayer::setupGauntlet @ 0x1401f6f18 // > @ 0x1406cc3e4 // > @ 0x1406cc3f0 // // 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 GameStatsManager::hasCompletedGauntletLevel(GameStatsManager *a1, int a2) { _BYTE *v4; // rax size_t v5; // r8 bool v6; // bl void *v7; // rcx _QWORD v9[3]; // [rsp+20h] [rbp-268h] BYREF void *Block[2]; // [rsp+38h] [rbp-250h] BYREF __int128 v11; // [rsp+48h] [rbp-240h] _BYTE v12[528]; // [rsp+60h] [rbp-228h] BYREF fmt::BasicWriter::BasicWriter(v12); v9[0] = "g_"; v9[1] = 0; fmt::BasicWriter::operator<<(v12, v9); fmt::BasicWriter::operator<<(v12, (unsigned int)a2); v4 = (_BYTE *)fmt::BasicWriter::c_str(v12); *(_OWORD *)Block = 0; v11 = 0; v5 = -1; do ++v5; while ( v4[v5] ); sub_14003A930(Block, v4, v5); fmt::BasicWriter::~BasicWriter(v12); v6 = cocos2d::CCDictionary::objectForKey(a1->m_completedLevels, Block) != 0; if ( *((_QWORD *)&v11 + 1) > 0xFu ) { v7 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v7); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source