// // sub_100237094 from 0x100237094 to 0x100237388 (756 bytes) // // 3 xrefs: // > sub_100236874 @ 0x100236b8c // > cocos2d::CCFileUtilsIOS::createCCArrayWithContentsOfFile @ 0x100236fd8 // > sub_100237094 @ 0x10023730c // // 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 // void __fastcall sub_100237094(void *a1, __int64 a2) { cocos2d::CCObject *v4; // x20 void *v5; // x21 cocos2d::CCObject *v6; // x20 void *v7; // x22 void *v8; // x23 __int64 v9; // x25 void *v10; // x26 cocos2d::CCObject *v11; // x20 void *v12; // x22 __int64 v13; // x23 void *v14; // x24 __int128 v15; // [xsp+0h] [xbp-1E0h] BYREF __int128 v16; // [xsp+10h] [xbp-1D0h] __int128 v17; // [xsp+20h] [xbp-1C0h] __int128 v18; // [xsp+30h] [xbp-1B0h] __int128 v19; // [xsp+40h] [xbp-1A0h] BYREF __int128 v20; // [xsp+50h] [xbp-190h] __int128 v21; // [xsp+60h] [xbp-180h] __int128 v22; // [xsp+70h] [xbp-170h] _BYTE v23[128]; // [xsp+88h] [xbp-158h] BYREF _BYTE v24[128]; // [xsp+108h] [xbp-D8h] BYREF if ( (unsigned int)objc_msgSend(a1, "isKindOfClass:", +[NSString class](&OBJC_CLASS___NSString, "class")) ) { v4 = (cocos2d::CCObject *)operator new(0x50u); sub_100268AB8(v4, objc_msgSend(a1, "UTF8String")); LABEL_5: sub_10024A2D0(a2, v4); cocos2d::CCObject::release(v4); return; } if ( (unsigned int)objc_msgSend(a1, "isKindOfClass:", +[NSNumber class](&OBJC_CLASS___NSNumber, "class")) ) { v5 = objc_msgSend(a1, "stringValue"); v4 = (cocos2d::CCObject *)operator new(0x50u); sub_100268AB8(v4, objc_msgSend(v5, "UTF8String")); goto LABEL_5; } if ( (unsigned int)objc_msgSend(a1, "isKindOfClass:", +[NSDictionary class](&OBJC_CLASS___NSDictionary, "class")) ) { v6 = (cocos2d::CCObject *)operator new(0x48u); cocos2d::CCDictionary::CCDictionary(); v21 = 0u; v22 = 0u; v19 = 0u; v20 = 0u; v7 = objc_msgSend(a1, "allKeys"); v8 = objc_msgSend(v7, "countByEnumeratingWithState:objects:count:", &v19, v24, 16); if ( v8 ) { v9 = *(_QWORD *)v20; do { v10 = nullptr; do { if ( *(_QWORD *)v20 != v9 ) objc_enumerationMutation(v7); sub_100236874( *(void **)(*((_QWORD *)&v19 + 1) + 8LL * (_QWORD)v10), objc_msgSend(a1, "objectForKey:", *(_QWORD *)(*((_QWORD *)&v19 + 1) + 8LL * (_QWORD)v10)), (__int64)v6); v10 = (char *)v10 + 1; } while ( v8 != v10 ); v8 = objc_msgSend(v7, "countByEnumeratingWithState:objects:count:", &v19, v24, 16); } while ( v8 ); } sub_10024A2D0(a2, v6); cocos2d::CCObject::release(v6); } else if ( (unsigned int)objc_msgSend(a1, "isKindOfClass:", +[NSArray class](&OBJC_CLASS___NSArray, "class")) ) { v11 = (cocos2d::CCObject *)operator new(0x40u); sub_10024A120(); sub_10024A0EC(v11); v15 = 0u; v16 = 0u; v17 = 0u; v18 = 0u; v12 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v15, v23, 16); if ( v12 ) { v13 = *(_QWORD *)v16; do { v14 = nullptr; do { if ( *(_QWORD *)v16 != v13 ) objc_enumerationMutation(a1); sub_100237094(*(_QWORD *)(*((_QWORD *)&v15 + 1) + 8LL * (_QWORD)v14), v11); v14 = (char *)v14 + 1; } while ( v12 != v14 ); v12 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v15, v23, 16); } while ( v12 ); } sub_10024A2D0(a2, v11); cocos2d::CCObject::release(v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source