{"type": "func", "start": 6442552288, "end": 6442552669, "name": "DS_Dictionary::addBoolValuesToMapForKey", "pseudocode": "// \n// DS_Dictionary::addBoolValuesToMapForKey from 0x180018be0 to 0x180018d5d (381 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae908\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall DS_Dictionary::addBoolValuesToMapForKey(DS_Dictionary *a1, _QWORD *a2, const char *a3, char a4)\n{\n  unsigned __int64 i; // rax\n  _BYTE *v8; // rax\n  size_t v9; // r8\n  void *v10; // rcx\n  __int64 v11; // rax\n  __int64 v13; // [rsp+20h] [rbp-68h] BYREF\n  _BYTE v14[8]; // [rsp+28h] [rbp-60h] BYREF\n  _BYTE v15[8]; // [rsp+30h] [rbp-58h] BYREF\n  _BYTE v16[16]; // [rsp+38h] [rbp-50h] BYREF\n  __int128 v17; // [rsp+48h] [rbp-40h] BYREF\n  __int64 v18; // [rsp+58h] [rbp-30h]\n  unsigned __int64 v19; // [rsp+60h] [rbp-28h]\n\n  if ( !a3 || a4 || (LOBYTE(i) = DS_Dictionary::stepIntoSubDictWithKey(a1, a3), (_BYTE)i) )\n  {\n    sub_180080CF0(&a1->dictTree._Mypair._Myval2._Mylast[-1], &v13);\n    for ( i = sub_18007F4E0(&v13); i; i = sub_18007F4E0(&v13) )\n    {\n      v8 = (_BYTE *)sub_18007FB70(&v13);\n      v17 = 0;\n      v18 = 0;\n      v19 = 0;\n      v9 = -1;\n      do\n        ++v9;\n      while ( v8[v9] );\n      sub_18000CE60(&v17, v8, v9);\n      *(_BYTE *)(*(_QWORD *)sub_1800166E0(a2, (__int64)v16, (const void **)&v17) + 64LL) = 1;\n      if ( v19 > 0xF )\n      {\n        v10 = (void *)v17;\n        if ( v19 + 1 >= 0x1000 )\n        {\n          v10 = *(void **)(v17 - 8);\n          if ( (unsigned __int64)(v17 - (_QWORD)v10 - 8) > 0x1F )\n            invalid_parameter_noinfo_noreturn();\n        }\n        j_j_free_0(v10);\n      }\n      v11 = sub_180081AB0(&v13, v14);\n      v13 = *(_QWORD *)sub_180081AB0(v11, v15);\n    }\n    if ( a3 )\n    {\n      i = a1->dictTree._Mypair._Myval2._Mylast - a1->dictTree._Mypair._Myval2._Myfirst;\n      if ( i > 1 )\n        --a1->dictTree._Mypair._Myval2._Mylast;\n    }\n  }\n  return i;\n}", "assembly": "; \n; DS_Dictionary::addBoolValuesToMapForKey from 0x180018be0 to 0x180018d5d (381 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae908\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180018be0\npush    rbp                                                            ; +0x5, 0x180018be5\npush    rsi                                                            ; +0x6, 0x180018be6\npush    rdi                                                            ; +0x7, 0x180018be7\nsub     rsp, 70h                                                       ; +0x8, 0x180018be8\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x180018bec\nxor     rax, rsp                                                       ; +0x13, 0x180018bf3\nmov     [rsp+88h+var_20], rax                                          ; +0x16, 0x180018bf6\nmov     rdi, r8                                                        ; +0x1b, 0x180018bfb\nmov     rsi, rdx                                                       ; +0x1e, 0x180018bfe\nmov     rbx, rcx                                                       ; +0x21, 0x180018c01\ntest    r8, r8                                                         ; +0x24, 0x180018c04\njz      short loc_180018C1E                                            ; +0x27, 0x180018c07\ntest    r9b, r9b                                                       ; +0x29, 0x180018c09\njnz     short loc_180018C1E                                            ; +0x2c, 0x180018c0c\nmov     rdx, r8; char *                                                ; +0x2e, 0x180018c0e\ncall    ?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x31, 0x180018c11\ntest    al, al                                                         ; +0x36, 0x180018c16\njz      loc_180018D39                                                  ; +0x38, 0x180018c18\nmov     rcx, [rbx+0D8h]                                                ; +0x3e, 0x180018c1e\nsub     rcx, 8                                                         ; +0x45, 0x180018c25\nlea     rdx, [rsp+88h+var_68]                                          ; +0x49, 0x180018c29\ncall    sub_180080CF0                                                  ; +0x4e, 0x180018c2e\nlea     rcx, [rsp+88h+var_68]                                          ; +0x53, 0x180018c33\ncall    sub_18007F4E0                                                  ; +0x58, 0x180018c38\ntest    rax, rax                                                       ; +0x5d, 0x180018c3d\njz      loc_180018D14                                                  ; +0x60, 0x180018c40\nxor     ebp, ebp                                                       ; +0x66, 0x180018c46\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x180018c48\nlea     rcx, [rsp+88h+var_68]                                          ; +0x70, 0x180018c50\ncall    sub_18007FB70                                                  ; +0x75, 0x180018c55\nxorps   xmm0, xmm0                                                     ; +0x7a, 0x180018c5a\nmovups  [rsp+88h+var_40], xmm0                                         ; +0x7d, 0x180018c5d\nmov     [rsp+88h+var_30], rbp                                          ; +0x82, 0x180018c62\nmov     [rsp+88h+var_28], rbp                                          ; +0x87, 0x180018c67\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x8c, 0x180018c6c\ninc     r8                                                             ; +0x93, 0x180018c73\ncmp     byte ptr [rax+r8], 0                                           ; +0x96, 0x180018c76\njnz     short loc_180018C73                                            ; +0x9b, 0x180018c7b\nmov     rdx, rax                                                       ; +0x9d, 0x180018c7d\nlea     rcx, [rsp+88h+var_40]                                          ; +0xa0, 0x180018c80\ncall    sub_18000CE60                                                  ; +0xa5, 0x180018c85\nnop                                                                    ; +0xaa, 0x180018c8a\nlea     r8, [rsp+88h+var_40]                                           ; +0xab, 0x180018c8b\nlea     rdx, [rsp+88h+var_50]                                          ; +0xb0, 0x180018c90\nmov     rcx, rsi                                                       ; +0xb5, 0x180018c95\ncall    sub_1800166E0                                                  ; +0xb8, 0x180018c98\nmov     rcx, [rax]                                                     ; +0xbd, 0x180018c9d\nmov     byte ptr [rcx+40h], 1                                          ; +0xc0, 0x180018ca0\nmov     rdx, [rsp+88h+var_28]                                          ; +0xc4, 0x180018ca4\ncmp     rdx, 0Fh                                                       ; +0xc9, 0x180018ca9\njbe     short loc_180018CDD                                            ; +0xcd, 0x180018cad\ninc     rdx                                                            ; +0xcf, 0x180018caf\nmov     rcx, qword ptr [rsp+88h+var_40]                                ; +0xd2, 0x180018cb2\nmov     rax, rcx                                                       ; +0xd7, 0x180018cb7\ncmp     rdx, 1000h                                                     ; +0xda, 0x180018cba\njb      short loc_180018CD8                                            ; +0xe1, 0x180018cc1\nadd     rdx, 27h ; '''                                                 ; +0xe3, 0x180018cc3\nmov     rcx, [rcx-8]; Block                                            ; +0xe7, 0x180018cc7\nsub     rax, rcx                                                       ; +0xeb, 0x180018ccb\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xee, 0x180018cce\ncmp     rax, 1Fh                                                       ; +0xf2, 0x180018cd2\nja      short loc_180018D56                                            ; +0xf6, 0x180018cd6\ncall    j_j_free_0                                                     ; +0xf8, 0x180018cd8\nlea     rdx, [rsp+88h+var_60]                                          ; +0xfd, 0x180018cdd\nlea     rcx, [rsp+88h+var_68]                                          ; +0x102, 0x180018ce2\ncall    sub_180081AB0                                                  ; +0x107, 0x180018ce7\nmov     rcx, rax                                                       ; +0x10c, 0x180018cec\nlea     rdx, [rsp+88h+var_58]                                          ; +0x10f, 0x180018cef\ncall    sub_180081AB0                                                  ; +0x114, 0x180018cf4\nmov     rcx, [rax]                                                     ; +0x119, 0x180018cf9\nmov     [rsp+88h+var_68], rcx                                          ; +0x11c, 0x180018cfc\nlea     rcx, [rsp+88h+var_68]                                          ; +0x121, 0x180018d01\ncall    sub_18007F4E0                                                  ; +0x126, 0x180018d06\ntest    rax, rax                                                       ; +0x12b, 0x180018d0b\njnz     loc_180018C50                                                  ; +0x12e, 0x180018d0e\ntest    rdi, rdi                                                       ; +0x134, 0x180018d14\njz      short loc_180018D39                                            ; +0x137, 0x180018d17\nmov     rax, [rbx+0D8h]                                                ; +0x139, 0x180018d19\nsub     rax, [rbx+0D0h]                                                ; +0x140, 0x180018d20\nsar     rax, 3                                                         ; +0x147, 0x180018d27\ncmp     rax, 1                                                         ; +0x14b, 0x180018d2b\njbe     short loc_180018D39                                            ; +0x14f, 0x180018d2f\nadd     qword ptr [rbx+0D8h], 0FFFFFFFFFFFFFFF8h                       ; +0x151, 0x180018d31\nmov     rcx, [rsp+88h+var_20]                                          ; +0x159, 0x180018d39\nxor     rcx, rsp; StackCookie                                          ; +0x15e, 0x180018d3e\ncall    __security_check_cookie                                        ; +0x161, 0x180018d41\nmov     rbx, [rsp+88h+arg_10]                                          ; +0x166, 0x180018d46\nadd     rsp, 70h                                                       ; +0x16e, 0x180018d4e\npop     rdi                                                            ; +0x172, 0x180018d52\npop     rsi                                                            ; +0x173, 0x180018d53\npop     rbp                                                            ; +0x174, 0x180018d54\nretn                                                                   ; +0x175, 0x180018d55\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x176, 0x180018d56\ndb 0CCh                                                                ; +0x17c, 0x180018d5c", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ae908"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}