// // cocos2d::CCArray::createWithContentsOfFileThreadSafe from 0x7c8e7c to 0x7c8f10 (148 bytes) // // 1 xrefs: // > cocos2d::CCArray::createWithContentsOfFile @ 0x7c8f16 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:28 +0000 // int __fastcall cocos2d::CCArray::createWithContentsOfFileThreadSafe(cocos2d::CCArray *this, const char *a2) { int v3; // r7 int (__fastcall *v4)(int, int *); // r9 size_t v5; // r0 size_t v6; // r4 char *v7; // r3 unsigned int v8; // r0 int v9; // r4 int v11; // [sp+0h] [bp-14h] BYREF size_t v12; // [sp+4h] [bp-10h] void *v13; // [sp+8h] [bp-Ch] v3 = cocos2d::CCFileUtils::sharedFileUtils(this); v4 = *(int (__fastcall **)(int, int *))(*(_DWORD *)v3 + 128); v11 = 0; v12 = 0; v13 = nullptr; v5 = strlen((const char *)this); v6 = v5; if ( v5 > 0xA ) { v8 = (v5 + 16) & 0xFFFFFFF0; v11 = v8 | 1; v12 = v6; v7 = (char *)operator new(v8); v13 = v7; } else { LOBYTE(v11) = 2 * v5; v7 = (char *)&v11 + 1; if ( !v5 ) goto LABEL_6; } v7 = (char *)memcpy(v7, this, v6); LABEL_6: v7[v6] = 0; v9 = v4(v3, &v11); if ( (v11 & 1) != 0 ) operator delete(v13); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source