{"type": "func", "start": 6442566048, "end": 6442566181, "name": "sub_18001C1A0", "pseudocode": "// \n// sub_18001C1A0 from 0x18001c1a0 to 0x18001c225 (133 bytes)\n// \n// 7 xrefs:\n// > sub_1800190E0 @ 0x1800190fe\n// > sub_1800190E0 @ 0x180019109\n// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a656\n// > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a661\n// > <???> @ 0x1801339dc\n// > <???> @ 0x1801339ec\n// > <???> @ 0x1801aeaac\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__int64 __fastcall sub_18001C1A0(__int64 a1)\n{\n  unsigned int v2; // edi\n  __int64 v3; // rax\n  __int64 v4; // rbp\n  __int64 v5; // rbx\n  int v6; // eax\n  unsigned int v7; // ecx\n\n  v2 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( *(_BYTE *)(a1 + v3) );\n  v4 = (int)v3;\n  if ( (int)v3 <= 0 )\n    return 0;\n  v5 = 0;\n  do\n  {\n    v6 = isdigit(*(char *)(v5 + a1));\n    v7 = v2 + 1;\n    if ( !v6 )\n      v7 = v2;\n    ++v5;\n    v2 = v7;\n  }\n  while ( v5 < v4 );\n  return v7;\n}", "assembly": "; \n; sub_18001C1A0 from 0x18001c1a0 to 0x18001c225 (133 bytes)\n; \n; 7 xrefs:\n; > sub_1800190E0 @ 0x1800190fe\n; > sub_1800190E0 @ 0x180019109\n; > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a656\n; > DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a661\n; > <???> @ 0x1801339dc\n; > <???> @ 0x1801339ec\n; > <???> @ 0x1801aeaac\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], rbp                                               ; +0x0, 0x18001c1a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18001c1a5\npush    rdi                                                            ; +0xa, 0x18001c1aa\nsub     rsp, 20h                                                       ; +0xb, 0x18001c1ab\nmov     rsi, rcx                                                       ; +0xf, 0x18001c1af\nxor     edi, edi                                                       ; +0x12, 0x18001c1b2\nmov     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x14, 0x18001c1b4\nnop     dword ptr [rax+rax+00h]                                        ; +0x1b, 0x18001c1bb\ninc     rax                                                            ; +0x20, 0x18001c1c0\ncmp     [rcx+rax], dil                                                 ; +0x23, 0x18001c1c3\njnz     short loc_18001C1C0                                            ; +0x27, 0x18001c1c7\nmovsxd  rbp, eax                                                       ; +0x29, 0x18001c1c9\ntest    eax, eax                                                       ; +0x2c, 0x18001c1cc\njle     short loc_18001C213                                            ; +0x2e, 0x18001c1ce\nmov     [rsp+28h+arg_0], rbx                                           ; +0x30, 0x18001c1d0\nmov     rbx, rdi                                                       ; +0x35, 0x18001c1d5\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x38, 0x18001c1d8\nmovsx   ecx, byte ptr [rbx+rsi]; C                                     ; +0x40, 0x18001c1e0\ncall    cs:isdigit                                                     ; +0x44, 0x18001c1e4\ntest    eax, eax                                                       ; +0x4a, 0x18001c1ea\nlea     ecx, [rdi+1]                                                   ; +0x4c, 0x18001c1ec\ncmovz   ecx, edi                                                       ; +0x4f, 0x18001c1ef\ninc     rbx                                                            ; +0x52, 0x18001c1f2\nmov     edi, ecx                                                       ; +0x55, 0x18001c1f5\ncmp     rbx, rbp                                                       ; +0x57, 0x18001c1f7\njl      short loc_18001C1E0                                            ; +0x5a, 0x18001c1fa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x18001c1fc\nmov     eax, ecx                                                       ; +0x61, 0x18001c201\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x63, 0x18001c203\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x68, 0x18001c208\nadd     rsp, 20h                                                       ; +0x6d, 0x18001c20d\npop     rdi                                                            ; +0x71, 0x18001c211\nretn                                                                   ; +0x72, 0x18001c212\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x73, 0x18001c213\nmov     eax, edi                                                       ; +0x78, 0x18001c218\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x7a, 0x18001c21a\nadd     rsp, 20h                                                       ; +0x7f, 0x18001c21f\npop     rdi                                                            ; +0x83, 0x18001c223\nretn                                                                   ; +0x84, 0x18001c224", "xrefs": ["sub_1800190E0 @ 0x1800190fe", "sub_1800190E0 @ 0x180019109", "DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a656", "DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch @ 0x18001a661", "<???> @ 0x1801339dc", "<???> @ 0x1801339ec", "<???> @ 0x1801aeaac"], "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"}