// // cocos2d::CCDictionary::createWithContentsOfFileThreadSafe from 0x1002faa20 to 0x1002faae8 (200 bytes) // // 3 xrefs: // > CCContentManager::addDict @ 0x10016383a // > cocos2d::CCDictionary::createWithContentsOfFile @ 0x1002fab36 // > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x100308a4f // // 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:28:30 +0000 // __int64 __fastcall cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(char *__s) { __int64 v1; // rbx size_t v2; // rax size_t v3; // r15 char *v4; // r12 size_t v5; // r13 __int64 result; // rax __int64 v7; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] v1 = cocos2d::CCFileUtils::sharedFileUtils(); v2 = strlen(__s); if ( v2 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v3 = v2; if ( v2 >= 0x17 ) { v5 = 26; if ( (v2 | 7) != 0x17 ) v5 = (v2 | 7) + 1; v4 = (char *)operator new(v5); __p = v4; __dst[0] = v5 + 1; __dst[1] = v3; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v2; v4 = (char *)__dst + 1; if ( v2 ) LABEL_8: memcpy(v4, __s, v3); v4[v3] = 0; result = (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v1 + 240LL))(v1, __dst); if ( (__dst[0] & 1) != 0 ) { v7 = result; operator delete(__p); return v7; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source