{"type": "func", "start": 6442552576, "end": 6442552828, "name": "sub_180018D00", "pseudocode": "// \n// sub_180018D00 from 0x180018d00 to 0x180018dfc (252 bytes)\n// \n// 11 xrefs:\n// > DS_Dictionary::setBoolForKey @ 0x18001eab0\n// > DS_Dictionary::setFloatForKey @ 0x18001f090\n// > DS_Dictionary::setIntegerForKey @ 0x18001f322\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f770\n// > DS_Dictionary::setRectForKey @ 0x18001fdb0\n// > DS_Dictionary::setStringArrayForKey @ 0x180020030\n// > DS_Dictionary::setStringForKey @ 0x180020272\n// > DS_Dictionary::setSubDictForKey @ 0x1800204e0\n// > DS_Dictionary::setVec2ArrayForKey @ 0x1800206d0\n// > DS_Dictionary::setVec2ForKey @ 0x180020c85\n// > <???> @ 0x1801b898c\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 11:21:25 +0000\n// \n\nint __fastcall sub_180018D00(char *String1, char *String2)\n{\n  int v4; // r15d\n  int v5; // eax\n  int v6; // r14d\n  int v8; // ebp\n  int v9; // esi\n  int v10; // ecx\n  int v11; // ecx\n\n  v4 = ((__int64 (*)(void))sub_18001C060)();\n  v5 = sub_18001C060(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  return 1;\n}", "assembly": "; \n; sub_180018D00 from 0x180018d00 to 0x180018dfc (252 bytes)\n; \n; 11 xrefs:\n; > DS_Dictionary::setBoolForKey @ 0x18001eab0\n; > DS_Dictionary::setFloatForKey @ 0x18001f090\n; > DS_Dictionary::setIntegerForKey @ 0x18001f322\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f770\n; > DS_Dictionary::setRectForKey @ 0x18001fdb0\n; > DS_Dictionary::setStringArrayForKey @ 0x180020030\n; > DS_Dictionary::setStringForKey @ 0x180020272\n; > DS_Dictionary::setSubDictForKey @ 0x1800204e0\n; > DS_Dictionary::setVec2ArrayForKey @ 0x1800206d0\n; > DS_Dictionary::setVec2ForKey @ 0x180020c85\n; > <???> @ 0x1801b898c\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 11:21:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180018d00\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180018d05\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180018d0a\npush    rdi                                                            ; +0xf, 0x180018d0f\npush    r14                                                            ; +0x10, 0x180018d10\npush    r15                                                            ; +0x12, 0x180018d12\nsub     rsp, 20h                                                       ; +0x14, 0x180018d14\nmov     rdi, rdx                                                       ; +0x18, 0x180018d18\nmov     rbx, rcx                                                       ; +0x1b, 0x180018d1b\ncall    sub_18001C060                                                  ; +0x1e, 0x180018d1e\nmov     rcx, rdi                                                       ; +0x23, 0x180018d23\nmov     r15d, eax                                                      ; +0x26, 0x180018d26\ncall    sub_18001C060                                                  ; +0x29, 0x180018d29\nmov     r14d, eax                                                      ; +0x2e, 0x180018d2e\ntest    r15d, r15d                                                     ; +0x31, 0x180018d31\njnz     short loc_180018D4F                                            ; +0x34, 0x180018d34\ntest    eax, eax                                                       ; +0x36, 0x180018d36\njnz     loc_180018DF5                                                  ; +0x38, 0x180018d38\nmov     rdx, rdi; String2                                              ; +0x3e, 0x180018d3e\nmov     rcx, rbx; String1                                              ; +0x41, 0x180018d41\ncall    cs:_stricmp                                                    ; +0x44, 0x180018d44\njmp     loc_180018DD8                                                  ; +0x4a, 0x180018d4a\ntest    r14d, r14d                                                     ; +0x4f, 0x180018d4f\njz      loc_180018DD3                                                  ; +0x52, 0x180018d52\nxor     ebp, ebp                                                       ; +0x58, 0x180018d58\nmov     esi, ebp                                                       ; +0x5a, 0x180018d5a\ntest    r15d, r15d                                                     ; +0x5c, 0x180018d5c\njle     short loc_180018DCA                                            ; +0x5f, 0x180018d5f\ncmp     esi, r14d                                                      ; +0x61, 0x180018d61\njge     loc_180018DF5                                                  ; +0x64, 0x180018d64\nmovsx   ecx, byte ptr [rbx]; C                                         ; +0x6a, 0x180018d6a\ncall    cs:isdigit                                                     ; +0x6d, 0x180018d6d\ntest    eax, eax                                                       ; +0x73, 0x180018d73\njnz     short loc_180018D91                                            ; +0x75, 0x180018d75\nnop     word ptr [rax+rax+00000000h]                                   ; +0x77, 0x180018d77\nmovsx   ecx, byte ptr [rbx+1]; C                                       ; +0x80, 0x180018d80\ninc     rbx                                                            ; +0x84, 0x180018d84\ncall    cs:isdigit                                                     ; +0x87, 0x180018d87\ntest    eax, eax                                                       ; +0x8d, 0x180018d8d\njz      short loc_180018D80                                            ; +0x8f, 0x180018d8f\nmovsx   ecx, byte ptr [rdi]; C                                         ; +0x91, 0x180018d91\ncall    cs:isdigit                                                     ; +0x94, 0x180018d94\ntest    eax, eax                                                       ; +0x9a, 0x180018d9a\njnz     short loc_180018DB1                                            ; +0x9c, 0x180018d9c\nxchg    ax, ax                                                         ; +0x9e, 0x180018d9e\nmovsx   ecx, byte ptr [rdi+1]; C                                       ; +0xa0, 0x180018da0\ninc     rdi                                                            ; +0xa4, 0x180018da4\ncall    cs:isdigit                                                     ; +0xa7, 0x180018da7\ntest    eax, eax                                                       ; +0xad, 0x180018dad\njz      short loc_180018DA0                                            ; +0xaf, 0x180018daf\nmovsx   eax, byte ptr [rbx]                                            ; +0xb1, 0x180018db1\nmovsx   ecx, byte ptr [rdi]                                            ; +0xb4, 0x180018db4\ncmp     al, cl                                                         ; +0xb7, 0x180018db7\njnz     short loc_180018DF1                                            ; +0xb9, 0x180018db9\ninc     rbx                                                            ; +0xbb, 0x180018dbb\ninc     rdi                                                            ; +0xbe, 0x180018dbe\ninc     ebp                                                            ; +0xc1, 0x180018dc1\ninc     esi                                                            ; +0xc3, 0x180018dc3\ncmp     ebp, r15d                                                      ; +0xc5, 0x180018dc5\njl      short loc_180018D61                                            ; +0xc8, 0x180018dc8\ncmp     esi, r14d                                                      ; +0xca, 0x180018dca\njge     loc_180018D3E                                                  ; +0xcd, 0x180018dcd\nmov     eax, 0FFFFFFFFh                                                ; +0xd3, 0x180018dd3\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd8, 0x180018dd8\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xdd, 0x180018ddd\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe2, 0x180018de2\nadd     rsp, 20h                                                       ; +0xe7, 0x180018de7\npop     r15                                                            ; +0xeb, 0x180018deb\npop     r14                                                            ; +0xed, 0x180018ded\npop     rdi                                                            ; +0xef, 0x180018def\nretn                                                                   ; +0xf0, 0x180018df0\nsub     eax, ecx                                                       ; +0xf1, 0x180018df1\njmp     short loc_180018DD8                                            ; +0xf3, 0x180018df3\nmov     eax, 1                                                         ; +0xf5, 0x180018df5\njmp     short loc_180018DD8                                            ; +0xfa, 0x180018dfa", "xrefs": ["DS_Dictionary::setBoolForKey @ 0x18001eab0", "DS_Dictionary::setFloatForKey @ 0x18001f090", "DS_Dictionary::setIntegerForKey @ 0x18001f322", "DS_Dictionary::setRectArrayForKey @ 0x18001f770", "DS_Dictionary::setRectForKey @ 0x18001fdb0", "DS_Dictionary::setStringArrayForKey @ 0x180020030", "DS_Dictionary::setStringForKey @ 0x180020272", "DS_Dictionary::setSubDictForKey @ 0x1800204e0", "DS_Dictionary::setVec2ArrayForKey @ 0x1800206d0", "DS_Dictionary::setVec2ForKey @ 0x180020c85", "<???> @ 0x1801b898c"], "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"}