// // GameLevelManager::onReportLevelCompleted from 0x100527530 to 0x100527672 (322 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x10051e44a // // 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:31:46 +0000 // void __fastcall GameLevelManager::onReportLevelCompleted(__int64 a1, unsigned __int8 *a2, __int64 a3) { const char *v4; // rdx const void *v5; // rdi unsigned __int64 v6; // rcx char *v7; // rbx size_t v8; // rdx __int64 v9; // r14 __int64 v10; // rax const char *CString; // r12 size_t v12; // rax size_t v13; // r15 size_t v14; // r13 _QWORD __s2[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] if ( (*(_BYTE *)a3 & 1) != 0 ) v4 = *(const char **)(a3 + 16); else v4 = (const char *)(a3 + 1); atoi(v4); *(_WORD *)((char *)__s2 + 1) = 12589; BYTE3(__s2[0]) = 0; v5 = a2 + 1; v6 = *a2 >> 1; if ( (*a2 & 1) != 0 ) v5 = *((const void **)a2 + 2); v7 = (char *)__s2 + 1; if ( (*a2 & 1) != 0 ) v6 = *((_QWORD *)a2 + 1); v8 = 2; if ( v6 < 2 ) v8 = v6; if ( !((v6 != 2) | (memcmp(v5, (char *)__s2 + 1, v8) != 0)) ) { v9 = *(_QWORD *)(a1 + 824); v10 = sub_10088E820("%i", __s2[0]); CString = (const char *)cocos2d::CCString::getCString(v10); v12 = strlen(CString); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v13 = v12; if ( v12 >= 0x17 ) { v14 = 26; if ( (v12 | 7) != 0x17 ) v14 = (v12 | 7) + 1; v7 = (char *)operator new(v14); __p = v7; __s2[0] = v14 + 1; __s2[1] = v13; } else { LOBYTE(__s2[0]) = 2 * v12; if ( !v12 ) { LABEL_19: v7[v13] = 0; cocos2d::CCDictionary::removeObjectForKey(v9, (char *)__s2); if ( (__s2[0] & 1) != 0 ) operator delete(__p); return; } } memmove(v7, CString, v13); goto LABEL_19; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source