// // cocos2d::CCFileUtilsAndroid::getWritablePath from 0xb0b12c to 0xb0b2c4 (408 bytes) // // 2 xrefs: // > @ 0x489d8 // > @ 0x1217fe0 // // 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 // char **__usercall cocos2d::CCFileUtilsAndroid::getWritablePath@( cocos2d::CCFileUtilsAndroid *this@, char **a2@) { __int64 v3; // x0 __int64 v4; // x1 void *v5; // x0 char *v6; // x0 unsigned int *v8; // x1 int v9; // w2 unsigned int *v10; // x1 int v11; // w2 char *v12; // [xsp+48h] [xbp+48h] BYREF __int64 v13; // [xsp+50h] [xbp+50h] BYREF sub_D153B8((int)&v12, &byte_F288A0); getFileDirectoryJNI(&v13); if ( *(_QWORD *)(v13 - 24) ) { v3 = sub_D15E14(&v12, &v13); sub_D15FD4(v3, &word_F2A0A8, 1); *a2 = v12; v4 = v13; v12 = &byte_124B6C8; v5 = (void *)(v13 - 24); if ( (__int64 *)(v13 - 24) == &qword_124B6B0 ) goto LABEL_3; } else { sub_D153B8((int)a2, &byte_F288A0); v4 = v13; v5 = (void *)(v13 - 24); if ( (__int64 *)(v13 - 24) == &qword_124B6B0 ) goto LABEL_3; } if ( &pthread_create ) { v8 = (unsigned int *)(v4 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v4 - 8); *(_DWORD *)(v4 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v5); LABEL_3: v6 = v12 - 24; if ( v12 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v12 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v12 - 2); *((_DWORD *)v12 - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v6); } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source