// // DS_Dictionary::loadRootSubDictFromCompressedFile from 0x10015a240 to 0x10015a55a (794 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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 12:25:05 +0000 // __int64 __fastcall DS_Dictionary::loadRootSubDictFromCompressedFile( _QWORD *a1, const std::string::value_type *a2, unsigned int a3) { const std::string::value_type *v4; // r15 _QWORD *v5; // r13 char *v6; // r12 unsigned __int64 v7; // rax __int64 v8; // rbx _BYTE *v9; // r13 signed __int64 v10; // r12 __int64 v11; // r15 __int64 v12; // rax unsigned __int64 v13; // rbx _QWORD *v14; // r14 _QWORD *v15; // rax const std::string::value_type *data; // rsi __int64 v17; // rax std::string::pointer v18; // rsi std::string::value_type *v19; // r15 std::string::pointer v20; // rdx std::string::size_type size; // rcx __int128 v23; // [rsp+0h] [rbp-D0h] BYREF int v24; // [rsp+10h] [rbp-C0h] __int128 v25; // [rsp+20h] [rbp-B0h] BYREF int v26; // [rsp+30h] [rbp-A0h] char *v27; // [rsp+38h] [rbp-98h] std::string v28; // [rsp+40h] [rbp-90h] BYREF __int64 v29; // [rsp+58h] [rbp-78h] BYREF const std::string::value_type *v30; // [rsp+60h] [rbp-70h] std::string v31; // [rsp+68h] [rbp-68h] BYREF _QWORD *v32; // [rsp+80h] [rbp-50h] std::string v33; // [rsp+88h] [rbp-48h] BYREF unsigned int v34; // [rsp+A4h] [rbp-2Ch] v4 = a2; v5 = a1; a1[27] = a1[26]; pugi::xml_node::xml_node(&v31); v6 = (char *)a1[27]; v7 = a1[28]; if ( (unsigned __int64)v6 >= v7 ) { v30 = a2; v32 = a1; v9 = (_BYTE *)a1[26]; v10 = v6 - v9; v11 = v10 >> 3; if ( (unsigned __int64)((v10 >> 3) + 1) >> 61 ) sub_100162D00(); v12 = v7 - (_QWORD)v9; v13 = v12 >> 2; if ( v12 >> 2 <= (unsigned __int64)((v10 >> 3) + 1) ) v13 = (v10 >> 3) + 1; if ( (unsigned __int64)v12 >= 0x7FFFFFFFFFFFFFF8LL ) v13 = 0x1FFFFFFFFFFFFFFFLL; v34 = a3; if ( v13 ) { if ( v13 > 0x1FFFFFFFFFFFFFFFLL ) sub_10001ADB0(); v14 = operator new(8 * v13); } else { v14 = nullptr; } v27 = (char *)&v14[v13]; v14[v11] = v31.__r_.__value_.__r.__words[0]; v8 = (__int64)&v14[v11 + 1]; memcpy(v14, v9, v10); v15 = v32; v32[26] = v14; v15[27] = v8; v15[28] = v27; if ( v9 ) operator delete(v9); v5 = v32; a3 = v34; v4 = v30; } else { *(_QWORD *)v6 = v31.__r_.__value_.__r.__words[0]; v8 = (__int64)(v6 + 8); } v5[27] = v8; *(_WORD *)&v31.__r_.__value_.__l.0 = 0; FileOperation::getFilePath(&v28); std::string::append(&v28, v4); if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) != 0 ) data = v28.__r_.__value_.__l.__data_; else data = v28.__r_.__value_.__s.__data_; std::string::assign(&v31, data); v29 = 0; v17 = cocos2d::CCFileUtils::sharedFileUtils(); if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 ) v18 = v31.__r_.__value_.__l.__data_; else v18 = v31.__r_.__value_.__s.__data_; v19 = (std::string::value_type *)(*(__int64 (__fastcall **)(__int64, std::string::pointer, const char *, __int64 *))(*(_QWORD *)v17 + 32LL))( v17, v18, "r", &v29); sub_10071DD30(&v23); if ( v19 ) { cocos2d::ZipUtils::decompressString2(&v33, v19); if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) { v20 = v33.__r_.__value_.__l.__data_; size = v33.__r_.__value_.__l.__size_; } else { size = *(_BYTE *)&v33.__r_.__value_.__l.0 >> 1; v20 = v33.__r_.__value_.__s.__data_; } sub_10071EEE0(&v25, v5, v20, size, 116, 0); v24 = v26; v23 = v25; if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v33.__r_.__value_.__l.__data_); } LOBYTE(a3) = sub_10071DD50(&v23) & (v19 != nullptr); if ( (_BYTE)a3 ) { v33.__r_.__value_.__r.__words[0] = sub_100718180(v5, "plist"); *(_QWORD *)(v5[27] - 8LL) = sub_100718180(&v33, "dict"); operator delete[](v19); *(_QWORD *)&v25 = sub_100718180(v5, "plist"); v33.__r_.__value_.__r.__words[0] = sub_100718310(&v25, "gjver"); *((_BYTE *)v5 + 232) = (int)sub_1007173F0(&v33, 0) < 2; } else if ( v19 ) { operator delete[](v19); } if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v28.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v31.__r_.__value_.__l.__data_); return a3; }