// // GameLevelManager::resetCommentTimersForLevelID from 0x100552830 to 0x100552c93 (1123 bytes) // // 2 xrefs: // > InfoLayer::toggleSmallCommentMode @ 0x1007b11b1 // > InfoLayer::onRefreshComments @ 0x1007b1e6b // // 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 // void __fastcall GameLevelManager::resetCommentTimersForLevelID(GameLevelManager *a1, int a2, CommentKeyType a3) { int v3; // eax double v4; // xmm0_8 GameLevelManager *v5; // r13 bool v6; // r15 char *v7; // rbx cocos2d::CCString *v8; // rax const char *CString; // r14 size_t v10; // rax size_t v11; // rbx char *v12; // r15 const char *v13; // r14 __int64 m_timerDict; // rbx size_t v15; // rax size_t v16; // r12 char *v17; // r15 __int64 v18; // rax size_t v19; // r12 size_t v20; // r13 __int64 v21; // rbx const char *v22; // r14 __int64 v23; // rbx size_t v24; // rax size_t v25; // r12 char *v26; // r15 size_t v27; // r13 bool v28; // zf char v29; // [rsp+0h] [rbp-80h] char __s[8]; // [rsp+18h] [rbp-68h] BYREF size_t v31; // [rsp+20h] [rbp-60h] void *v32; // [rsp+28h] [rbp-58h] int v33; // [rsp+30h] [rbp-50h] int v34; // [rsp+34h] [rbp-4Ch] __int64 __dst; // [rsp+38h] [rbp-48h] BYREF size_t v36; // [rsp+40h] [rbp-40h] void *__p; // [rsp+48h] [rbp-38h] int v38; // [rsp+50h] [rbp-30h] bool v39; // [rsp+57h] [rbp-29h] v5 = a1; LOBYTE(v3) = 1; v34 = v3; v33 = 0; do { v6 = 1; v38 = 0; while ( v6 ) { if ( !qword_1009A28E0 ) { v7 = (char *)operator new(0x3C8u); cocos2d::CCNode::CCNode((__int64)v7); *(_QWORD *)v7 = off_100960890; v4 = 0.0; *(_OWORD *)(v7 + 328) = 0; *((_QWORD *)v7 + 40) = v7 + 328; *((_QWORD *)v7 + 62) = 0; *((_OWORD *)v7 + 32) = 0; *(_OWORD *)(v7 + 344) = 0; *(_OWORD *)(v7 + 360) = 0; *(_OWORD *)(v7 + 376) = 0; *(_OWORD *)(v7 + 392) = 0; *(_OWORD *)(v7 + 408) = 0; *(_OWORD *)(v7 + 424) = 0; *(_OWORD *)(v7 + 440) = 0; *(_OWORD *)(v7 + 456) = 0; *(_OWORD *)(v7 + 472) = 0; *((_DWORD *)v7 + 122) = 0; *((_QWORD *)v7 + 63) = v7 + 512; *((_OWORD *)v7 + 33) = 0; *((_OWORD *)v7 + 34) = 0; *((_OWORD *)v7 + 35) = 0; *((_OWORD *)v7 + 36) = 0; *(_OWORD *)(v7 + 696) = 0; *(_OWORD *)(v7 + 680) = 0; *(_OWORD *)(v7 + 664) = 0; *(_OWORD *)(v7 + 648) = 0; *(_OWORD *)(v7 + 632) = 0; *(_OWORD *)(v7 + 616) = 0; *(_OWORD *)(v7 + 600) = 0; v7[712] = 0; *((_OWORD *)v7 + 48) = 0; *((_OWORD *)v7 + 47) = 0; *((_OWORD *)v7 + 46) = 0; *((_OWORD *)v7 + 45) = 0; *(_OWORD *)(v7 + 945) = 0; *(_OWORD *)(v7 + 936) = 0; *(_OWORD *)(v7 + 920) = 0; *(_OWORD *)(v7 + 904) = 0; *(_OWORD *)(v7 + 888) = 0; *(_OWORD *)(v7 + 872) = 0; *(_OWORD *)(v7 + 856) = 0; *(_OWORD *)(v7 + 840) = 0; *(_OWORD *)(v7 + 824) = 0; *(_OWORD *)(v7 + 808) = 0; *(_OWORD *)(v7 + 792) = 0; qword_1009A28E0 = (__int64)v7; GameLevelManager::init((GameLevelManager *)v7); } v8 = (cocos2d::CCString *)sub_1007AB580("comment_%i_%i_%i_%i", v29); CString = cocos2d::CCString::getCString(v8); v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v4); v11 = v10; if ( v10 >= 0x17 ) { v18 = v10 | 7; v19 = 26; if ( (v11 | 7) != 0x17 ) v19 = v18 + 1; v12 = (char *)operator new(v19); v32 = v12; *(_QWORD *)__s = v19 + 1; v31 = v11; } else { __s[0] = 2 * v10; v12 = &__s[1]; if ( !v10 ) { __s[1] = 0; v13 = &__s[1]; if ( (__s[0] & 1) == 0 ) goto LABEL_12; LABEL_11: v13 = (const char *)v32; goto LABEL_12; } } memmove(v12, CString, v11); v12[v11] = 0; v13 = &__s[1]; if ( (__s[0] & 1) != 0 ) goto LABEL_11; LABEL_12: m_timerDict = (__int64)v5->m_timerDict; v15 = strlen(v13); if ( v15 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_44; v16 = v15; if ( v15 >= 0x17 ) { v20 = (v15 | 7) + 1; if ( (v15 | 7) == 0x17 ) v20 = 26; v17 = (char *)operator new(v20); __p = v17; __dst = v20 | 1; v36 = v16; v5 = a1; LABEL_24: memcpy(v17, v13, v16); goto LABEL_25; } LOBYTE(__dst) = 2 * v15; v17 = (char *)&__dst + 1; if ( v15 ) goto LABEL_24; LABEL_25: v17[v16] = 0; v21 = cocos2d::CCDictionary::objectForKey_1(m_timerDict, (char *)&__dst); if ( (__dst & 1) != 0 ) operator delete(__p); v6 = v21 != 0; if ( !v21 ) goto LABEL_40; v22 = &__s[1]; if ( (__s[0] & 1) != 0 ) v22 = (const char *)v32; v23 = (__int64)v5->m_timerDict; v24 = strlen(v22); if ( v24 > 0xFFFFFFFFFFFFFFF7LL ) LABEL_44: sub_100006BF0(v4); v25 = v24; v39 = v6; if ( v24 >= 0x17 ) { v27 = (v24 | 7) + 1; if ( (v24 | 7) == 0x17 ) v27 = 26; v26 = (char *)operator new(v27); __p = v26; __dst = v27 | 1; v36 = v25; v5 = a1; LABEL_37: memcpy(v26, v22, v25); goto LABEL_38; } LOBYTE(__dst) = 2 * v24; v26 = (char *)&__dst + 1; if ( v24 ) goto LABEL_37; LABEL_38: v26[v25] = 0; cocos2d::CCDictionary::removeObjectForKey_1(v23, (char *)&__dst); v6 = v39; if ( (__dst & 1) != 0 ) operator delete(__p); LABEL_40: if ( (__s[0] & 1) != 0 ) operator delete(v32); if ( ++v38 == 101 ) return; } v33 = 1; v28 = (v34 & 1) == 0; v34 = 0; } while ( !v28 ); }
GD Web Decomp Icon

GD Web Decomp

Raw Source