// // DS_Dictionary::addBoolValuesToMapForKeySpecial from 0x100162c4c to 0x100162ed0 (644 bytes) // // 1 xrefs: // > GameLevelManager::dataLoaded @ 0x10009b820 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall DS_Dictionary::addBoolValuesToMapForKeySpecial( DS_Dictionary *a1, std::map *a2, const char *a3, bool a4) { char *v7; // x0 __int64 v8; // x22 char *p_s; // x23 __int64 v10; // x8 char *v11; // x19 void *v12; // x0 char *v13; // x0 char *v14; // x23 __int64 v15; // x19 char *v16; // x20 __int64 v17; // x8 void *v18; // x0 char *v19; // x0 void *v20; // x0 char *v21; // x0 std::__vector_base::pointer end; // x8 const char *v24; // [xsp+0h] [xbp-90h] DS_Dictionary *v25; // [xsp+8h] [xbp-88h] char *__s; // [xsp+10h] [xbp-80h] BYREF __int64 v27; // [xsp+18h] [xbp-78h] char v28; // [xsp+27h] [xbp-69h] __int64 v29; // [xsp+28h] [xbp-68h] BYREF char v30; // [xsp+37h] [xbp-59h] BYREF char **v31; // [xsp+38h] [xbp-58h] BYREF if ( !a3 || a4 || DS_Dictionary::stepIntoSubDictWithKey(a1, a3) ) { v24 = a3; v25 = a1; v29 = sub_1003AB5F8(&a1->dictTree.__end_[-1]); if ( sub_1003AB448(&v29) ) { while ( 1 ) { v7 = (char *)sub_1003AB5AC(&v29); sub_100009900(&__s, v7); v8 = v28; if ( (v28 & 0x8000000000000000LL) != 0 ) break; if ( atoi((const char *)&__s) < 1 ) { p_s = (char *)&__s; v10 = v8; LABEL_10: if ( v10 >= 4 ) { v11 = &p_s[v10]; v12 = p_s; do { v13 = (char *)memchr(v12, 82, v10 - 3); if ( !v13 ) break; if ( *(_DWORD *)v13 == 1702125906 ) { if ( v13 != v11 && v13 - p_s != -1 ) goto LABEL_44; break; } v12 = v13 + 1; v10 = v11 - (_BYTE *)v12; } while ( v11 - (_BYTE *)v12 >= 4 ); } if ( (int)v8 >= 0 ) v14 = (char *)&__s; else v14 = __s; if ( (int)v8 >= 0 ) v15 = v8; else v15 = v27; if ( v15 >= 4 ) { v16 = &v14[v15]; v17 = v15; v18 = v14; do { v19 = (char *)memchr(v18, 108, v17 - 3); if ( !v19 ) break; if ( *(_DWORD *)v19 == 1701538156 ) { if ( v19 != v16 && v19 - v14 != -1 ) goto LABEL_44; break; } v18 = v19 + 1; v17 = v16 - (_BYTE *)v18; } while ( v16 - (_BYTE *)v18 >= 4 ); if ( v15 >= 6 ) { v20 = v14; do { v21 = (char *)memchr(v20, 114, v15 - 5); if ( !v21 ) break; if ( *(_DWORD *)v21 == 1869636978 && *((_WORD *)v21 + 2) == 29810 ) { if ( v21 != v16 && v21 - v14 != -1 ) goto LABEL_44; break; } v20 = v21 + 1; v15 = v16 - (_BYTE *)v20; } while ( v16 - (_BYTE *)v20 >= 6 ); } } v31 = &__s; *(_BYTE *)(sub_100164ADC(a2, &__s, &unk_100638BDB, &v31, &v30) + 56) = 1; LOBYTE(v8) = v28; LABEL_44: if ( (v8 & 0x80) == 0 ) goto LABEL_46; goto LABEL_45; } LABEL_46: __s = (char *)sub_1003AB594(&v29); v29 = sub_1003AB594(&__s); if ( !sub_1003AB448(&v29) ) goto LABEL_47; } p_s = __s; if ( atoi(__s) < 1 ) { v10 = v27; goto LABEL_10; } LABEL_45: operator delete(__s); goto LABEL_46; } LABEL_47: if ( v24 ) { end = v25->dictTree.__end_; if ( (unsigned __int64)((char *)end - (char *)v25->dictTree.__begin_) >= 9 ) v25->dictTree.__end_ = end - 1; } } }