{"type": "func", "start": 4296395152, "end": 4296395342, "name": "DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch", "pseudocode": "// \n// DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch from 0x10015c990 to 0x10015ca4e (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::getIndexOfKeyWithClosestAlphaNumericalMatch(__int64 a1, char *a2)\n{\n  __int64 v2; // rax\n  __int64 v5; // rdi\n  const char *v6; // rsi\n  unsigned int i; // r15d\n  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 = (char *)sub_1007184B0(v11);\n      if ( sub_100158A80(a2, v8) )\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::getIndexOfKeyWithClosestAlphaNumericalMatch from 0x10015c990 to 0x10015ca4e (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, 0x10015c990\nmov     rbp, rsp                                                       ; +0x1, 0x10015c991\npush    r15                                                            ; +0x4, 0x10015c994\npush    r14                                                            ; +0x6, 0x10015c996\npush    r13                                                            ; +0x8, 0x10015c998\npush    r12                                                            ; +0xa, 0x10015c99a\npush    rbx                                                            ; +0xc, 0x10015c99c\npush    rax                                                            ; +0xd, 0x10015c99d\nmov     rbx, rsi                                                       ; +0xe, 0x10015c99e\nmov     r14, rdi                                                       ; +0x11, 0x10015c9a1\nmov     rdi, [rdi+0D8h]                                                ; +0x14, 0x10015c9a4\nadd     rdi, 0FFFFFFFFFFFFFFF8h                                        ; +0x1b, 0x10015c9ab\nlea     r13, aKey; \"key\"                                               ; +0x1f, 0x10015c9af\ncmp     byte ptr [r14+0E8h], 0                                         ; +0x26, 0x10015c9b6\nlea     rsi, aK; \"k\"                                                   ; +0x2e, 0x10015c9be\ncmovnz  rsi, r13                                                       ; +0x35, 0x10015c9c5\ncall    sub_100718180                                                  ; +0x39, 0x10015c9c9\nmov     [rbp+var_30], rax                                              ; +0x3e, 0x10015c9ce\nlea     rdi, [rbp+var_30]                                              ; +0x42, 0x10015c9d2\ncall    sub_100718020                                                  ; +0x46, 0x10015c9d6\ntest    rax, rax                                                       ; +0x4b, 0x10015c9db\njz      short loc_10015CA39                                            ; +0x4e, 0x10015c9de\nxor     r15d, r15d                                                     ; +0x50, 0x10015c9e0\nlea     r12, [rbp+var_30]                                              ; +0x53, 0x10015c9e3\njmp     short loc_10015CA0C                                            ; +0x57, 0x10015c9e7\nalign 10h                                                              ; +0x59, 0x10015c9e9\ninc     r15d                                                           ; +0x60, 0x10015c9f0\nmov     rdi, r12                                                       ; +0x63, 0x10015c9f3\ncall    sub_100718360                                                  ; +0x66, 0x10015c9f6\nmov     [rbp+var_30], rax                                              ; +0x6b, 0x10015c9fb\nmov     rdi, r12                                                       ; +0x6f, 0x10015c9ff\ncall    sub_100718020                                                  ; +0x72, 0x10015ca02\ntest    rax, rax                                                       ; +0x77, 0x10015ca07\njz      short loc_10015CA39                                            ; +0x7a, 0x10015ca0a\nmov     rdi, r12                                                       ; +0x7c, 0x10015ca0c\ncall    sub_1007184B0                                                  ; +0x7f, 0x10015ca0f\nmov     rdi, rbx; char *                                               ; +0x84, 0x10015ca14\nmov     rsi, rax; __s                                                  ; +0x87, 0x10015ca17\ncall    sub_100158A80                                                  ; +0x8a, 0x10015ca1a\ntest    eax, eax                                                       ; +0x8f, 0x10015ca1f\njnz     short loc_10015CA3C                                            ; +0x91, 0x10015ca21\ncmp     byte ptr [r14+0E8h], 0                                         ; +0x93, 0x10015ca23\nmov     rsi, r13                                                       ; +0x9b, 0x10015ca2b\njnz     short loc_10015C9F0                                            ; +0x9e, 0x10015ca2e\nlea     rsi, aK; \"k\"                                                   ; +0xa0, 0x10015ca30\njmp     short loc_10015C9F0                                            ; +0xa7, 0x10015ca37\nxor     r15d, r15d                                                     ; +0xa9, 0x10015ca39\nmov     eax, r15d                                                      ; +0xac, 0x10015ca3c\nadd     rsp, 8                                                         ; +0xaf, 0x10015ca3f\npop     rbx                                                            ; +0xb3, 0x10015ca43\npop     r12                                                            ; +0xb4, 0x10015ca44\npop     r13                                                            ; +0xb6, 0x10015ca46\npop     r14                                                            ; +0xb8, 0x10015ca48\npop     r15                                                            ; +0xba, 0x10015ca4a\npop     rbp                                                            ; +0xbc, 0x10015ca4c\nretn                                                                   ; +0xbd, 0x10015ca4d", "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"}