// // cocos2d::CCFileUtils::init from 0xb08fcc to 0xb09110 (324 bytes) // // 3 xrefs: // > cocos2d::CCFileUtilsAndroid::init @ 0xb0b934 // > @ 0x6d710 // > @ 0x1217b50 // // 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 // bool cocos2d::CCFileUtils::init(cocos2d::CCFileUtils *a1) { cocos2d::CCFileUtils *v1; // x1 cocos2d::CCFileUtils *v2; // x21 cocos2d::CCFileUtils_vtbl *v4; // x2 cocos2d::CCFileUtils_vtbl *v5; // x0 cocos2d::CCFileUtils *v6; // x19 cocos2d::CCFileUtils_vtbl *v7; // x0 char *v8; // x1 char *v9; // x0 unsigned int *v11; // x1 int v12; // w2 char *v13; // [xsp+40h] [xbp+40h] BYREF v1 = a1 + 8; v2 = a1 + 5; v4 = a1[7].__vftable; v5 = a1[6].__vftable; if ( v5 == v4 ) { std::vector::_M_emplace_back_aux((__int64)v2, (__int64)v1); } else { if ( v5 ) { sub_D18D28(v5); v5 = v2[1].__vftable; } v2[1].__vftable = (cocos2d::CCFileUtils_vtbl *)&v5->~CCFileUtils; } v6 = a1 + 2; sub_D153B8((int)&v13, &byte_F288A0); v7 = v6[1].__vftable; if ( v7 == v6[2].__vftable ) { std::vector::_M_emplace_back_aux((__int64)v6, &v13); v8 = v13; } else { v8 = v13; if ( v7 ) { v7->getClassTypeInfo = (__int64 (__fastcall *)(cocos2d::TypeInfo *__hidden))v13; v8 = &byte_124B6C8; v13 = &byte_124B6C8; } v6[1].__vftable = (cocos2d::CCFileUtils_vtbl *)&v7->~CCFileUtils; } v9 = v8 - 24; if ( v8 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v8 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v8 - 2); *((_DWORD *)v8 - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v9); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source