// // cocos2d::CCFileUtils::removeFullPath from 0x10043c680 to 0x10043c7c0 (320 bytes) // // 2 xrefs: // > @ 0x100937fc0 // > @ 0x100980560 // // 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 cocos2d::CCFileUtils::removeFullPath(cocos2d::CCFileUtils *a1, const char *a2) { double v2; // xmm0_8 size_t v3; // rax size_t v4; // r15 cocos2d::CCFileUtils *v5; // r14 char *v6; // r13 size_t v7; // r14 __int64 v8; // r15 cocos2d::CCFileUtils_vtbl *v9; // rcx cocos2d::CCFileUtils_vtbl *v10; // rax cocos2d::CCFileUtils_vtbl *v11; // rcx bool v12; // zf _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v3 = strlen(a2); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v4 = v3; v5 = a1 + 11; if ( v3 >= 0x17 ) { v7 = 26; if ( (v3 | 7) != 0x17 ) v7 = (v3 | 7) + 1; v6 = (char *)operator new(v7); __p = v6; __dst[0] = v7 + 1; v5 = a1 + 11; __dst[1] = v4; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v3; v6 = (char *)__dst + 1; if ( v3 ) LABEL_8: memcpy(v6, a2, v4); v6[v4] = 0; v8 = sub_10031E0A0((__int64)v5, (unsigned __int8 *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( (cocos2d::CCFileUtils *)v8 != &a1[12] ) { v9 = *(cocos2d::CCFileUtils_vtbl **)(v8 + 8); if ( v9 ) { do { v10 = v9; v9 = (cocos2d::CCFileUtils_vtbl *)v9->getClassTypeInfo; } while ( v9 ); } else { v11 = (cocos2d::CCFileUtils_vtbl *)v8; do { v10 = (cocos2d::CCFileUtils_vtbl *)v11->~CCFileUtils_0; v12 = v10->getClassTypeInfo == (__int64 (__cdecl *)(cocos2d::TypeInfo *__hidden))v11; v11 = v10; } while ( !v12 ); } if ( v5->__vftable == (cocos2d::CCFileUtils_vtbl *)v8 ) v5->__vftable = v10; --a1[13].__vftable; sub_100165F60((__int64 *)a1[12].__vftable, (__int64 *)v8); if ( (*(_BYTE *)(v8 + 56) & 1) != 0 ) operator delete(*(void **)(v8 + 72)); if ( (*(_BYTE *)(v8 + 32) & 1) != 0 ) operator delete(*(void **)(v8 + 48)); operator delete((void *)v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source