// // LevelSearchLayer::toggleTime from 0x100707d90 to 0x100707f05 (373 bytes) // // 1 xrefs: // > LevelSearchLayer::init @ 0x1007063c3 // // 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 12:36:02 +0000 // void __fastcall LevelSearchLayer::toggleTime(__int64 a1, __int64 a2) { __int64 v2; // rbx __int64 v3; // rax const char *CString; // r14 size_t v5; // rax size_t v6; // r13 char *v7; // r12 size_t v8; // r15 __int64 v9; // rax __int64 v10; // rax char v11; // [rsp+0h] [rbp-70h] char v12; // [rsp+0h] [rbp-70h] __int64 v13; // [rsp+8h] [rbp-68h] __int64 v14; // [rsp+10h] [rbp-60h] _QWORD __dst[2]; // [rsp+28h] [rbp-48h] BYREF void *__p; // [rsp+38h] [rbp-38h] char v17; // [rsp+47h] [rbp-29h] v2 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v17 = LevelSearchLayer::checkTime(a1, v2); v13 = *(_QWORD *)(a1 + 480); v14 = sub_10088E820("%i", v11); v3 = sub_10088E820("T%i", v12); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); __p = v7; __dst[0] = v8 + 1; __dst[1] = v6; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) LABEL_8: memmove(v7, CString, v6); v7[v6] = 0; cocos2d::CCDictionary::setObject(v13, v14, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); v9 = sub_1007FEFE0(*(_QWORD *)(a1 + 472), (unsigned int)v2); if ( v17 ) { memset(__dst, 125, 3); } else { BYTE2(__dst[0]) = -1; LOWORD(__dst[0]) = -1; } (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v9 + 1072LL))(v9, __dst); v10 = GameLevelManager::sharedState(); sub_1005820C0(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source