{"type": "func", "start": 6442557024, "end": 6442557307, "name": "DS_Dictionary::getBoolForKey", "pseudocode": "// \n// DS_Dictionary::getBoolForKey from 0x180019e60 to 0x180019f7b (283 bytes)\n// \n// 4 xrefs:\n// > DS_Dictionary::getDictForKey @ 0x18001a0b2\n// > DS_Dictionary::getObjectForKey @ 0x18001aba2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae9bc\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\nbool __fastcall DS_Dictionary::getBoolForKey(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  __int64 v13; // rax\n  const char *v14; // rcx\n  __int64 v15; // rax\n  int v16; // edx\n  int v17; // r8d\n  __int64 v18; // [rsp+30h] [rbp+8h] BYREF\n  char v19; // [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], &v18, v4);\n  if ( !sub_18007F4E0(&v18) )\n    return 0;\n  while ( 1 )\n  {\n    v7 = sub_18007FB70(&v18);\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    v18 = *(_QWORD *)sub_180081A50(&v18, &v19, v11);\n    if ( !sub_18007F4E0(&v18) )\n      return 0;\n  }\n  sub_180081AB0(&v18, &v19);\n  v13 = sub_180081A30(&v19);\n  v14 = \"t\";\n  if ( this->compatible )\n    v14 = \"true\";\n  v15 = v13 - (_QWORD)v14;\n  do\n  {\n    v16 = (unsigned __int8)v14[v15];\n    v17 = *(unsigned __int8 *)v14 - v16;\n    if ( v17 )\n      break;\n    ++v14;\n  }\n  while ( v16 );\n  return !v17;\n}", "assembly": "; \n; DS_Dictionary::getBoolForKey from 0x180019e60 to 0x180019f7b (283 bytes)\n; \n; 4 xrefs:\n; > DS_Dictionary::getDictForKey @ 0x18001a0b2\n; > DS_Dictionary::getObjectForKey @ 0x18001aba2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae9bc\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, 0x180019e60\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x180019e65\npush    rdi                                                            ; +0xa, 0x180019e6a\nsub     rsp, 20h                                                       ; +0xb, 0x180019e6b\ncmp     byte ptr [rcx+0E8h], 0                                         ; +0xf, 0x180019e6f\nlea     rsi, aKey; \"key\"                                               ; +0x16, 0x180019e76\nmov     rdi, rcx                                                       ; +0x1d, 0x180019e7d\nlea     r8, aK; \"k\"                                                    ; +0x20, 0x180019e80\nmov     rcx, [rcx+0D8h]                                                ; +0x27, 0x180019e87\ncmovnz  r8, rsi                                                        ; +0x2e, 0x180019e8e\nmov     rbx, rdx                                                       ; +0x32, 0x180019e92\nsub     rcx, 8                                                         ; +0x35, 0x180019e95\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x39, 0x180019e99\ncall    sub_18007FB10                                                  ; +0x3e, 0x180019e9e\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x43, 0x180019ea3\ncall    sub_18007F4E0                                                  ; +0x48, 0x180019ea8\ntest    rax, rax                                                       ; +0x4d, 0x180019ead\njz      short loc_180019F11                                            ; +0x50, 0x180019eb0\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x52, 0x180019eb2\ncall    sub_18007FB70                                                  ; +0x57, 0x180019eb7\nmov     r8, rbx                                                        ; +0x5c, 0x180019ebc\nsub     r8, rax                                                        ; +0x5f, 0x180019ebf\nmovzx   edx, byte ptr [rax]                                            ; +0x62, 0x180019ec2\nmovzx   ecx, byte ptr [rax+r8]                                         ; +0x65, 0x180019ec5\nsub     edx, ecx                                                       ; +0x6a, 0x180019eca\njnz     short loc_180019ED5                                            ; +0x6c, 0x180019ecc\ninc     rax                                                            ; +0x6e, 0x180019ece\ntest    ecx, ecx                                                       ; +0x71, 0x180019ed1\njnz     short loc_180019EC2                                            ; +0x73, 0x180019ed3\ntest    edx, edx                                                       ; +0x75, 0x180019ed5\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x77, 0x180019ed7\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x7c, 0x180019edc\njz      short loc_180019F23                                            ; +0x81, 0x180019ee1\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0x83, 0x180019ee3\nlea     r8, aK; \"k\"                                                    ; +0x8a, 0x180019eea\ncmovnz  r8, rsi                                                        ; +0x91, 0x180019ef1\ncall    sub_180081A50                                                  ; +0x95, 0x180019ef5\nmov     rcx, [rax]                                                     ; +0x9a, 0x180019efa\nmov     [rsp+28h+arg_0], rcx                                           ; +0x9d, 0x180019efd\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xa2, 0x180019f02\ncall    sub_18007F4E0                                                  ; +0xa7, 0x180019f07\ntest    rax, rax                                                       ; +0xac, 0x180019f0c\njnz     short loc_180019EB2                                            ; +0xaf, 0x180019f0f\nxor     al, al                                                         ; +0xb1, 0x180019f11\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb3, 0x180019f13\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xb8, 0x180019f18\nadd     rsp, 20h                                                       ; +0xbd, 0x180019f1d\npop     rdi                                                            ; +0xc1, 0x180019f21\nretn                                                                   ; +0xc2, 0x180019f22\ncall    sub_180081AB0                                                  ; +0xc3, 0x180019f23\nlea     rcx, [rsp+28h+arg_10]                                          ; +0xc8, 0x180019f28\ncall    sub_180081A30                                                  ; +0xcd, 0x180019f2d\ncmp     byte ptr [rdi+0E8h], 0                                         ; +0xd2, 0x180019f32\nlea     rdx, aTrue; \"true\"                                             ; +0xd9, 0x180019f39\nlea     rcx, aT; \"t\"                                                   ; +0xe0, 0x180019f40\ncmovnz  rcx, rdx                                                       ; +0xe7, 0x180019f47\nsub     rax, rcx                                                       ; +0xeb, 0x180019f4b\nxchg    ax, ax                                                         ; +0xee, 0x180019f4e\nmovzx   r8d, byte ptr [rcx]                                            ; +0xf0, 0x180019f50\nmovzx   edx, byte ptr [rcx+rax]                                        ; +0xf4, 0x180019f54\nsub     r8d, edx                                                       ; +0xf8, 0x180019f58\njnz     short loc_180019F64                                            ; +0xfb, 0x180019f5b\ninc     rcx                                                            ; +0xfd, 0x180019f5d\ntest    edx, edx                                                       ; +0x100, 0x180019f60\njnz     short loc_180019F50                                            ; +0x102, 0x180019f62\ntest    r8d, r8d                                                       ; +0x104, 0x180019f64\njnz     short loc_180019F11                                            ; +0x107, 0x180019f67\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x109, 0x180019f69\nmov     al, 1                                                          ; +0x10e, 0x180019f6e\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x110, 0x180019f70\nadd     rsp, 20h                                                       ; +0x115, 0x180019f75\npop     rdi                                                            ; +0x119, 0x180019f79\nretn                                                                   ; +0x11a, 0x180019f7a", "xrefs": ["DS_Dictionary::getDictForKey @ 0x18001a0b2", "DS_Dictionary::getObjectForKey @ 0x18001aba2", "<???> @ 0x1801438a8", "<???> @ 0x1801ae9bc"], "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"}