// // cocos2d::CCString::CCString from 0xd46348 to 0xd46420 (216 bytes) // // 2 xrefs: // > @ 0x69358 // > @ 0x77638 // // 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:34 +0000 // // Alternative name is '_ZN7cocos2d8CCStringC2ERKS0_' __int64 __fastcall cocos2d::CCString::CCString(cocos2d::CCString *this, const cocos2d::CCString *a2) { char *CString; // x0 char *v4; // x23 size_t v5; // x0 size_t v6; // x20 __int64 result; // x0 _BYTE *v8; // x3 unsigned __int64 v9; // x0 __int64 v10; // x22 __int64 v11; // x0 cocos2d::CCObject::CCObject((__int64)this); *(_QWORD *)this = &off_15164B0; CString = cocos2d::CCString::getCString(a2); *((_QWORD *)this + 7) = 0; *((_QWORD *)this + 8) = 0; v4 = CString; *((_QWORD *)this + 9) = 0; v5 = strlen(CString); v6 = v5; if ( v5 > 0x16 ) { v9 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL; v10 = v9 | 1; v11 = operator new(v9); *((_QWORD *)this + 9) = v11; *((_QWORD *)this + 7) = v10; v8 = (_BYTE *)v11; *((_QWORD *)this + 8) = v6; } else { result = (unsigned int)(2 * v5); *((_BYTE *)this + 56) = result; v8 = (char *)this + 57; if ( !v6 ) { *v8 = 0; return result; } } result = (__int64)memcpy(v8, v4, v6); *(_BYTE *)(result + v6) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source