{"type": "func", "start": 6443001072, "end": 6443001239, "name": "sub_1800864F0", "pseudocode": "// \n// sub_1800864F0 from 0x1800864f0 to 0x180086597 (167 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801014e8\n// > <???> @ 0x1801b56ac\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// Hidden C++ exception states: #wind=1\nvoid __fastcall sub_1800864F0(__int64 a1, const void *a2, size_t a3)\n{\n  void **v4; // rdx\n  void *v5; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v7; // [rsp+30h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v7 = 0;\n  sub_18000CE60(Block, a2, a3);\n  v4 = Block;\n  if ( *((_QWORD *)&v7 + 1) > 0xFu )\n    v4 = (void **)Block[0];\n  sub_180007CF0((_QWORD *)(a1 + 8), v4, v7);\n  if ( *((_QWORD *)&v7 + 1) > 0xFu )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v7 + 1) + 1LL) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v5);\n  }\n}", "assembly": "; \n; sub_1800864F0 from 0x1800864f0 to 0x180086597 (167 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801014e8\n; > <???> @ 0x1801b56ac\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\npush    rbx                                                            ; +0x0, 0x1800864f0\nsub     rsp, 50h                                                       ; +0x2, 0x1800864f2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1800864f6\nxor     rax, rsp                                                       ; +0xd, 0x1800864fd\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x180086500\nmov     rbx, rcx                                                       ; +0x15, 0x180086505\nxorps   xmm0, xmm0                                                     ; +0x18, 0x180086508\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x1b, 0x18008650b\nxorps   xmm1, xmm1                                                     ; +0x20, 0x180086510\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x23, 0x180086513\nlea     rcx, [rsp+58h+Block]                                           ; +0x29, 0x180086519\ncall    sub_18000CE60                                                  ; +0x2e, 0x18008651e\nnop                                                                    ; +0x33, 0x180086523\nlea     rdx, [rsp+58h+Block]                                           ; +0x34, 0x180086524\ncmp     qword ptr [rsp+58h+var_28+8], 0Fh                              ; +0x39, 0x180086529\ncmova   rdx, [rsp+58h+Block]                                           ; +0x3f, 0x18008652f\nlea     rcx, [rbx+8]; Src                                              ; +0x45, 0x180086535\nmov     r8, qword ptr [rsp+58h+var_28]                                 ; +0x49, 0x180086539\ncall    sub_180007CF0                                                  ; +0x4e, 0x18008653e\nnop                                                                    ; +0x53, 0x180086543\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x54, 0x180086544\ncmp     rdx, 0Fh                                                       ; +0x59, 0x180086549\njbe     short loc_180086584                                            ; +0x5d, 0x18008654d\ninc     rdx                                                            ; +0x5f, 0x18008654f\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x62, 0x180086552\nmov     rax, rcx                                                       ; +0x67, 0x180086557\ncmp     rdx, 1000h                                                     ; +0x6a, 0x18008655a\njb      short loc_18008657F                                            ; +0x71, 0x180086561\nadd     rdx, 27h ; '''                                                 ; +0x73, 0x180086563\nmov     rcx, [rcx-8]                                                   ; +0x77, 0x180086567\nsub     rax, rcx                                                       ; +0x7b, 0x18008656b\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x7e, 0x18008656e\ncmp     rax, 1Fh                                                       ; +0x82, 0x180086572\njbe     short loc_18008657F                                            ; +0x86, 0x180086576\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x88, 0x180086578\ndb 0CCh                                                                ; +0x8e, 0x18008657e\ncall    j_j_free_0                                                     ; +0x8f, 0x18008657f\nmov     rcx, [rsp+58h+var_18]                                          ; +0x94, 0x180086584\nxor     rcx, rsp; StackCookie                                          ; +0x99, 0x180086589\ncall    __security_check_cookie                                        ; +0x9c, 0x18008658c\nadd     rsp, 50h                                                       ; +0xa1, 0x180086591\npop     rbx                                                            ; +0xa5, 0x180086595\nretn                                                                   ; +0xa6, 0x180086596", "xrefs": ["<???> @ 0x1801014e8", "<???> @ 0x1801b56ac"], "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"}