// // cocos2d::CCFileUtils::removeFullPath from 0xb06b40 to 0xb06cf0 (432 bytes) // // 3 xrefs: // > @ 0x82bf0 // > @ 0x1217ac8 // > @ 0x1217f88 // // 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::CCFileUtils::removeFullPath(cocos2d::CCFileUtils *a1, const char *a2) { cocos2d::CCFileUtils *v3; // x22 cocos2d::CCFileUtils *v4; // x24 char *v5; // x0 __int64 v6; // x0 __int64 v7; // x1 _QWORD *v8; // x19 void *v9; // x0 __int64 v10; // x1 void *v11; // x0 unsigned int *v12; // x1 int v13; // w2 unsigned int *v14; // x1 int v15; // w2 unsigned int *v16; // x1 int v17; // w2 _DWORD *v18; // [xsp+50h] [xbp+50h] BYREF v3 = a1 + 9; sub_D153B8((int)&v18, (char *)a2); v4 = (cocos2d::CCFileUtils *)std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::find( (__int64)&a1[9], (const void **)&v18); v5 = (char *)(v18 - 6); if ( v18 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v12 = v18 - 2; do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *(v18 - 2); *(v18 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v5); } if ( &a1[10] != v4 ) { v6 = sub_CFAF34(v4, &a1[10]); v7 = *(_QWORD *)(v6 + 40); v8 = (_QWORD *)v6; v9 = (void *)(v7 - 24); if ( (__int64 *)(v7 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v7 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v7 - 8); *(_DWORD *)(v7 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v9); } v10 = v8[4]; v11 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v10 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v17 - 1; } if ( v17 <= 0 ) operator delete(v11); } operator delete(v8); --v3[5].__vftable; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source