// // cocos2d::CCDictionary::writeToFile from 0x1002fab50 to 0x1002fac24 (212 bytes) // // 0 xrefs: // // 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::writeToFile(__int64 a1, const char *a2) { __int64 v2; // rbx __int64 v3; // r14 size_t v4; // rax size_t v5; // r12 char *v6; // r13 size_t v7; // rbx __int64 result; // rax unsigned int v9; // ebx _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v2 = a1; v3 = cocos2d::CCFileUtils::sharedFileUtils(); v4 = strlen(a2); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; v6 = (char *)operator new(v7); __p = v6; __dst[0] = v7 + 1; v2 = a1; __dst[1] = v5; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( v4 ) LABEL_8: memcpy(v6, a2, v5); v6[v5] = 0; result = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD *))(*(_QWORD *)v3 + 248LL))(v3, v2, __dst); if ( (__dst[0] & 1) != 0 ) { v9 = result; operator delete(__p); return v9; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source