// // DS_Dictionary::loadRootSubDictFromFile from 0x18001bc70 to 0x18001bf22 (690 bytes) // // 3 xrefs: // > CCContentManager::addDictDS @ 0x180005fd9 // > @ 0x18014cf68 // > @ 0x1801b8ae8 // // 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 11:21:26 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall DS_Dictionary::loadRootSubDictFromFile(DS_Dictionary *this, const char *a2) { __int64 v4; // rax __int64 v5; // rax struct cocos2d::CCFileUtils *v6; // rax struct cocos2d::CCFileUtils *v7; // rax void **v8; // rdx __int64 v9; // rbx size_t v10; // rax struct cocos2d::CCFileUtils *v11; // rax void **v12; // rdx __int64 buffer; // rax void *v14; // rcx __int64 v15; // rbx __int64 v16; // rax __int64 v17; // rax __int64 v18; // rax unsigned __int8 v19; // bl void *v20; // rcx unsigned int v22; // [rsp+30h] [rbp-49h] BYREF _BYTE v23[8]; // [rsp+38h] [rbp-41h] BYREF _BYTE v24[8]; // [rsp+40h] [rbp-39h] BYREF __int128 v25; // [rsp+48h] [rbp-31h] BYREF __int64 v26; // [rsp+58h] [rbp-21h] _BYTE v27[24]; // [rsp+60h] [rbp-19h] BYREF void *Block[3]; // [rsp+78h] [rbp-1h] BYREF unsigned __int64 v29; // [rsp+90h] [rbp+17h] void *v30[3]; // [rsp+98h] [rbp+1Fh] BYREF unsigned __int64 v31; // [rsp+B0h] [rbp+37h] v4 = *((_QWORD *)this + 26); if ( v4 != *((_QWORD *)this + 27) ) *((_QWORD *)this + 27) = v4; v5 = cocos2d::CCThread::CCThread((cocos2d::CCThread *)v23); sub_18001C710((char *)this + 208, v5); v6 = cocos2d::CCFileUtils::sharedFileUtils(); (*(void (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v6 + 40LL))( v6, v30, a2, 0); v22 = 0; v7 = cocos2d::CCFileUtils::sharedFileUtils(); v8 = v30; if ( v31 > 0xF ) v8 = (void **)v30[0]; v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, unsigned int *))(*(_QWORD *)v7 + 24LL))( v7, v8, "r", &v22); pugi::xml_document::load_buffer(this, &v25, v9, v22, 116, 0); if ( !(unsigned __int8)sub_180082410(&v25) || !v9 ) { sub_18003D940(Block); v10 = strlen(a2); sub_180007DF0(Block, a2, v10); v22 = 0; v11 = cocos2d::CCFileUtils::sharedFileUtils(); v12 = Block; if ( v29 > 0xF ) v12 = (void **)Block[0]; v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, unsigned int *))(*(_QWORD *)v11 + 24LL))( v11, v12, "r", &v22); buffer = pugi::xml_document::load_buffer(this, v27, v9, v22, 116, 0); v25 = *(_OWORD *)buffer; v26 = *(_QWORD *)(buffer + 16); if ( v29 > 0xF ) { v14 = Block[0]; if ( v29 + 1 >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v14); } } if ( (unsigned __int8)sub_180082410(&v25) && v9 ) { v15 = *((_QWORD *)this + 27); v16 = sub_180082A40(this, v23, "plist"); *(_QWORD *)(v15 - 8) = *(_QWORD *)sub_180082A40(v16, v24, "dict"); v17 = sub_180082A40(this, v24, "plist"); v18 = sub_1800829C0(v17, v23, "gjver"); *((_BYTE *)this + 232) = (int)sub_180082940(v18, 0) < 2; v19 = 1; } else { v19 = 0; } if ( v31 > 0xF ) { v20 = v30[0]; if ( v31 + 1 >= 0x1000 ) { v20 = *((void **)v30[0] - 1); if ( (unsigned __int64)((char *)v30[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v20); } return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source