// // cocos2d::extension::AssetsManager::update from 0x7a5dc4 to 0x7a5ed4 (272 bytes) // // 0 xrefs: // // 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 11:59:57 +0000 // int __fastcall cocos2d::extension::AssetsManager::update(int this, int a2, int a3, int a4) { void *v4; // r4 int v5; // r3 int v7; // r3 int v8; // r3 int v9; // r1 bool v10; // cc int v11; // r3 int v12; // r2 int v13; // lr char *v14; // r6 int v15; // r10 int v16; // r8 int v17; // t1 int v18; // t1 const char *v19; // r0 int v20; // r1 int v21; // r2 pthread_t *v22; // r0 int v23; // [sp+0h] [bp-10h] BYREF int v24; // [sp+4h] [bp-Ch] int v25; // [sp+8h] [bp-8h] int v26; // [sp+Ch] [bp-4h] v23 = this; v24 = a2; v25 = a3; v26 = a4; v4 = (void *)this; if ( !*(_DWORD *)(this + 72) ) { v5 = *(unsigned __int8 *)(this + 40); if ( (v5 & 1) != 0 ? *(_DWORD *)(this + 44) : v5 >> 1 ) { v7 = *(unsigned __int8 *)(this + 28); if ( (v7 & 1) != 0 ) { v8 = *(_DWORD *)(this + 32); if ( !v8 ) return this; v9 = *(_DWORD *)(this + 36); } else { v8 = v7 >> 1; if ( !v8 ) return this; v9 = this + 29; } v10 = v8 <= 3; if ( (unsigned int)v8 > 3 ) { v11 = v8 + v9; if ( !v10 ) { for ( this = v9; ; this = v13 ) { v12 = this; if ( this == v11 - 3 ) break; v13 = this + 1; if ( *(_BYTE *)this == 46 ) { v14 = "zip"; v15 = this + 3; while ( this != v15 ) { v17 = (unsigned __int8)*v14++; v16 = v17; v18 = *(unsigned __int8 *)++this; if ( v18 != v16 ) goto LABEL_16; } goto LABEL_22; } LABEL_16: ; } } v12 = v11; LABEL_22: if ( v12 != v11 && v12 - v9 != -1 ) { this = (*(int (__fastcall **)(void *))(*(_DWORD *)v4 + 8))(v4); if ( this ) { v19 = (const char *)cocos2d::CCUserDefault::sharedUserDefault((cocos2d::CCUserDefault *)this); cocos2d::CCUserDefault::getStringForKey((cocos2d::CCUserDefault *)&v23, v19); if ( (*((_BYTE *)v4 + 52) & 1) != 0 ) { **((_BYTE **)v4 + 15) = 0; *((_DWORD *)v4 + 14) = 0; } else { *((_BYTE *)v4 + 53) = 0; *((_BYTE *)v4 + 52) = 0; } std::string::reserve((int *)v4 + 13, 0); v20 = v24; v21 = v25; *((_DWORD *)v4 + 13) = v23; *((_DWORD *)v4 + 14) = v20; *((_DWORD *)v4 + 15) = v21; v23 = 0; v24 = 0; v25 = 0; std::string::~string((int)&v23); v22 = (pthread_t *)operator new(4u); *v22 = 0; *((_DWORD *)v4 + 18) = v22; return pthread_create( v22, nullptr, (void *(*)(void *))cocos2d::extension::assetsManagerDownloadAndUncompress, v4); } } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source