// // cocos2d::CCFileUtils::getFileData from 0xd76368 to 0xd764e4 (380 bytes) // // 2 xrefs: // > @ 0x67f00 // > @ 0x152d8f0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:08:03 +0000 // void *__fastcall cocos2d::CCFileUtils::getFileData( cocos2d::CCFileUtils *this, char *a2, const char *a3, unsigned __int64 *a4) { __int64 v7; // x3 char *v8; // x0 FILE *v9; // x0 FILE *v10; // x19 void *v11; // x22 size_t v13; // x0 __int64 v14; // x0 __int64 v15[2]; // [xsp+40h] [xbp+40h] BYREF char *filename; // [xsp+50h] [xbp+50h] __int64 v17; // [xsp+58h] [xbp+58h] v7 = _stack_chk_guard; *a4 = 0; v17 = v7; (*(void (__fastcall **)(__int64 *__return_ptr, cocos2d::CCFileUtils *, char *, _QWORD))(*(_QWORD *)this + 48LL))( v15, this, a2, 0); v8 = (char *)v15 + 1; if ( (v15[0] & 1) != 0 ) v8 = filename; v9 = fopen(v8, a3); v10 = v9; if ( v9 ) { fseek(v9, 0, 2); *a4 = ftell(v10); fseek(v10, 0, 0); v11 = (void *)operator new[](*a4); *a4 = fread(v11, 1u, *a4, v10); fclose(v10); if ( (v15[0] & 1) != 0 ) LABEL_5: operator delete(filename); } else { if ( (v15[0] & 1) != 0 ) operator delete(filename); v15[0] = 0; v15[1] = 0; filename = nullptr; std::string::__init(v15, "Get data from file(", 0x13u); v13 = strlen(a2); v14 = std::string::append((__int64)v15, a2, v13); std::string::append(v14, ") failed!", 9u); v11 = nullptr; if ( (v15[0] & 1) != 0 ) goto LABEL_5; } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source