{"type": "func", "start": 6442567440, "end": 6442567726, "name": "sub_18001C710", "pseudocode": "// \n// sub_18001C710 from 0x18001c710 to 0x18001c82e (286 bytes)\n// \n// 12 xrefs:\n// > DS_Dictionary::DS_Dictionary @ 0x180016d65\n// > DS_Dictionary::getObjectForKey @ 0x18001a904\n// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001b99a\n// > DS_Dictionary::loadRootSubDictFromFile @ 0x18001bcc8\n// > DS_Dictionary::loadRootSubDictFromString @ 0x18001bf7e\n// > DS_Dictionary::setArrayForKey @ 0x18001e8fa\n// > DS_Dictionary::setSubDictForKey @ 0x1800205b0\n// > DS_Dictionary::stepBackToRootSubDict @ 0x18002161b\n// > <???> @ 0x18013bc18\n// > <???> @ 0x18013bc64\n// > <???> @ 0x18013bc80\n// > <???> @ 0x1801b8ba8\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:26 +0000\n// \n\n__int64 __fastcall sub_18001C710(const void **a1, __int64 *a2)\n{\n  char *v4; // rcx\n  char *v5; // rdi\n  __int64 result; // rax\n  __int64 v7; // rsi\n  unsigned __int64 v8; // rcx\n  unsigned __int64 v9; // rdx\n  unsigned __int64 v10; // rbp\n  char *v11; // r14\n  char *v12; // rcx\n  char *v13; // r8\n  _BYTE *v14; // rdx\n  size_t v15; // r8\n\n  v4 = (char *)a1[2];\n  v5 = (char *)a1[1];\n  if ( v5 == v4 )\n  {\n    v7 = (v5 - (_BYTE *)*a1) >> 3;\n    if ( v7 == 0x1FFFFFFFFFFFFFFFLL )\n      std::vector<void *>::_Xlen();\n    v8 = (v4 - (_BYTE *)*a1) >> 3;\n    v9 = v8 >> 1;\n    if ( v8 <= 0x1FFFFFFFFFFFFFFFLL - (v8 >> 1) )\n    {\n      v10 = v7 + 1;\n      if ( v9 + v8 >= v7 + 1 )\n        v10 = v9 + v8;\n      if ( v10 > 0x1FFFFFFFFFFFFFFFLL )\n        Concurrency::cancel_current_task();\n    }\n    else\n    {\n      v10 = 0x1FFFFFFFFFFFFFFFLL;\n    }\n    v11 = (char *)sub_18000CE80(8 * v10);\n    *(_QWORD *)&v11[8 * v7] = *a2;\n    v12 = v11;\n    v13 = (char *)a1[1];\n    v14 = *a1;\n    if ( v5 == v13 )\n    {\n      v15 = v13 - v14;\n    }\n    else\n    {\n      memmove(v11, v14, v5 - v14);\n      v15 = (_BYTE *)a1[1] - v5;\n      v12 = &v11[8 * v7 + 8];\n      v14 = v5;\n    }\n    memmove(v12, v14, v15);\n    return sub_1800186A0((__int64)a1, (__int64)v11, v7 + 1, v10);\n  }\n  else\n  {\n    result = *a2;\n    *(_QWORD *)v5 = *a2;\n    a1[1] = (char *)a1[1] + 8;\n  }\n  return result;\n}", "assembly": "; \n; sub_18001C710 from 0x18001c710 to 0x18001c82e (286 bytes)\n; \n; 12 xrefs:\n; > DS_Dictionary::DS_Dictionary @ 0x180016d65\n; > DS_Dictionary::getObjectForKey @ 0x18001a904\n; > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001b99a\n; > DS_Dictionary::loadRootSubDictFromFile @ 0x18001bcc8\n; > DS_Dictionary::loadRootSubDictFromString @ 0x18001bf7e\n; > DS_Dictionary::setArrayForKey @ 0x18001e8fa\n; > DS_Dictionary::setSubDictForKey @ 0x1800205b0\n; > DS_Dictionary::stepBackToRootSubDict @ 0x18002161b\n; > <???> @ 0x18013bc18\n; > <???> @ 0x18013bc64\n; > <???> @ 0x18013bc80\n; > <???> @ 0x1801b8ba8\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:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x18001c710\npush    rdi                                                            ; +0x2, 0x18001c712\npush    r15                                                            ; +0x3, 0x18001c713\nsub     rsp, 20h                                                       ; +0x5, 0x18001c715\nmov     rbx, rcx                                                       ; +0x9, 0x18001c719\nmov     r15, rdx                                                       ; +0xc, 0x18001c71c\nmov     rcx, [rcx+10h]                                                 ; +0xf, 0x18001c71f\nmov     rdi, [rbx+8]                                                   ; +0x13, 0x18001c723\ncmp     rdi, rcx                                                       ; +0x17, 0x18001c727\njz      short loc_18001C740                                            ; +0x1a, 0x18001c72a\nmov     rax, [rdx]                                                     ; +0x1c, 0x18001c72c\nmov     [rdi], rax                                                     ; +0x1f, 0x18001c72f\nadd     qword ptr [rbx+8], 8                                           ; +0x22, 0x18001c732\nadd     rsp, 20h                                                       ; +0x27, 0x18001c737\npop     r15                                                            ; +0x2b, 0x18001c73b\npop     rdi                                                            ; +0x2d, 0x18001c73d\npop     rbx                                                            ; +0x2e, 0x18001c73e\nretn                                                                   ; +0x2f, 0x18001c73f\nmov     rax, [rbx]                                                     ; +0x30, 0x18001c740\nmov     r8, 1FFFFFFFFFFFFFFFh                                          ; +0x33, 0x18001c743\nmov     [rsp+38h+arg_8], rsi                                           ; +0x3d, 0x18001c74d\nmov     rsi, rdi                                                       ; +0x42, 0x18001c752\nsub     rsi, rax                                                       ; +0x45, 0x18001c755\nsar     rsi, 3                                                         ; +0x48, 0x18001c758\ncmp     rsi, r8                                                        ; +0x4c, 0x18001c75c\njz      loc_18001C822                                                  ; +0x4f, 0x18001c75f\nsub     rcx, rax                                                       ; +0x55, 0x18001c765\nmov     [rsp+38h+arg_0], rbp                                           ; +0x58, 0x18001c768\nsar     rcx, 3                                                         ; +0x5d, 0x18001c76d\nmov     rax, r8                                                        ; +0x61, 0x18001c771\nmov     rdx, rcx                                                       ; +0x64, 0x18001c774\nmov     [rsp+38h+arg_10], r12                                          ; +0x67, 0x18001c777\nshr     rdx, 1                                                         ; +0x6c, 0x18001c77c\nlea     r12, [rsi+1]                                                   ; +0x6f, 0x18001c77f\nsub     rax, rdx                                                       ; +0x73, 0x18001c783\ncmp     rcx, rax                                                       ; +0x76, 0x18001c786\njbe     short loc_18001C7BE                                            ; +0x79, 0x18001c789\nmov     rbp, r8                                                        ; +0x7b, 0x18001c78b\nlea     rcx, ds:0[rbp*8]                                               ; +0x7e, 0x18001c78e\nmov     [rsp+38h+arg_18], r14                                          ; +0x86, 0x18001c796\ncall    sub_18000CE80                                                  ; +0x8b, 0x18001c79b\nmov     rcx, [r15]                                                     ; +0x90, 0x18001c7a0\nmov     r14, rax                                                       ; +0x93, 0x18001c7a3\nmov     [rax+rsi*8], rcx                                               ; +0x96, 0x18001c7a6\nmov     rcx, rax; void *                                               ; +0x9a, 0x18001c7aa\nmov     r8, [rbx+8]                                                    ; +0x9d, 0x18001c7ad\nmov     rdx, [rbx]; Src                                                ; +0xa1, 0x18001c7b1\ncmp     rdi, r8                                                        ; +0xa4, 0x18001c7b4\njnz     short loc_18001C7D3                                            ; +0xa7, 0x18001c7b7\nsub     r8, rdx                                                        ; +0xa9, 0x18001c7b9\njmp     short loc_18001C7F0                                            ; +0xac, 0x18001c7bc\nlea     rax, [rdx+rcx]                                                 ; +0xae, 0x18001c7be\nmov     rbp, r12                                                       ; +0xb2, 0x18001c7c2\ncmp     rax, r12                                                       ; +0xb5, 0x18001c7c5\ncmovnb  rbp, rax                                                       ; +0xb8, 0x18001c7c8\ncmp     rbp, r8                                                        ; +0xbc, 0x18001c7cc\nja      short loc_18001C828                                            ; +0xbf, 0x18001c7cf\njmp     short loc_18001C78E                                            ; +0xc1, 0x18001c7d1\nmov     r8, rdi                                                        ; +0xc3, 0x18001c7d3\nsub     r8, rdx; Size                                                  ; +0xc6, 0x18001c7d6\ncall    memmove                                                        ; +0xc9, 0x18001c7d9\nmov     r8, [rbx+8]                                                    ; +0xce, 0x18001c7de\nlea     rcx, [rsi+1]                                                   ; +0xd2, 0x18001c7e2\nsub     r8, rdi; Size                                                  ; +0xd6, 0x18001c7e6\nlea     rcx, [r14+rcx*8]; void *                                       ; +0xd9, 0x18001c7e9\nmov     rdx, rdi; Src                                                  ; +0xdd, 0x18001c7ed\ncall    memmove                                                        ; +0xe0, 0x18001c7f0\nmov     r9, rbp                                                        ; +0xe5, 0x18001c7f5\nmov     r8, r12                                                        ; +0xe8, 0x18001c7f8\nmov     rdx, r14                                                       ; +0xeb, 0x18001c7fb\nmov     rcx, rbx                                                       ; +0xee, 0x18001c7fe\nmov     r14, [rsp+38h+arg_18]                                          ; +0xf1, 0x18001c801\nmov     rbp, [rsp+38h+arg_0]                                           ; +0xf6, 0x18001c806\nmov     r12, [rsp+38h+arg_10]                                          ; +0xfb, 0x18001c80b\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x100, 0x18001c810\nadd     rsp, 20h                                                       ; +0x105, 0x18001c815\npop     r15                                                            ; +0x109, 0x18001c819\npop     rdi                                                            ; +0x10b, 0x18001c81b\npop     rbx                                                            ; +0x10c, 0x18001c81c\njmp     sub_1800186A0                                                  ; +0x10d, 0x18001c81d\ncall    ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ_0; std::vector<void *>::_Xlen(void) ; +0x112, 0x18001c822\nalign 8                                                                ; +0x117, 0x18001c827\ncall    ?cancel_current_task@Concurrency@@YAXXZ; Concurrency::cancel_current_task(void) ; +0x118, 0x18001c828\ndb 0CCh                                                                ; +0x11d, 0x18001c82d", "xrefs": ["DS_Dictionary::DS_Dictionary @ 0x180016d65", "DS_Dictionary::getObjectForKey @ 0x18001a904", "DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001b99a", "DS_Dictionary::loadRootSubDictFromFile @ 0x18001bcc8", "DS_Dictionary::loadRootSubDictFromString @ 0x18001bf7e", "DS_Dictionary::setArrayForKey @ 0x18001e8fa", "DS_Dictionary::setSubDictForKey @ 0x1800205b0", "DS_Dictionary::stepBackToRootSubDict @ 0x18002161b", "<???> @ 0x18013bc18", "<???> @ 0x18013bc64", "<???> @ 0x18013bc80", "<???> @ 0x1801b8ba8"], "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"}