{"type": "func", "start": 6442569904, "end": 6442570172, "name": "DS_Dictionary::removeKey", "pseudocode": "// \n// DS_Dictionary::removeKey from 0x18001d0b0 to 0x18001d1bc (268 bytes)\n// \n// 8 xrefs:\n// > DS_Dictionary::getArrayForKey @ 0x180019d70\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f545\n// > DS_Dictionary::setRectForKey @ 0x18001fb6a\n// > DS_Dictionary::setStringArrayForKey @ 0x18001fdbd\n// > DS_Dictionary::setVec2ArrayForKey @ 0x180020465\n// > DS_Dictionary::setVec2ForKey @ 0x1800209f8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aeb60\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\nvoid __fastcall DS_Dictionary::removeKey(DS_Dictionary *this, const char *a2)\n{\n  bool v2; // zf\n  const char *v4; // r8\n  std::_Vector_val<std::_Simple_types<pugi::xml_node>>::pointer Mylast; // rcx\n  __int64 v7; // rax\n  const char *v8; // r8\n  int v9; // ecx\n  int v10; // edx\n  const char *v11; // r8\n  std::_Vector_val<std::_Simple_types<pugi::xml_node>>::pointer v12; // rbx\n  __int64 v13; // rax\n  __int64 v14; // [rsp+30h] [rbp+8h] BYREF\n  char v15; // [rsp+40h] [rbp+18h] BYREF\n\n  v2 = !this->compatible;\n  v4 = \"k\";\n  Mylast = this->dictTree._Mypair._Myval2._Mylast;\n  if ( !v2 )\n    v4 = \"key\";\n  sub_18007FB10(&Mylast[-1], &v14, v4);\n  if ( sub_18007F4E0(&v14) )\n  {\n    while ( 1 )\n    {\n      v7 = sub_18007FB70(&v14);\n      v8 = &a2[-v7];\n      do\n      {\n        v9 = (unsigned __int8)v8[v7];\n        v10 = *(unsigned __int8 *)v7 - v9;\n        if ( v10 )\n          break;\n        ++v7;\n      }\n      while ( v9 );\n      if ( !v10 )\n        break;\n      v11 = \"k\";\n      if ( this->compatible )\n        v11 = \"key\";\n      v14 = *(_QWORD *)sub_180081A50(&v14, &v15, v11);\n      if ( !sub_18007F4E0(&v14) )\n        return;\n    }\n    v12 = this->dictTree._Mypair._Myval2._Mylast;\n    v13 = sub_180081AB0(&v14, &v15);\n    sub_180084730(&v12[-1], v13);\n    sub_180084730(&this->dictTree._Mypair._Myval2._Mylast[-1], &v14);\n  }\n}", "assembly": "; \n; DS_Dictionary::removeKey from 0x18001d0b0 to 0x18001d1bc (268 bytes)\n; \n; 8 xrefs:\n; > DS_Dictionary::getArrayForKey @ 0x180019d70\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f545\n; > DS_Dictionary::setRectForKey @ 0x18001fb6a\n; > DS_Dictionary::setStringArrayForKey @ 0x18001fdbd\n; > DS_Dictionary::setVec2ArrayForKey @ 0x180020465\n; > DS_Dictionary::setVec2ForKey @ 0x1800209f8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aeb60\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_8], rbx                                               ; +0x0, 0x18001d0b0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x18001d0b5\npush    rdi                                                            ; +0xa, 0x18001d0ba\nsub     rsp, 20h                                                       ; +0xb, 0x18001d0bb\ncmp     byte ptr [rcx+0E8h], 0                                         ; +0xf, 0x18001d0bf\nlea     rsi, aKey; \"key\"                                               ; +0x16, 0x18001d0c6\nmov     rdi, rcx                                                       ; +0x1d, 0x18001d0cd\nlea     r8, aK; \"k\"                                                    ; +0x20, 0x18001d0d0\nmov     rcx, [rcx+0D8h]                                                ; +0x27, 0x18001d0d7\ncmovnz  r8, rsi                                                        ; +0x2e, 0x18001d0de\nmov     rbx, rdx                                                       ; +0x32, 0x18001d0e2\nsub     rcx, 8                                                         ; +0x35, 0x18001d0e5\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x39, 0x18001d0e9\ncall    sub_18007FB10                                                  ; +0x3e, 0x18001d0ee\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x43, 0x18001d0f3\ncall    sub_18007F4E0                                                  ; +0x48, 0x18001d0f8\ntest    rax, rax                                                       ; +0x4d, 0x18001d0fd\njz      loc_18001D1AC                                                  ; +0x50, 0x18001d100\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x56, 0x18001d106\ncall    sub_18007FB70                                                  ; +0x5b, 0x18001d10b\nmov     r8, rbx                                                        ; +0x60, 0x18001d110\nsub     r8, rax                                                        ; +0x63, 0x18001d113\nnop     word ptr [rax+rax+00000000h]                                   ; +0x66, 0x18001d116\nmovzx   edx, byte ptr [rax]                                            ; +0x70, 0x18001d120\nmovzx   ecx, byte ptr [rax+r8]                                         ; +0x73, 0x18001d123\nsub     edx, ecx                                                       ; +0x78, 0x18001d128\njnz     short loc_18001D133                                            ; +0x7a, 0x18001d12a\ninc     rax                                                            ; +0x7c, 0x18001d12c\ntest    ecx, ecx                                                       ; +0x7f, 0x18001d12f\njnz     short loc_18001D120                                            ; +0x81, 0x18001d131\ntest    edx, edx                                                       ; +0x83, 0x18001d133\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x85, 0x18001d135\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x8a, 0x18001d13a\njz      short loc_18001D17F                                            ; +0x8f, 0x18001d13f\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0x91, 0x18001d141\nlea     r8, aK; \"k\"                                                    ; +0x98, 0x18001d148\ncmovnz  r8, rsi                                                        ; +0x9f, 0x18001d14f\ncall    sub_180081A50                                                  ; +0xa3, 0x18001d153\nmov     rcx, [rax]                                                     ; +0xa8, 0x18001d158\nmov     [rsp+28h+arg_0], rcx                                           ; +0xab, 0x18001d15b\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xb0, 0x18001d160\ncall    sub_18007F4E0                                                  ; +0xb5, 0x18001d165\ntest    rax, rax                                                       ; +0xba, 0x18001d16a\njnz     short loc_18001D106                                            ; +0xbd, 0x18001d16d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbf, 0x18001d16f\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xc4, 0x18001d174\nadd     rsp, 20h                                                       ; +0xc9, 0x18001d179\npop     rdi                                                            ; +0xcd, 0x18001d17d\nretn                                                                   ; +0xce, 0x18001d17e\nmov     rbx, [rdi+0D8h]                                                ; +0xcf, 0x18001d17f\ncall    sub_180081AB0                                                  ; +0xd6, 0x18001d186\nmov     rdx, rax                                                       ; +0xdb, 0x18001d18b\nlea     rcx, [rbx-8]                                                   ; +0xde, 0x18001d18e\ncall    sub_180084730                                                  ; +0xe2, 0x18001d192\nmov     rcx, [rdi+0D8h]                                                ; +0xe7, 0x18001d197\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xee, 0x18001d19e\nsub     rcx, 8                                                         ; +0xf3, 0x18001d1a3\ncall    sub_180084730                                                  ; +0xf7, 0x18001d1a7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xfc, 0x18001d1ac\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x101, 0x18001d1b1\nadd     rsp, 20h                                                       ; +0x106, 0x18001d1b6\npop     rdi                                                            ; +0x10a, 0x18001d1ba\nretn                                                                   ; +0x10b, 0x18001d1bb", "xrefs": ["DS_Dictionary::getArrayForKey @ 0x180019d70", "DS_Dictionary::setRectArrayForKey @ 0x18001f545", "DS_Dictionary::setRectForKey @ 0x18001fb6a", "DS_Dictionary::setStringArrayForKey @ 0x18001fdbd", "DS_Dictionary::setVec2ArrayForKey @ 0x180020465", "DS_Dictionary::setVec2ForKey @ 0x1800209f8", "<???> @ 0x1801438a8", "<???> @ 0x1801aeb60"], "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"}