// // cocos2d::CCFileUtils::getNewFilename from 0xd74d8c to 0xd74ed0 (324 bytes) // // 3 xrefs: // > @ 0xad920 // > @ 0x152d998 // > @ 0x152de58 // // 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:08:02 +0000 // __int64 *__usercall cocos2d::CCFileUtils::getNewFilename@( cocos2d::CCFileUtils *this@, char *a2@, __int64 *a3@) { char *v3; // x22 __int64 v5; // x23 size_t v6; // x0 cocos2d::CCString *v7; // x20 char *CString; // x0 size_t v9; // x0 size_t v10; // x20 void *v11; // x3 unsigned __int64 v13; // x0 __int64 v14; // x23 __int64 v15; // x0 __int64 v16[2]; // [xsp+40h] [xbp+40h] BYREF void *v17; // [xsp+50h] [xbp+50h] v3 = a2; v5 = *((_QWORD *)this + 1); if ( !v5 ) goto LABEL_6; v16[0] = 0; v16[1] = 0; v17 = nullptr; v6 = strlen(a2); std::string::__init(v16, v3, v6); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v5, (__int64)v16); if ( (v16[0] & 1) != 0 ) operator delete(v17); if ( v7 && (unsigned int)cocos2d::CCString::length(v7) ) { CString = cocos2d::CCString::getCString(v7); *a3 = 0; v3 = CString; } else { LABEL_6: *a3 = 0; CString = v3; } a3[1] = 0; a3[2] = 0; v9 = strlen(CString); v10 = v9; if ( v9 > 0x16 ) { v13 = (v9 + 16) & 0xFFFFFFFFFFFFFFF0LL; v14 = v13 | 1; v15 = operator new(v13); *a3 = v14; v11 = (void *)v15; a3[2] = v15; a3[1] = v10; goto LABEL_11; } *(_BYTE *)a3 = 2 * v9; v11 = (char *)a3 + 1; if ( v9 ) LABEL_11: v11 = memcpy(v11, v3, v10); *((_BYTE *)v11 + v10) = 0; return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source