// // cocos2d::CCFileUtilsAndroid::isFileExist from 0xb0b2c4 to 0xb0b400 (316 bytes) // // 2 xrefs: // > @ 0x827b8 // > @ 0x1217ff0 // // 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 // __int64 __fastcall cocos2d::CCFileUtilsAndroid::isFileExist(__int64 a1, const char **a2) { unsigned int v3; // w20 void *v4; // x0 FILE *v6; // x0 unsigned int *v7; // x2 int v8; // w1 __int64 v9; // [xsp+0h] [xbp+0h] BYREF __int64 v10; // [xsp+40h] [xbp+40h] BYREF if ( !*((_QWORD *)*a2 - 3) ) return 0; if ( **a2 == 47 ) { v6 = fopen(*a2, "r"); if ( v6 ) { v3 = 1; fclose(v6); return v3; } return 0; } sub_D18D28(&v10); if ( sub_D1641C((unsigned int)&v9 + 64, *(void **)(a1 + 64)) ) sub_D17B90(&v10, 0, *(_QWORD *)(a1 + 64), *(_QWORD *)(*(_QWORD *)(a1 + 64) - 24LL)); v3 = (unsigned __int8)cocos2d::ZipFile::fileExists(qword_1245848, &v10); v4 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v10 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v8 - 1; } if ( v8 <= 0 ) operator delete(v4); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source