// // DS_Dictionary::addBoolValuesToMapForKeySpecial from 0x100160830 to 0x100160b6c (828 bytes) // // 1 xrefs: // > GameLevelManager::dataLoaded @ 0x1005506b7 // // 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:07 +0000 // char __fastcall DS_Dictionary::addBoolValuesToMapForKeySpecial(__int64 a1, __int64 a2, char *a3, unsigned __int8 a4) { __int64 v5; // rax char *v6; // rbx const char *v7; // r15 size_t v8; // rax size_t v9; // rbx char *v10; // r12 size_t v11; // r14 unsigned int v12; // r12d char v13; // r14 unsigned __int64 v14; // rdx char *v15; // r15 char *v16; // rax char *v17; // rax unsigned __int8 v18; // r12 char *v19; // r15 __int64 v20; // rbx char *v21; // r12 __int64 v22; // rdx char *v23; // rax char *v24; // rax char *v25; // rax char *v26; // rax __int64 *p_dst; // [rsp+0h] [rbp-70h] BYREF __int64 v29; // [rsp+8h] [rbp-68h] __int64 v30; // [rsp+10h] [rbp-60h] char *v31; // [rsp+18h] [rbp-58h] __int64 v32; // [rsp+20h] [rbp-50h] BYREF __int64 __dst; // [rsp+28h] [rbp-48h] BYREF __int64 v34; // [rsp+30h] [rbp-40h] char *v35; // [rsp+38h] [rbp-38h] char v36[41]; // [rsp+47h] [rbp-29h] BYREF v29 = a2; if ( a4 | (a3 == nullptr) || (LOBYTE(v5) = DS_Dictionary::stepIntoSubDictWithKey(a1, a3), (_BYTE)v5) ) { v31 = a3; v30 = a1; v32 = sub_1007185E0(*(_QWORD *)(a1 + 216) - 8LL); v5 = sub_100718020(&v32); if ( v5 ) { while ( 1 ) { v7 = (const char *)sub_1007184B0(&v32); v8 = strlen(v7); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) break; LOBYTE(__dst) = 2 * v8; v10 = (char *)&__dst + 1; if ( v8 ) goto LABEL_15; LABEL_16: v10[v9] = 0; v12 = (unsigned __int8)__dst; v13 = __dst & 1; if ( (__dst & 1) == 0 ) { if ( atoi((const char *)&__dst + 1) > 0 ) goto LABEL_7; v14 = v12 >> 1; v6 = (char *)&__dst + 1; if ( v14 < 4 ) goto LABEL_27; LABEL_21: v15 = &v6[v14]; v16 = v6; do { v17 = (char *)memchr(v16, 82, v14 - 3); if ( !v17 ) break; if ( *(_DWORD *)v17 == 1702125906 ) { if ( v17 != v15 && v17 - v6 != -1 ) goto LABEL_46; break; } v16 = v17 + 1; v14 = v15 - v16; } while ( v15 - v16 >= 4 ); LABEL_27: v18 = (unsigned __int8)v12 >> 1; v19 = v35; if ( !v13 ) v19 = (char *)&__dst + 1; v20 = v18; if ( v13 ) v20 = v34; if ( v20 >= 4 ) { v21 = &v19[v20]; v22 = v20; v23 = v19; do { v24 = (char *)memchr(v23, 108, v22 - 3); if ( !v24 ) break; if ( *(_DWORD *)v24 == 1701538156 ) { if ( v24 != v21 && v24 - v19 != -1 ) goto LABEL_46; break; } v23 = v24 + 1; v22 = v21 - v23; } while ( v21 - v23 >= 4 ); if ( v20 >= 6 ) { v25 = v19; do { v26 = (char *)memchr(v25, 114, v20 - 5); if ( !v26 ) break; if ( !(*(_DWORD *)v26 ^ 0x6F706572 | *((unsigned __int16 *)v26 + 2) ^ 0x7472) ) { if ( v26 != v21 && v26 - v19 != -1 ) goto LABEL_46; break; } v25 = v26 + 1; v20 = v21 - v25; } while ( v21 - v25 >= 6 ); } } p_dst = &__dst; *(_BYTE *)(sub_100163390(v29, &__dst, &unk_100A0537B, &p_dst, v36) + 56) = 1; v13 = __dst & 1; LABEL_46: if ( !v13 ) goto LABEL_7; goto LABEL_6; } v6 = v35; if ( atoi(v35) <= 0 ) { v14 = v34; if ( v34 >= 4 ) goto LABEL_21; goto LABEL_27; } LABEL_6: operator delete(v35); LABEL_7: __dst = sub_1007183B0(&v32); v32 = sub_1007183B0(&__dst); v5 = sub_100718020(&v32); if ( !v5 ) goto LABEL_48; } v11 = (v8 | 7) + 1; if ( (v8 | 7) == 0x17 ) v11 = 26; v10 = (char *)operator new(v11); v35 = v10; __dst = v11 + 1; v34 = v9; LABEL_15: memmove(v10, v7, v9); goto LABEL_16; } LABEL_48: if ( v31 ) { v5 = *(_QWORD *)(v30 + 216); if ( (unsigned __int64)(v5 - *(_QWORD *)(v30 + 208)) >= 9 ) { v5 -= 8; *(_QWORD *)(v30 + 216) = v5; } } } return v5; }