// // sub_100236D7C from 0x100236d7c to 0x100236ee8 (364 bytes) // // 3 xrefs: // > cocos2d::CCFileUtilsIOS::writeToFile @ 0x100236d30 // > sub_100236D7C @ 0x100236dfc // > sub_1002373C8 @ 0x1002374e8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // NSString *__fastcall sub_100236D7C(__int64 a1, const void *a2, void *a3) { NSString *result; // x0 NSString *v6; // x20 _QWORD *v7; // x0 _QWORD *v8; // x22 NSString *v9; // x21 __int64 v10; // x0 __int64 v11; // x22 cocos2d::CCString *v12; // x0 NSString *v13; // x22 unsigned int *v14; // x9 __int64 v15; // x8 _QWORD *v16; // x22 unsigned __int64 v17; // x23 result = +[NSString stringWithCString:encoding:](&OBJC_CLASS___NSString, "stringWithCString:encoding:", a1, 4); if ( a2 ) { v6 = result; v7 = __dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0); if ( v7 ) { v8 = v7; v9 = (NSString *)+[NSMutableDictionary dictionary](&OBJC_CLASS___NSMutableDictionary, "dictionary"); v10 = v8[7]; if ( v10 ) { do { v11 = *(_QWORD *)(v10 + 288); sub_100236D7C(v10, *(_QWORD *)(v10 + 264), v9); v10 = v11; } while ( v11 ); } return (NSString *)objc_msgSend(a3, "setObject:forKey:", v9, v6); } v12 = (cocos2d::CCString *)__dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( v12 ) { v9 = +[NSString stringWithCString:encoding:]( &OBJC_CLASS___NSString, "stringWithCString:encoding:", cocos2d::CCString::getCString(v12), 4); return (NSString *)objc_msgSend(a3, "setObject:forKey:", v9, v6); } result = (NSString *)__dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCArray, 0); if ( result ) { v13 = result; v9 = (NSString *)+[NSMutableArray array](&OBJC_CLASS___NSMutableArray, "array"); v14 = (unsigned int *)v13[7]; v15 = *v14; if ( (_DWORD)v15 ) { v16 = *((_QWORD **)v14 + 2); v17 = (unsigned __int64)&v16[v15 - 1]; do { if ( !*v16 ) break; sub_1002373C8(*v16++, v9); } while ( (unsigned __int64)v16 <= v17 ); } return (NSString *)objc_msgSend(a3, "setObject:forKey:", v9, v6); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source