// // DS_Dictionary::loadRootSubDictFromCompressedFile from 0xdba940 to 0xdbabbc (636 bytes) // // 2 xrefs: // > GManager::tryLoadData @ 0x6a9220 // > @ 0xfb980 // // 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:44 +0000 // __int64 __fastcall DS_Dictionary::loadRootSubDictFromCompressedFile(DS_Dictionary *this, char *a2, unsigned __int8 a3) { unsigned int v3; // w22 __int64 v6; // x1 __int64 v7; // x0 _QWORD *v8; // x1 size_t v9; // x0 char *v10; // x1 __int64 *v11; // x0 __int64 v12; // x0 char *v13; // x1 cocos2d::ZipUtils *v14; // x19 __int64 v15; // x2 char *v16; // x1 __int64 v17; // x23 unsigned int v18; // w22 bool v20[8]; // [xsp+58h] [xbp+58h] BYREF __int64 v21[2]; // [xsp+60h] [xbp+60h] BYREF void *v22; // [xsp+70h] [xbp+70h] char *v23[2]; // [xsp+78h] [xbp+78h] BYREF char *v24; // [xsp+88h] [xbp+88h] _QWORD v25[2]; // [xsp+90h] [xbp+90h] BYREF int v26; // [xsp+A0h] [xbp+A0h] __int64 v27[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v28; // [xsp+B8h] [xbp+B8h] _QWORD v29[2]; // [xsp+C0h] [xbp+C0h] BYREF int v30; // [xsp+D0h] [xbp+D0h] v3 = a3; v6 = *((_QWORD *)this + 26); v7 = *((_QWORD *)this + 27); if ( v6 != v7 ) *((_QWORD *)this + 27) = v7 + 8 * ~((unsigned __int64)(v7 - 8 - v6) >> 3); pugi::xml_node::xml_node((pugi::xml_node *)v29); v8 = *((_QWORD **)this + 27); if ( (unsigned __int64)v8 >= *((_QWORD *)this + 28) ) { std::vector::__push_back_slow_path((char **)this + 26, v29); } else { if ( v8 ) { *v8 = v29[0]; v8 = *((_QWORD **)this + 27); } *((_QWORD *)this + 27) = v8 + 1; } v21[0] = 0; v21[1] = 0; v22 = nullptr; std::string::__init(v21, &byte_11B8890, 0); FileOperation::getFilePath(v23); v9 = strlen(a2); std::string::append((__int64)v23, a2, v9); v10 = (char *)v23 + 1; if ( ((__int64)v23[0] & 1) != 0 ) v10 = v24; v11 = std::string::assign(v21, v10); *(_QWORD *)v20 = 0; v12 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)v11); v13 = (char *)v21 + 1; if ( (v21[0] & 1) != 0 ) v13 = (char *)v22; v14 = (cocos2d::ZipUtils *)(*(__int64 (__fastcall **)(__int64, char *, char *, bool *))(*(_QWORD *)v12 + 32LL))( v12, v13, "r", v20); pugi::xml_parse_result::xml_parse_result((pugi::xml_parse_result *)v25); if ( v14 ) { cocos2d::ZipUtils::decompressString2(v27, v14, (unsigned __int8 *)v3, *(int *)v20, 11); if ( (v27[0] & 1) != 0 ) { v16 = (char *)v28; v15 = v27[1]; } else { v15 = LOBYTE(v27[0]) >> 1; v16 = (char *)v27 + 1; } pugi::xml_document::load_buffer(v29, this, v16, v15, 116, 0); v25[0] = v29[0]; v25[1] = v29[1]; v26 = v30; if ( (v27[0] & 1) != 0 ) operator delete(v28); if ( !(unsigned __int8)pugi::xml_parse_result::operator bool(v25) ) { v18 = 0; operator delete[](v14); if ( ((__int64)v23[0] & 1) == 0 ) goto LABEL_19; goto LABEL_24; } v17 = *((_QWORD *)this + 27); v18 = 1; v29[0] = pugi::xml_node::child(this, "plist"); *(_QWORD *)(v17 - 8) = pugi::xml_node::child((pugi::xml_node *)v29, "dict"); operator delete[](v14); DS_Dictionary::checkCompatibility(this); } else { v18 = 0; pugi::xml_parse_result::operator bool(v25); } if ( ((__int64)v23[0] & 1) == 0 ) goto LABEL_19; LABEL_24: operator delete(v24); LABEL_19: if ( (v21[0] & 1) != 0 ) operator delete(v22); return v18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source