// // DS_Dictionary::addBoolValuesToMapForKeySpecial from 0x180018d60 to 0x1800190dc (892 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801ae914 // // 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 // // Hidden C++ exception states: #wind=1 char __fastcall DS_Dictionary::addBoolValuesToMapForKeySpecial(DS_Dictionary *a1, _QWORD *a2, const char *a3, char a4) { unsigned __int64 i; // rax _BYTE *v6; // rax size_t v7; // r8 const char *v8; // rcx int v9; // eax unsigned __int64 v10; // r13 char *v11; // r15 char **v12; // rbx unsigned __int64 v13; // r14 char *v14; // rdi char *v15; // r9 __int64 v16; // rdx unsigned __int8 v17; // cl int v18; // eax char **v19; // rbx char *v20; // r9 __int64 v21; // rdx unsigned __int8 v22; // cl int v23; // eax char **v24; // rbx char *v25; // r9 __int64 v26; // rcx unsigned __int8 v27; // dl int v28; // eax char *v29; // rax __int64 v30; // rax __int64 v32; // [rsp+20h] [rbp-60h] BYREF _QWORD *v33; // [rsp+28h] [rbp-58h] const char *v34; // [rsp+30h] [rbp-50h] _BYTE v35[8]; // [rsp+38h] [rbp-48h] BYREF _BYTE v36[8]; // [rsp+40h] [rbp-40h] BYREF _BYTE v37[16]; // [rsp+48h] [rbp-38h] BYREF char *String[2]; // [rsp+58h] [rbp-28h] BYREF unsigned __int64 v39; // [rsp+68h] [rbp-18h] unsigned __int64 v40; // [rsp+70h] [rbp-10h] v34 = a3; v33 = a2; if ( !a3 || a4 || (LOBYTE(i) = DS_Dictionary::stepIntoSubDictWithKey(a1, a3), (_BYTE)i) ) { sub_180080CF0(&a1->dictTree._Mypair._Myval2._Mylast[-1], &v32); for ( i = sub_18007F4E0(&v32); i; i = sub_18007F4E0(&v32) ) { v6 = (_BYTE *)sub_18007FB70(&v32); *(_OWORD *)String = 0; v39 = 0; v40 = 0; v7 = -1; do ++v7; while ( v6[v7] ); sub_18000CE60(String, v6, v7); v8 = (const char *)String; if ( v40 > 0xF ) v8 = String[0]; v9 = atoi(v8); v10 = v40; v11 = String[0]; if ( v9 <= 0 ) { v12 = String; if ( v40 > 0xF ) v12 = (char **)String[0]; v13 = v39; if ( v39 < 4 ) goto LABEL_23; v14 = (char *)v12 + v39; v15 = (char *)memchr(v12, 82, v39 - 3); if ( !v15 ) goto LABEL_23; while ( 1 ) { v16 = 0; while ( 1 ) { v17 = v15[v16++]; if ( v17 != aRate[v16 - 1] ) break; if ( v16 == 4 ) { v18 = 0; goto LABEL_19; } } v18 = v17 < (unsigned __int8)aRate[v16 - 1] ? -1 : 1; LABEL_19: if ( !v18 ) break; v15 = (char *)memchr(v15 + 1, 82, v14 - 3 - (v15 + 1)); if ( !v15 ) goto LABEL_23; } if ( v15 - (char *)v12 == -1 ) { LABEL_23: v19 = String; if ( v10 > 0xF ) v19 = (char **)v11; if ( v13 < 4 ) goto LABEL_36; v20 = (char *)memchr(v19, 108, v13 - 3); if ( !v20 ) goto LABEL_36; while ( 1 ) { v21 = 0; while ( 1 ) { v22 = v20[v21++]; if ( v22 != aLike[v21 - 1] ) break; if ( v21 == 4 ) { v23 = 0; goto LABEL_32; } } v23 = v22 < (unsigned __int8)aLike[v21 - 1] ? -1 : 1; LABEL_32: if ( !v23 ) break; v20 = (char *)memchr(v20 + 1, 108, (char *)v19 + v13 - 3 - (v20 + 1)); if ( !v20 ) goto LABEL_36; } if ( v20 - (char *)v19 == -1 ) { LABEL_36: v24 = String; if ( v10 > 0xF ) v24 = (char **)v11; if ( v13 < 6 ) goto LABEL_49; v25 = (char *)memchr(v24, 114, v13 - 5); if ( !v25 ) goto LABEL_49; while ( 1 ) { v26 = 0; while ( 1 ) { v27 = v25[v26++]; if ( v27 != aReport[v26 - 1] ) break; if ( v26 == 6 ) { v28 = 0; goto LABEL_45; } } v28 = v27 < (unsigned __int8)aReport[v26 - 1] ? -1 : 1; LABEL_45: if ( !v28 ) break; v25 = (char *)memchr(v25 + 1, 114, (char *)v24 + v13 - 5 - (v25 + 1)); if ( !v25 ) goto LABEL_49; } if ( v25 - (char *)v24 == -1 ) { LABEL_49: *(_BYTE *)(*(_QWORD *)sub_1800166E0(v33, (__int64)v37, (const void **)String) + 64LL) = 1; v10 = v40; v11 = String[0]; } } } } if ( v10 > 0xF ) { v29 = v11; if ( v10 + 1 >= 0x1000 ) { v11 = *((char **)v11 - 1); if ( (unsigned __int64)(v29 - v11 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v11); } v30 = sub_180081AB0(&v32, v35); v32 = *(_QWORD *)sub_180081AB0(v30, v36); } if ( v34 ) { i = a1->dictTree._Mypair._Myval2._Mylast - a1->dictTree._Mypair._Myval2._Myfirst; if ( i > 1 ) --a1->dictTree._Mypair._Myval2._Mylast; } } return i; }