// // cocos2d::CCUserDefault::initXMLFilePath from 0xb1f674 to 0xb1f8ec (632 bytes) // // 2 xrefs: // > cocos2d::CCUserDefault::sharedUserDefault @ 0xb1f8fc // > @ 0x5fe68 // // 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 cocos2d::CCUserDefault::initXMLFilePath() { __int64 *v0; // x0 __int64 *v1; // x0 __int64 *v2; // x0 void *v3; // x0 void *v4; // x0 void *v5; // x0 void *v6; // x0 unsigned int *v7; // x1 int v8; // w2 unsigned int *v9; // x1 int v10; // w2 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 __int64 v15; // [xsp+68h] [xbp+68h] BYREF __int64 v16; // [xsp+70h] [xbp+70h] BYREF __int64 v17; // [xsp+78h] [xbp+78h] BYREF __int64 v18; // [xsp+80h] [xbp+80h] BYREF if ( !cocos2d::CCUserDefault::m_sbIsFilePathInitialized ) { getPackageNameJNI((__int64)&v18); v0 = (__int64 *)sub_D17B90(&v18, 0, "/data/data/", 11); v17 = *v0; *v0 = (__int64)&byte_124B6C8; v1 = (__int64 *)sub_D15FD4(&v17, &word_F2A0A8, 1); v16 = *v1; *v1 = (__int64)&byte_124B6C8; v2 = (__int64 *)sub_D15FD4(&v16, "UserDefault.xml", 15); v15 = *v2; *v2 = (__int64)&byte_124B6C8; sub_D15E14(&cocos2d::CCUserDefault::m_sFilePath, &v15); v3 = (void *)(v15 - 24); if ( (__int64 *)(v15 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v15 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *(_DWORD *)(v15 - 8); *(_DWORD *)(v15 - 8) = v8 - 1; } if ( v8 <= 0 ) operator delete(v3); } v4 = (void *)(v16 - 24); if ( (__int64 *)(v16 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v16 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *(_DWORD *)(v16 - 8); *(_DWORD *)(v16 - 8) = v10 - 1; } if ( v10 <= 0 ) operator delete(v4); } v5 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v17 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v5); } v6 = (void *)(v18 - 24); if ( (__int64 *)(v18 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v18 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v18 - 8); *(_DWORD *)(v18 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v6); } cocos2d::CCUserDefault::m_sbIsFilePathInitialized = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source