{"type": "func", "start": 6442559712, "end": 6442559940, "name": "DS_Dictionary::getKey", "pseudocode": "// \n// DS_Dictionary::getKey from 0x18001a8e0 to 0x18001a9c4 (228 bytes)\n// \n// 3 xrefs:\n// > DS_Dictionary::getArrayForKey @ 0x180019d9b\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aea04\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_QWORD *__fastcall DS_Dictionary::getKey(__int64 a1, _QWORD *a2, int a3)\n{\n  int v5; // edi\n  __int64 v6; // rax\n  _BYTE *v8; // rax\n  size_t v9; // r8\n  _BYTE v10[32]; // [rsp+28h] [rbp-20h] BYREF\n  __int64 v11; // [rsp+50h] [rbp+8h] BYREF\n  char v12; // [rsp+68h] [rbp+20h] BYREF\n\n  v5 = 0;\n  sub_180080CF0(*(_QWORD *)(a1 + 216) - 8LL, &v11);\n  if ( sub_18007F4E0(&v11) )\n  {\n    while ( v5 != a3 )\n    {\n      ++v5;\n      v6 = sub_180081AB0(&v11, &v12);\n      v11 = *(_QWORD *)sub_180081AB0(v6, v10);\n      if ( !sub_18007F4E0(&v11) )\n        goto LABEL_4;\n    }\n    v8 = (_BYTE *)sub_18007FB70(&v11);\n    v9 = -1;\n    *(_OWORD *)a2 = 0;\n    a2[2] = 0;\n    a2[3] = 0;\n    do\n      ++v9;\n    while ( v8[v9] );\n    sub_18000CE60(a2, v8, v9);\n    return a2;\n  }\n  else\n  {\nLABEL_4:\n    *(_OWORD *)a2 = 0;\n    a2[2] = 0;\n    a2[3] = 15;\n    *(_BYTE *)a2 = 0;\n    return a2;\n  }\n}", "assembly": "; \n; DS_Dictionary::getKey from 0x18001a8e0 to 0x18001a9c4 (228 bytes)\n; \n; 3 xrefs:\n; > DS_Dictionary::getArrayForKey @ 0x180019d9b\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aea04\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, 0x18001a8e0\npush    rbp                                                            ; +0x5, 0x18001a8e5\npush    rsi                                                            ; +0x6, 0x18001a8e6\npush    rdi                                                            ; +0x7, 0x18001a8e7\nsub     rsp, 30h                                                       ; +0x8, 0x18001a8e8\nmov     rcx, [rcx+0D8h]                                                ; +0xc, 0x18001a8ec\nmov     rbx, rdx                                                       ; +0x13, 0x18001a8f3\nxor     ebp, ebp                                                       ; +0x16, 0x18001a8f6\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x18, 0x18001a8f8\nsub     rcx, 8                                                         ; +0x1d, 0x18001a8fd\nmov     esi, r8d                                                       ; +0x21, 0x18001a901\nmov     edi, ebp                                                       ; +0x24, 0x18001a904\ncall    sub_180080CF0                                                  ; +0x26, 0x18001a906\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x2b, 0x18001a90b\ncall    sub_18007F4E0                                                  ; +0x30, 0x18001a910\ntest    rax, rax                                                       ; +0x35, 0x18001a915\njz      short loc_18001A959                                            ; +0x38, 0x18001a918\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x18001a91a\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x40, 0x18001a920\ncmp     edi, esi                                                       ; +0x45, 0x18001a925\njz      short loc_18001A97E                                            ; +0x47, 0x18001a927\nlea     rdx, [rsp+48h+arg_18]                                          ; +0x49, 0x18001a929\ninc     edi                                                            ; +0x4e, 0x18001a92e\ncall    sub_180081AB0                                                  ; +0x50, 0x18001a930\nmov     rcx, rax                                                       ; +0x55, 0x18001a935\nlea     rdx, [rsp+48h+var_20]                                          ; +0x58, 0x18001a938\ncall    sub_180081AB0                                                  ; +0x5d, 0x18001a93d\nmov     rcx, [rax]                                                     ; +0x62, 0x18001a942\nmov     [rsp+48h+arg_0], rcx                                           ; +0x65, 0x18001a945\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x6a, 0x18001a94a\ncall    sub_18007F4E0                                                  ; +0x6f, 0x18001a94f\ntest    rax, rax                                                       ; +0x74, 0x18001a954\njnz     short loc_18001A920                                            ; +0x77, 0x18001a957\nxorps   xmm0, xmm0                                                     ; +0x79, 0x18001a959\nmov     rax, rbx                                                       ; +0x7c, 0x18001a95c\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x7f, 0x18001a95f\nmov     [rbx+10h], rbp                                                 ; +0x82, 0x18001a962\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0x86, 0x18001a966\nmov     [rbx], bpl                                                     ; +0x8e, 0x18001a96e\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x91, 0x18001a971\nadd     rsp, 30h                                                       ; +0x96, 0x18001a976\npop     rdi                                                            ; +0x9a, 0x18001a97a\npop     rsi                                                            ; +0x9b, 0x18001a97b\npop     rbp                                                            ; +0x9c, 0x18001a97c\nretn                                                                   ; +0x9d, 0x18001a97d\ncall    sub_18007FB70                                                  ; +0x9e, 0x18001a97e\nxorps   xmm0, xmm0                                                     ; +0xa3, 0x18001a983\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xa6, 0x18001a986\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xad, 0x18001a98d\nmov     [rbx+10h], rbp                                                 ; +0xb0, 0x18001a990\nmov     [rbx+18h], rbp                                                 ; +0xb4, 0x18001a994\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xb8, 0x18001a998\ninc     r8                                                             ; +0xc0, 0x18001a9a0\ncmp     [rax+r8], bpl                                                  ; +0xc3, 0x18001a9a3\njnz     short loc_18001A9A0                                            ; +0xc7, 0x18001a9a7\nmov     rdx, rax                                                       ; +0xc9, 0x18001a9a9\nmov     rcx, rbx                                                       ; +0xcc, 0x18001a9ac\ncall    sub_18000CE60                                                  ; +0xcf, 0x18001a9af\nmov     rax, rbx                                                       ; +0xd4, 0x18001a9b4\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xd7, 0x18001a9b7\nadd     rsp, 30h                                                       ; +0xdc, 0x18001a9bc\npop     rdi                                                            ; +0xe0, 0x18001a9c0\npop     rsi                                                            ; +0xe1, 0x18001a9c1\npop     rbp                                                            ; +0xe2, 0x18001a9c2\nretn                                                                   ; +0xe3, 0x18001a9c3", "xrefs": ["DS_Dictionary::getArrayForKey @ 0x180019d9b", "<???> @ 0x1801438a8", "<???> @ 0x1801aea04"], "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"}