// // sub_100569D80 from 0x100569d80 to 0x100569f43 (451 bytes) // // 1 xrefs: // > GameLevelManager::onDeleteUserMessagesCompleted @ 0x10052aea4 // // 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:32:12 +0000 // void __fastcall sub_100569D80(__int64 a1, int a2, int a3) { __int64 v3; // rax const char *CString; // rbx __int64 StoredOnlineLevels; // rax __int64 v6; // r14 int v7; // r12d __int64 v8; // rax unsigned int v9; // r15d void (__fastcall ***v10)(_QWORD, __int64, const char *); // rdi __int64 v11; // r14 size_t v12; // rax size_t v13; // r15 char *v14; // r13 size_t v15; // r12 _QWORD __dst[2]; // [rsp+0h] [rbp-50h] BYREF void *__p; // [rsp+10h] [rbp-40h] int v18; // [rsp+1Ch] [rbp-34h] __int64 v19; // [rsp+20h] [rbp-30h] v18 = a3; v3 = sub_10088E820("messages_%i_%i", __dst[0]); CString = (const char *)cocos2d::CCString::getCString(v3); v19 = a1; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, CString); if ( StoredOnlineLevels ) { v6 = StoredOnlineLevels; v7 = 0; while ( !(unsigned int)sub_1007FEF90(v6) ) { LABEL_3: ++v7; v8 = sub_10088E820("messages_%i_%i", __dst[0]); CString = (const char *)cocos2d::CCString::getCString(v8); v6 = GameLevelManager::getStoredOnlineLevels(v19, CString); if ( !v6 ) return; } v9 = 0; while ( *(_DWORD *)(sub_1007FEFE0(v6, v9) + 316) != a2 ) { if ( ++v9 >= (unsigned int)sub_1007FEF90(v6) ) goto LABEL_3; } sub_1007FF150(v6, v9, 1); v10 = *(void (__fastcall ****)(_QWORD, __int64, const char *))(v19 + 1384); if ( v10 ) { (**v10)(v10, v6, CString); if ( !(unsigned int)sub_1007FEF90(v6) ) { v11 = *(_QWORD *)(v19 + 1040); v12 = strlen(CString); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v13 = v12; v14 = (char *)__dst + 1; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); __p = v14; __dst[0] = v15 + 1; __dst[1] = v13; } else { LOBYTE(__dst[0]) = 2 * v12; if ( !v12 ) { LABEL_19: v14[v13] = 0; cocos2d::CCDictionary::removeObjectForKey(v11, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return; } } memmove(v14, CString, v13); goto LABEL_19; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source