// // cocos2d::extension::AssetsManager::uncompress from 0x7a5a60 to 0x7a5bec (396 bytes) // // 1 xrefs: // > cocos2d::extension::assetsManagerDownloadAndUncompress @ 0x7a5d6e // // 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::uncompress(cocos2d::extension::AssetsManager *this) { const char *v1; // r1 cocos2d *v2; // r0 cocos2d *v3; // r0 cocos2d *v4; // r4 void *v5; // r1 void *v6; // r1 const char *v7; // r1 void *v8; // r1 void *v9; // r1 unsigned int v10; // r11 int v11; // r4 const char *v12; // r0 void *v13; // r1 FILE *v14; // r10 _BYTE *v15; // r3 signed int CurrentFile; // r0 unsigned __int8 *v18; // [sp+14h] [bp-20h] unsigned int v20; // [sp+2Ch] [bp-8h] BYREF unsigned int v21[3]; // [sp+34h] [bp+0h] BYREF unsigned int v22[2]; // [sp+40h] [bp+Ch] BYREF const char *v23; // [sp+48h] [bp+14h] int v24; // [sp+4Ch] [bp+18h] BYREF char v25[512]; // [sp+9Ch] [bp+68h] BYREF _BYTE v26[8164]; // [sp+29Ch] [bp+268h] BYREF v18 = (unsigned __int8 *)this + 4; std::operator+(v21, (unsigned __int8 *)this + 4, "cocos2dx-update-temp-package.zip"); if ( (v21[0] & 1) != 0 ) v2 = (cocos2d *)v21[2]; else v2 = (cocos2d *)((char *)v21 + 1); v3 = (cocos2d *)cocos2d::unzOpen(v2, v1); v4 = v3; if ( !v3 ) goto LABEL_19; if ( cocos2d::unzGetGlobalInfo(v3, &v20) ) { LABEL_16: cocos2d::unzClose(v4, v5); LABEL_19: v11 = 0; goto LABEL_33; } v10 = 0; while ( v10 < v20 ) { if ( cocos2d::unzGetCurrentFileInfo(v4, &v24, v25, 512, 0, 0, 0, 0) ) goto LABEL_16; std::operator+(v22, v18, v25); if ( v25[strlen(v25) - 1] != 47 ) { if ( !cocos2d::unzOpenCurrentFile(v4, v6) ) { if ( (v22[0] & 1) != 0 ) v12 = v23; else v12 = (char *)v22 + 1; v14 = fopen(v12, "wb"); if ( v14 ) { v15 = v26; while ( 1 ) { CurrentFile = cocos2d::unzReadCurrentFile(v4, v26, &stru_1FFC.st_value, (unsigned int)v15); v13 = (void *)CurrentFile; if ( CurrentFile < 0 ) break; if ( !CurrentFile ) { fclose(v14); goto LABEL_12; } fwrite(v26, CurrentFile, 1u, v14); } } cocos2d::unzCloseCurrentFile(v4, v13); } LABEL_18: cocos2d::unzClose(v4, v8); std::string::~string((int)v22); goto LABEL_19; } if ( (v22[0] & 1) != 0 ) v7 = v23; else v7 = (char *)v22 + 1; if ( !cocos2d::extension::AssetsManager::createDirectory(this, v7) ) goto LABEL_18; LABEL_12: cocos2d::unzCloseCurrentFile(v4, v8); if ( ++v10 < v20 && cocos2d::unzGoToNextFile(v4, v9) ) goto LABEL_18; std::string::~string((int)v22); } v11 = 1; LABEL_33: std::string::~string((int)v21); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source