// // sub_18003D940 from 0x18003d940 to 0x18003da7b (315 bytes) // // 6 xrefs: // > DS_Dictionary::copyFile @ 0x18001908d // > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001b9bb // > DS_Dictionary::loadRootSubDictFromFile @ 0x18001bd59 // > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d555 // > DS_Dictionary::saveRootSubDictToFile @ 0x18001dd3e // > @ 0x1801bb254 // // 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:37 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall sub_18003D940(__int64 a1) { struct cocos2d::CCFileUtils *v2; // rax __int64 v3; // rdi unsigned __int64 v4; // rdx _QWORD *v5; // rcx _BYTE *v6; // rcx void *Block; // [rsp+40h] [rbp-38h] BYREF unsigned __int64 v9; // [rsp+58h] [rbp-20h] *(_OWORD *)a1 = 0; *(_QWORD *)(a1 + 16) = 0; *(_QWORD *)(a1 + 24) = 15; *(_BYTE *)a1 = 0; v2 = cocos2d::CCFileUtils::sharedFileUtils(); v3 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **))(*(_QWORD *)v2 + 136LL))(v2, &Block); if ( a1 != v3 ) { v4 = *(_QWORD *)(a1 + 24); if ( v4 > 0xF ) { v5 = *(_QWORD **)a1; if ( v4 + 1 >= 0x1000 ) { if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F ) goto LABEL_11; v5 = (_QWORD *)*(v5 - 1); } j_j_free_0(v5); } *(_QWORD *)(a1 + 16) = 0; *(_QWORD *)(a1 + 24) = 15; *(_BYTE *)a1 = 0; *(_OWORD *)a1 = *(_OWORD *)v3; *(_OWORD *)(a1 + 16) = *(_OWORD *)(v3 + 16); *(_QWORD *)(v3 + 16) = 0; *(_QWORD *)(v3 + 24) = 15; *(_BYTE *)v3 = 0; } if ( v9 > 0xF ) { v6 = Block; if ( v9 + 1 >= 0x1000 ) { v6 = *((_BYTE **)Block - 1); if ( (unsigned __int64)((_BYTE *)Block - v6 - 8) > 0x1F ) LABEL_11: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v6); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source