// // sub_10054DBF0 from 0x10054dbf0 to 0x10054dd81 (401 bytes) // // 2 xrefs: // > GameManager::saveFinished @ 0x100376410 // > LocalLevelManager::saveFinished @ 0x1006cde6b // // 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:32:02 +0000 // void __fastcall sub_10054DBF0(__int64 a1, _QWORD *a2) { std::mutex *v3; // rbx _QWORD *v4; // r13 __int64 v5; // rsi __int64 v6; // rbx __int64 v7; // r12 unsigned __int64 v8; // r14 _QWORD *v9; // rax char *v10; // rsi __int64 v11; // r15 char v12; // al int IntegerForKey; // r13d const char *v14; // rsi void *v15; // rdi _QWORD *v16; // [rsp+8h] [rbp-38h] std::mutex *v17; // [rsp+10h] [rbp-30h] if ( *a2 != a2[1] ) { v3 = qword_100BE5588; std::mutex::lock(qword_100BE5588); v4 = operator new(0xF0u); sub_100158EB0((__int64)v4); if ( (unsigned __int8)sub_10054C9E0((__int64)v4, (__int64)a2) ) { v17 = v3; v5 = *a2; v16 = a2; if ( a2[1] != v5 ) { v6 = 1; v7 = 16; v8 = 0; do { if ( (*(_BYTE *)(v5 + v7 - 16) & 1) != 0 ) v10 = *(char **)(v5 + v7); else v10 = (char *)(v6 + v5); v11 = (__int64)v4; v12 = DS_Dictionary::stepIntoSubDictWithKey((__int64)v4, v10); IntegerForKey = -1; if ( v12 ) { IntegerForKey = DS_Dictionary::getIntegerForKey(v11, "sq"); DS_Dictionary::stepOutOfSubDict(v11); } v5 = *v16; if ( IntegerForKey == *(_DWORD *)(*v16 + v7 + 8) ) { if ( (*(_BYTE *)(v5 + v7 - 16) & 1) != 0 ) v14 = *(const char **)(v5 + v7); else v14 = (const char *)(v6 + v5); DS_Dictionary::removeKey_1(v11, v14); v9 = v16; v5 = *v16; v4 = (_QWORD *)v11; } else { v4 = (_QWORD *)v11; v9 = v16; } ++v8; v6 += 32; v7 += 32; } while ( v8 < (v9[1] - v5) >> 5 ); } v3 = v17; sub_10054CEA0((__int64)v4); } v15 = (void *)v4[26]; if ( v15 ) { v4[27] = v15; operator delete(v15); } pugi::xml_document::dxml_document(v4); operator delete(v4); std::mutex::unlock(v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source