// // cocos2d::CCDictionary::writeToFile from 0xd43ddc to 0xd43ee8 (268 bytes) // // 1 xrefs: // > @ 0xf0fd0 // // This function is hookable on this platform (idp: arm, 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 13:07:32 +0000 // __int64 __fastcall cocos2d::CCDictionary::writeToFile(cocos2d::CCDictionary *this, const char *a2) { __int64 *v4; // x22 __int64 v5; // x1 __int64 (__fastcall *v6)(__int64 *, cocos2d::CCDictionary *, __int64 *); // x24 size_t v7; // x0 size_t v8; // x19 char *v9; // x3 unsigned int v10; // w19 unsigned __int64 v12; // x0 __int64 v13; // [xsp+50h] [xbp+50h] BYREF size_t v14; // [xsp+58h] [xbp+58h] void *v15; // [xsp+60h] [xbp+60h] v4 = (__int64 *)cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard); v5 = *v4; v13 = 0; v14 = 0; v6 = *(__int64 (__fastcall **)(__int64 *, cocos2d::CCDictionary *, __int64 *))(v5 + 248); v15 = nullptr; v7 = strlen(a2); v8 = v7; if ( v7 > 0x16 ) { v12 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL; v13 = v12 | 1; v9 = (char *)operator new(v12); v15 = v9; v14 = v8; } else { LOBYTE(v13) = 2 * v7; v9 = (char *)&v13 + 1; if ( !v7 ) goto LABEL_3; } v9 = (char *)memcpy(v9, a2, v8); LABEL_3: v9[v8] = 0; v10 = v6(v4, this, &v13); if ( (v13 & 1) != 0 ) operator delete(v15); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source