// // LevelSearchLayer::toggleNoStar from 0x14043a740 to 0x14043aaee (942 bytes) // // 2 xrefs: // > LevelSearchLayer::init @ 0x140435eb6 // > @ 0x140926ef4 // // This function is hookable on this platform (idp: pc, 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 11:32:19 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall LevelSearchLayer::toggleNoStar(__int64 a1) { __int64 v2; // rcx cocos2d::CCString *v3; // rax bool v4; // si void *v5; // r8 void (__fastcall ***v6)(_QWORD, _WORD *); // rcx bool v7; // si __int64 v8; // rbx __int64 v9; // rbx struct cocos2d::CCString *v10; // rax void *v11; // rcx __int64 v12; // rbx __int64 v13; // rbx struct cocos2d::CCString *v14; // rax void *v15; // rcx _WORD v16[4]; // [rsp+30h] [rbp-9h] BYREF void *v17; // [rsp+38h] [rbp-1h] void *Block[2]; // [rsp+40h] [rbp+7h] BYREF __int64 v19; // [rsp+50h] [rbp+17h] unsigned __int64 v20; // [rsp+58h] [rbp+1Fh] void *v21[2]; // [rsp+60h] [rbp+27h] BYREF __int64 v22; // [rsp+70h] [rbp+37h] unsigned __int64 v23; // [rsp+78h] [rbp+3Fh] v2 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v17 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v17); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v2 = *(_QWORD *)&qword_14090BFB0; } v19 = 13; v20 = 15; strcpy((char *)Block, "nostar_filter"); HIWORD(Block[1]) = 0; v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 848), Block); v4 = cocos2d::CCString::boolValue(v3); if ( v20 > 0xF ) { v5 = Block[0]; if ( v20 + 1 >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v5); } v6 = (void (__fastcall ***)(_QWORD, _WORD *))(*(_QWORD *)(a1 + 456) + 320LL); v7 = !v4; if ( v7 ) { v16[0] = -1; LOBYTE(v16[1]) = -1; } else { memset(v16, 125, 3); } (**v6)(v6, v16); v8 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v17 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v17); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v8 = *(_QWORD *)&qword_14090BFB0; } v19 = 13; v20 = 15; strcpy((char *)Block, "nostar_filter"); HIWORD(Block[1]) = 0; v9 = *(_QWORD *)(v8 + 848); v10 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v7); cocos2d::CCDictionary::setObject(v9, v10, Block); if ( v20 > 0xF ) { v11 = Block[0]; if ( v20 + 1 >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } v19 = 0; v20 = 15; LOBYTE(Block[0]) = 0; if ( *(_DWORD *)(a1 + 432) == 1 && v7 ) { v12 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v17 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v17); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v12 = *(_QWORD *)&qword_14090BFB0; } v22 = 11; v23 = 15; v21[0] = (void *)0x6C69665F72617473LL; v21[1] = (void *)7497076; v13 = *(_QWORD *)(v12 + 848); v14 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0); cocos2d::CCDictionary::setObject(v13, v14, v21); if ( v23 > 0xF ) { v15 = v21[0]; if ( v23 + 1 >= 0x1000 ) { v15 = *((void **)v21[0] - 1); if ( (unsigned __int64)((char *)v21[0] - (char *)v15 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v15); } memset(v16, 125, 3); (**(void (__fastcall ***)(__int64, _WORD *))(*(_QWORD *)(a1 + 448) + 320LL))(*(_QWORD *)(a1 + 448) + 320LL, v16); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source