{"type": "func", "start": 6442553568, "end": 6442553829, "name": "sub_1800190E0", "pseudocode": "// \n// sub_1800190E0 from 0x1800190e0 to 0x1800191e5 (261 bytes)\n// \n// 11 xrefs:\n// > DS_Dictionary::setBoolForKey @ 0x18001e8e0\n// > DS_Dictionary::setFloatForKey @ 0x18001eef0\n// > DS_Dictionary::setIntegerForKey @ 0x18001f182\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f5b6\n// > DS_Dictionary::setRectForKey @ 0x18001fbd2\n// > DS_Dictionary::setStringArrayForKey @ 0x18001fe30\n// > DS_Dictionary::setStringForKey @ 0x180020072\n// > DS_Dictionary::setSubDictForKey @ 0x1800202e0\n// > DS_Dictionary::setVec2ArrayForKey @ 0x1800204d6\n// > DS_Dictionary::setVec2ForKey @ 0x180020a60\n// > <???> @ 0x1801ae920\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\nint __fastcall sub_1800190E0(char *String1, char *String2)\n{\n  int v4; // r15d\n  int v5; // eax\n  int v6; // r14d\n  int v8; // esi\n  int v9; // ebp\n  int v10; // ecx\n  int v11; // ecx\n\n  v4 = ((__int64 (*)(void))sub_18001C1A0)();\n  v5 = sub_18001C1A0(String2);\n  v6 = v5;\n  if ( !v4 )\n  {\n    if ( !v5 )\n      return stricmp(String1, String2);\n    return 1;\n  }\n  if ( !v5 )\n    return -1;\n  v8 = 0;\n  v9 = 0;\n  if ( v4 <= 0 )\n  {\nLABEL_13:\n    if ( v9 >= v6 )\n      return stricmp(String1, String2);\n    return -1;\n  }\n  while ( v9 < v6 )\n  {\n    if ( !isdigit(*String1) )\n    {\n      do\n        v10 = *++String1;\n      while ( !isdigit(v10) );\n    }\n    if ( !isdigit(*String2) )\n    {\n      do\n        v11 = *++String2;\n      while ( !isdigit(v11) );\n    }\n    if ( *String1 != *String2 )\n      return *String1 - *String2;\n    ++String1;\n    ++String2;\n    ++v8;\n    ++v9;\n    if ( v8 >= v4 )\n      goto LABEL_13;\n  }\n  if ( v8 >= v4 )\n    return stricmp(String1, String2);\n  return 1;\n}", "assembly": "; \n; sub_1800190E0 from 0x1800190e0 to 0x1800191e5 (261 bytes)\n; \n; 11 xrefs:\n; > DS_Dictionary::setBoolForKey @ 0x18001e8e0\n; > DS_Dictionary::setFloatForKey @ 0x18001eef0\n; > DS_Dictionary::setIntegerForKey @ 0x18001f182\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f5b6\n; > DS_Dictionary::setRectForKey @ 0x18001fbd2\n; > DS_Dictionary::setStringArrayForKey @ 0x18001fe30\n; > DS_Dictionary::setStringForKey @ 0x180020072\n; > DS_Dictionary::setSubDictForKey @ 0x1800202e0\n; > DS_Dictionary::setVec2ArrayForKey @ 0x1800204d6\n; > DS_Dictionary::setVec2ForKey @ 0x180020a60\n; > <???> @ 0x1801ae920\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_0], rbx                                               ; +0x0, 0x1800190e0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800190e5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800190ea\npush    rdi                                                            ; +0xf, 0x1800190ef\npush    r14                                                            ; +0x10, 0x1800190f0\npush    r15                                                            ; +0x12, 0x1800190f2\nsub     rsp, 20h                                                       ; +0x14, 0x1800190f4\nmov     rdi, rdx                                                       ; +0x18, 0x1800190f8\nmov     rbx, rcx                                                       ; +0x1b, 0x1800190fb\ncall    sub_18001C1A0                                                  ; +0x1e, 0x1800190fe\nmov     rcx, rdi                                                       ; +0x23, 0x180019103\nmov     r15d, eax                                                      ; +0x26, 0x180019106\ncall    sub_18001C1A0                                                  ; +0x29, 0x180019109\nmov     r14d, eax                                                      ; +0x2e, 0x18001910e\ntest    r15d, r15d                                                     ; +0x31, 0x180019111\njnz     short loc_18001912F                                            ; +0x34, 0x180019114\ntest    eax, eax                                                       ; +0x36, 0x180019116\njnz     loc_1800191DE                                                  ; +0x38, 0x180019118\nmov     rdx, rdi; String2                                              ; +0x3e, 0x18001911e\nmov     rcx, rbx; String1                                              ; +0x41, 0x180019121\ncall    cs:_stricmp                                                    ; +0x44, 0x180019124\njmp     loc_1800191B8                                                  ; +0x4a, 0x18001912a\ntest    r14d, r14d                                                     ; +0x4f, 0x18001912f\njz      loc_1800191B3                                                  ; +0x52, 0x180019132\nxor     esi, esi                                                       ; +0x58, 0x180019138\nmov     ebp, esi                                                       ; +0x5a, 0x18001913a\ntest    r15d, r15d                                                     ; +0x5c, 0x18001913c\njle     short loc_1800191AA                                            ; +0x5f, 0x18001913f\ncmp     ebp, r14d                                                      ; +0x61, 0x180019141\njge     loc_1800191D5                                                  ; +0x64, 0x180019144\nmovsx   ecx, byte ptr [rbx]; C                                         ; +0x6a, 0x18001914a\ncall    cs:isdigit                                                     ; +0x6d, 0x18001914d\ntest    eax, eax                                                       ; +0x73, 0x180019153\njnz     short loc_180019171                                            ; +0x75, 0x180019155\nnop     word ptr [rax+rax+00000000h]                                   ; +0x77, 0x180019157\nmovsx   ecx, byte ptr [rbx+1]; C                                       ; +0x80, 0x180019160\ninc     rbx                                                            ; +0x84, 0x180019164\ncall    cs:isdigit                                                     ; +0x87, 0x180019167\ntest    eax, eax                                                       ; +0x8d, 0x18001916d\njz      short loc_180019160                                            ; +0x8f, 0x18001916f\nmovsx   ecx, byte ptr [rdi]; C                                         ; +0x91, 0x180019171\ncall    cs:isdigit                                                     ; +0x94, 0x180019174\ntest    eax, eax                                                       ; +0x9a, 0x18001917a\njnz     short loc_180019191                                            ; +0x9c, 0x18001917c\nxchg    ax, ax                                                         ; +0x9e, 0x18001917e\nmovsx   ecx, byte ptr [rdi+1]; C                                       ; +0xa0, 0x180019180\ninc     rdi                                                            ; +0xa4, 0x180019184\ncall    cs:isdigit                                                     ; +0xa7, 0x180019187\ntest    eax, eax                                                       ; +0xad, 0x18001918d\njz      short loc_180019180                                            ; +0xaf, 0x18001918f\nmovsx   eax, byte ptr [rbx]                                            ; +0xb1, 0x180019191\nmovsx   ecx, byte ptr [rdi]                                            ; +0xb4, 0x180019194\ncmp     al, cl                                                         ; +0xb7, 0x180019197\njnz     short loc_1800191D1                                            ; +0xb9, 0x180019199\ninc     rbx                                                            ; +0xbb, 0x18001919b\ninc     rdi                                                            ; +0xbe, 0x18001919e\ninc     esi                                                            ; +0xc1, 0x1800191a1\ninc     ebp                                                            ; +0xc3, 0x1800191a3\ncmp     esi, r15d                                                      ; +0xc5, 0x1800191a5\njl      short loc_180019141                                            ; +0xc8, 0x1800191a8\ncmp     ebp, r14d                                                      ; +0xca, 0x1800191aa\njge     loc_18001911E                                                  ; +0xcd, 0x1800191ad\nmov     eax, 0FFFFFFFFh                                                ; +0xd3, 0x1800191b3\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd8, 0x1800191b8\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xdd, 0x1800191bd\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe2, 0x1800191c2\nadd     rsp, 20h                                                       ; +0xe7, 0x1800191c7\npop     r15                                                            ; +0xeb, 0x1800191cb\npop     r14                                                            ; +0xed, 0x1800191cd\npop     rdi                                                            ; +0xef, 0x1800191cf\nretn                                                                   ; +0xf0, 0x1800191d0\nsub     eax, ecx                                                       ; +0xf1, 0x1800191d1\njmp     short loc_1800191B8                                            ; +0xf3, 0x1800191d3\ncmp     esi, r15d                                                      ; +0xf5, 0x1800191d5\njge     loc_18001911E                                                  ; +0xf8, 0x1800191d8\nmov     eax, 1                                                         ; +0xfe, 0x1800191de\njmp     short loc_1800191B8                                            ; +0x103, 0x1800191e3", "xrefs": ["DS_Dictionary::setBoolForKey @ 0x18001e8e0", "DS_Dictionary::setFloatForKey @ 0x18001eef0", "DS_Dictionary::setIntegerForKey @ 0x18001f182", "DS_Dictionary::setRectArrayForKey @ 0x18001f5b6", "DS_Dictionary::setRectForKey @ 0x18001fbd2", "DS_Dictionary::setStringArrayForKey @ 0x18001fe30", "DS_Dictionary::setStringForKey @ 0x180020072", "DS_Dictionary::setSubDictForKey @ 0x1800202e0", "DS_Dictionary::setVec2ArrayForKey @ 0x1800204d6", "DS_Dictionary::setVec2ForKey @ 0x180020a60", "<???> @ 0x1801ae920"], "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"}