{"type": "func", "start": 4296394960, "end": 4296395150, "name": "DS_Dictionary::getIndexOfKey", "pseudocode": "// \n// DS_Dictionary::getIndexOfKey from 0x10015c8d0 to 0x10015c98e (190 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:25:06 +0000\n// \n\n__int64 __fastcall DS_Dictionary::getIndexOfKey(__int64 a1, const char *a2)\n{\n  __int64 v2; // rax\n  __int64 v5; // rdi\n  const char *v6; // rsi\n  unsigned int i; // r15d\n  const char *v8; // rax\n  const char *v9; // rsi\n  _QWORD v11[6]; // [rsp+0h] [rbp-30h] BYREF\n\n  v11[0] = v2;\n  v5 = *(_QWORD *)(a1 + 216) - 8LL;\n  v6 = \"k\";\n  if ( *(_BYTE *)(a1 + 232) )\n    v6 = \"key\";\n  v11[0] = sub_100718180(v5, v6);\n  if ( sub_100718020(v11) )\n  {\n    for ( i = 0; ; ++i )\n    {\n      v8 = (const char *)sub_1007184B0(v11);\n      if ( !strcmp(v8, a2) )\n        break;\n      v9 = \"key\";\n      if ( !*(_BYTE *)(a1 + 232) )\n        v9 = \"k\";\n      v11[0] = sub_100718360(v11, v9);\n      if ( !sub_100718020(v11) )\n        return 0;\n    }\n  }\n  else\n  {\n    return 0;\n  }\n  return i;\n}", "assembly": "; \n; DS_Dictionary::getIndexOfKey from 0x10015c8d0 to 0x10015c98e (190 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:25:06 +0000\n; \npush    rbp                                                            ; +0x0, 0x10015c8d0\nmov     rbp, rsp                                                       ; +0x1, 0x10015c8d1\npush    r15                                                            ; +0x4, 0x10015c8d4\npush    r14                                                            ; +0x6, 0x10015c8d6\npush    r13                                                            ; +0x8, 0x10015c8d8\npush    r12                                                            ; +0xa, 0x10015c8da\npush    rbx                                                            ; +0xc, 0x10015c8dc\npush    rax                                                            ; +0xd, 0x10015c8dd\nmov     rbx, rsi                                                       ; +0xe, 0x10015c8de\nmov     r14, rdi                                                       ; +0x11, 0x10015c8e1\nmov     rdi, [rdi+0D8h]                                                ; +0x14, 0x10015c8e4\nadd     rdi, 0FFFFFFFFFFFFFFF8h                                        ; +0x1b, 0x10015c8eb\nlea     r13, aKey; \"key\"                                               ; +0x1f, 0x10015c8ef\ncmp     byte ptr [r14+0E8h], 0                                         ; +0x26, 0x10015c8f6\nlea     rsi, aK; \"k\"                                                   ; +0x2e, 0x10015c8fe\ncmovnz  rsi, r13                                                       ; +0x35, 0x10015c905\ncall    sub_100718180                                                  ; +0x39, 0x10015c909\nmov     [rbp+var_30], rax                                              ; +0x3e, 0x10015c90e\nlea     rdi, [rbp+var_30]                                              ; +0x42, 0x10015c912\ncall    sub_100718020                                                  ; +0x46, 0x10015c916\ntest    rax, rax                                                       ; +0x4b, 0x10015c91b\njz      short loc_10015C979                                            ; +0x4e, 0x10015c91e\nxor     r15d, r15d                                                     ; +0x50, 0x10015c920\nlea     r12, [rbp+var_30]                                              ; +0x53, 0x10015c923\njmp     short loc_10015C94C                                            ; +0x57, 0x10015c927\nalign 10h                                                              ; +0x59, 0x10015c929\ninc     r15d                                                           ; +0x60, 0x10015c930\nmov     rdi, r12                                                       ; +0x63, 0x10015c933\ncall    sub_100718360                                                  ; +0x66, 0x10015c936\nmov     [rbp+var_30], rax                                              ; +0x6b, 0x10015c93b\nmov     rdi, r12                                                       ; +0x6f, 0x10015c93f\ncall    sub_100718020                                                  ; +0x72, 0x10015c942\ntest    rax, rax                                                       ; +0x77, 0x10015c947\njz      short loc_10015C979                                            ; +0x7a, 0x10015c94a\nmov     rdi, r12                                                       ; +0x7c, 0x10015c94c\ncall    sub_1007184B0                                                  ; +0x7f, 0x10015c94f\nmov     rdi, rax; __s1                                                 ; +0x84, 0x10015c954\nmov     rsi, rbx; __s2                                                 ; +0x87, 0x10015c957\ncall    _strcmp                                                        ; +0x8a, 0x10015c95a\ntest    eax, eax                                                       ; +0x8f, 0x10015c95f\njz      short loc_10015C97C                                            ; +0x91, 0x10015c961\ncmp     byte ptr [r14+0E8h], 0                                         ; +0x93, 0x10015c963\nmov     rsi, r13                                                       ; +0x9b, 0x10015c96b\njnz     short loc_10015C930                                            ; +0x9e, 0x10015c96e\nlea     rsi, aK; \"k\"                                                   ; +0xa0, 0x10015c970\njmp     short loc_10015C930                                            ; +0xa7, 0x10015c977\nxor     r15d, r15d                                                     ; +0xa9, 0x10015c979\nmov     eax, r15d                                                      ; +0xac, 0x10015c97c\nadd     rsp, 8                                                         ; +0xaf, 0x10015c97f\npop     rbx                                                            ; +0xb3, 0x10015c983\npop     r12                                                            ; +0xb4, 0x10015c984\npop     r13                                                            ; +0xb6, 0x10015c986\npop     r14                                                            ; +0xb8, 0x10015c988\npop     r15                                                            ; +0xba, 0x10015c98a\npop     rbp                                                            ; +0xbc, 0x10015c98c\nretn                                                                   ; +0xbd, 0x10015c98d", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}