// // GameLevelManager::likeFromLikeKey from 0x100557e40 to 0x100557f26 (230 bytes) // // 1 xrefs: // > GameLevelManager::onLikeItemCompleted @ 0x100522741 // // 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 // int __fastcall GameLevelManager::likeFromLikeKey(GameLevelManager *a1, const char *a2) { double v2; // xmm0_8 size_t v3; // rax size_t v4; // rbx char *v5; // r15 size_t v6; // r12 __int64 v7; // rbx unsigned int v8; // ecx int result; // eax cocos2d::CCString *v10; // rax const char *CString; // rax _QWORD __dst[2]; // [rsp+8h] [rbp-38h] BYREF void *__p; // [rsp+18h] [rbp-28h] v3 = strlen(a2); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v4 = v3; if ( v3 >= 0x17 ) { v6 = 26; if ( (v3 | 7) != 0x17 ) v6 = (v3 | 7) + 1; v5 = (char *)operator new(v6); __p = v5; __dst[0] = v6 + 1; __dst[1] = v4; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v3; v5 = (char *)__dst + 1; if ( v3 ) LABEL_8: memcpy(v5, a2, v4); v5[v4] = 0; v7 = sub_10052DD30((unsigned __int8 *)__dst, "_", v2); if ( (__dst[0] & 1) != 0 ) operator delete(__p); v8 = sub_100720070(v7); result = 0; if ( v8 >= 5 ) { v10 = (cocos2d::CCString *)sub_1007200C0(v7, 3); CString = cocos2d::CCString::getCString(v10); return atoi(CString); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source