; ; DS_Dictionary::getIndexOfKeyWithClosestAlphaNumericalMatch from 0x18001a5e0 to 0x18001a78e (430 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801ae9ec ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x18001a5e0 mov [rsp+arg_0], rcx ; +0x5, 0x18001a5e5 push rbp ; +0xa, 0x18001a5ea push rsi ; +0xb, 0x18001a5eb push rdi ; +0xc, 0x18001a5ec push r12 ; +0xd, 0x18001a5ed push r13 ; +0xf, 0x18001a5ef push r14 ; +0x11, 0x18001a5f1 push r15 ; +0x13, 0x18001a5f3 sub rsp, 20h ; +0x15, 0x18001a5f5 mov rsi, rcx ; +0x19, 0x18001a5f9 lea rbp, aKey; "key" ; +0x1c, 0x18001a5fc mov r12, rdx ; +0x23, 0x18001a603 lea r8, aK; "k" ; +0x26, 0x18001a606 xor r13d, r13d ; +0x2d, 0x18001a60d lea rdx, [rsp+58h+arg_10] ; +0x30, 0x18001a610 cmp [rcx+0E8h], r13b ; +0x35, 0x18001a615 mov rcx, [rcx+0D8h] ; +0x3c, 0x18001a61c cmovnz r8, rbp ; +0x43, 0x18001a623 sub rcx, 8 ; +0x47, 0x18001a627 call sub_18007FB10 ; +0x4b, 0x18001a62b lea rcx, [rsp+58h+arg_10] ; +0x50, 0x18001a630 call sub_18007F4E0 ; +0x55, 0x18001a635 test rax, rax ; +0x5a, 0x18001a63a jz loc_18001A772 ; +0x5d, 0x18001a63d lea rcx, [rsp+58h+arg_10] ; +0x63, 0x18001a643 call sub_18007FB70 ; +0x68, 0x18001a648 mov rcx, r12 ; +0x6d, 0x18001a64d mov rbx, rax ; +0x70, 0x18001a650 mov rdi, r12 ; +0x73, 0x18001a653 call sub_18001C1A0 ; +0x76, 0x18001a656 mov rcx, rbx ; +0x7b, 0x18001a65b mov r15d, eax ; +0x7e, 0x18001a65e call sub_18001C1A0 ; +0x81, 0x18001a661 mov r14d, eax ; +0x86, 0x18001a666 test r15d, r15d ; +0x89, 0x18001a669 jnz short loc_18001A687 ; +0x8c, 0x18001a66c test eax, eax ; +0x8e, 0x18001a66e jnz loc_18001A789 ; +0x90, 0x18001a670 mov rdx, rbx; String2 ; +0x96, 0x18001a676 mov rcx, r12; String1 ; +0x99, 0x18001a679 call cs:_stricmp ; +0x9c, 0x18001a67c jmp loc_18001A72E ; +0xa2, 0x18001a682 test r14d, r14d ; +0xa7, 0x18001a687 jz loc_18001A789 ; +0xaa, 0x18001a68a xor ebp, ebp ; +0xb0, 0x18001a690 xor esi, esi ; +0xb2, 0x18001a692 test r15d, r15d ; +0xb4, 0x18001a694 jle short loc_18001A711 ; +0xb7, 0x18001a697 nop dword ptr [rax+00000000h] ; +0xb9, 0x18001a699 cmp esi, r14d ; +0xc0, 0x18001a6a0 jge short loc_18001A70C ; +0xc3, 0x18001a6a3 movsx ecx, byte ptr [rdi]; C ; +0xc5, 0x18001a6a5 call cs:isdigit ; +0xc8, 0x18001a6a8 test eax, eax ; +0xce, 0x18001a6ae jnz short loc_18001A6C3 ; +0xd0, 0x18001a6b0 movsx ecx, byte ptr [rdi+1]; C ; +0xd2, 0x18001a6b2 inc rdi ; +0xd6, 0x18001a6b6 call cs:isdigit ; +0xd9, 0x18001a6b9 test eax, eax ; +0xdf, 0x18001a6bf jz short loc_18001A6B2 ; +0xe1, 0x18001a6c1 movsx ecx, byte ptr [rbx]; C ; +0xe3, 0x18001a6c3 call cs:isdigit ; +0xe6, 0x18001a6c6 test eax, eax ; +0xec, 0x18001a6cc jnz short loc_18001A6E1 ; +0xee, 0x18001a6ce movsx ecx, byte ptr [rbx+1]; C ; +0xf0, 0x18001a6d0 inc rbx ; +0xf4, 0x18001a6d4 call cs:isdigit ; +0xf7, 0x18001a6d7 test eax, eax ; +0xfd, 0x18001a6dd jz short loc_18001A6D0 ; +0xff, 0x18001a6df movsx ecx, byte ptr [rdi] ; +0x101, 0x18001a6e1 movsx eax, byte ptr [rbx] ; +0x104, 0x18001a6e4 cmp cl, al ; +0x107, 0x18001a6e7 jnz short loc_18001A6FC ; +0x109, 0x18001a6e9 inc rdi ; +0x10b, 0x18001a6eb inc rbx ; +0x10e, 0x18001a6ee inc ebp ; +0x111, 0x18001a6f1 inc esi ; +0x113, 0x18001a6f3 cmp ebp, r15d ; +0x115, 0x18001a6f5 jl short loc_18001A6A0 ; +0x118, 0x18001a6f8 jmp short loc_18001A711 ; +0x11a, 0x18001a6fa mov rsi, [rsp+58h+arg_0] ; +0x11c, 0x18001a6fc lea rbp, aKey; "key" ; +0x121, 0x18001a701 sub ecx, eax ; +0x128, 0x18001a708 jmp short loc_18001A730 ; +0x12a, 0x18001a70a cmp ebp, r15d ; +0x12c, 0x18001a70c jl short loc_18001A789 ; +0x12f, 0x18001a70f cmp esi, r14d ; +0x131, 0x18001a711 jl short loc_18001A789 ; +0x134, 0x18001a714 mov rdx, rbx; String2 ; +0x136, 0x18001a716 mov rcx, rdi; String1 ; +0x139, 0x18001a719 call cs:_stricmp ; +0x13c, 0x18001a71c mov rsi, [rsp+58h+arg_0] ; +0x142, 0x18001a722 lea rbp, aKey; "key" ; +0x147, 0x18001a727 mov ecx, eax ; +0x14e, 0x18001a72e test ecx, ecx ; +0x150, 0x18001a730 jnz short loc_18001A789 ; +0x152, 0x18001a732 inc r13d ; +0x154, 0x18001a734 lea r8, aK; "k" ; +0x157, 0x18001a737 cmp [rsi+0E8h], cl ; +0x15e, 0x18001a73e lea rdx, [rsp+58h+arg_18] ; +0x164, 0x18001a744 lea rcx, [rsp+58h+arg_10] ; +0x169, 0x18001a749 cmovnz r8, rbp ; +0x16e, 0x18001a74e call sub_180081A50 ; +0x172, 0x18001a752 mov rcx, [rax] ; +0x177, 0x18001a757 mov [rsp+58h+arg_10], rcx ; +0x17a, 0x18001a75a lea rcx, [rsp+58h+arg_10] ; +0x17f, 0x18001a75f call sub_18007F4E0 ; +0x184, 0x18001a764 test rax, rax ; +0x189, 0x18001a769 jnz loc_18001A643 ; +0x18c, 0x18001a76c xor eax, eax ; +0x192, 0x18001a772 mov rbx, [rsp+58h+arg_8] ; +0x194, 0x18001a774 add rsp, 20h ; +0x199, 0x18001a779 pop r15 ; +0x19d, 0x18001a77d pop r14 ; +0x19f, 0x18001a77f pop r13 ; +0x1a1, 0x18001a781 pop r12 ; +0x1a3, 0x18001a783 pop rdi ; +0x1a5, 0x18001a785 pop rsi ; +0x1a6, 0x18001a786 pop rbp ; +0x1a7, 0x18001a787 retn ; +0x1a8, 0x18001a788 mov eax, r13d ; +0x1a9, 0x18001a789 jmp short loc_18001A774 ; +0x1ac, 0x18001a78c