// // LevelSearchLayer::toggleTime from 0x14043b210 to 0x14043b3d6 (454 bytes) // // 2 xrefs: // > LevelSearchLayer::init @ 0x140435d71 // > @ 0x140926f30 // // 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=2 void __fastcall LevelSearchLayer::toggleTime(__int64 a1, __int64 a2) { unsigned int v3; // esi BOOL v4; // edi cocos2d::CCString *v5; // rax const char *CString; // rax size_t v7; // r8 __int64 v8; // rbx struct cocos2d::CCString *v9; // rax void *v10; // rcx char *v11; // rcx void (__fastcall *v12)(char *, __int16 *); // r8 __int16 *v13; // rdx __int64 v14; // rcx __int16 v15; // [rsp+30h] [rbp-58h] BYREF char v16; // [rsp+32h] [rbp-56h] _WORD v17[2]; // [rsp+34h] [rbp-54h] BYREF void *v18; // [rsp+38h] [rbp-50h] void *Block[2]; // [rsp+40h] [rbp-48h] BYREF __int64 v20; // [rsp+50h] [rbp-38h] unsigned __int64 v21; // [rsp+58h] [rbp-30h] v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = !LevelSearchLayer::checkTime(a1); v5 = cocos2d::CCString::createWithFormat("T%i", v3); CString = cocos2d::CCString::getCString(v5); *(_OWORD *)Block = 0; v20 = 0; v21 = 0; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003D230(Block, CString, v7); v8 = *(_QWORD *)(a1 + 480); v9 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v4); cocos2d::CCDictionary::setObject(v8, v9, Block); if ( v21 > 0xF ) { v10 = Block[0]; if ( v21 + 1 >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } v11 = (char *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 472), v3) + 368; v12 = **(void (__fastcall ***)(char *, __int16 *))v11; if ( v4 ) { v15 = -1; v16 = -1; v13 = &v15; } else { v15 = 32125; memset(v17, 125, 3); v13 = v17; } v12(v11, v13); v14 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v18 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v18); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v14 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::setLenVal(v14, v3, v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source