{"type": "func", "start": 6442547952, "end": 6442548044, "name": "sub_180017AF0", "pseudocode": "// \n// sub_180017AF0 from 0x180017af0 to 0x180017b4c (92 bytes)\n// \n// 2 xrefs:\n// > sub_1800E0F40 @ 0x1800e0f5b\n// > <???> @ 0x1801ae710\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__int64 __fastcall sub_180017AF0(__int64 a1)\n{\n  _QWORD *v2; // rcx\n  __int64 result; // rax\n\n  v2 = *(_QWORD **)a1;\n  if ( v2 )\n  {\n    if ( ((*(_QWORD *)(a1 + 16) - (_QWORD)v2) & 0xFFFFFFFFFFFFFFF0uLL) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v2 = (_QWORD *)*(v2 - 1);\n    }\n    j_j_free_0(v2);\n    result = 0;\n    *(_QWORD *)a1 = 0;\n    *(_QWORD *)(a1 + 8) = 0;\n    *(_QWORD *)(a1 + 16) = 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_180017AF0 from 0x180017af0 to 0x180017b4c (92 bytes)\n; \n; 2 xrefs:\n; > sub_1800E0F40 @ 0x1800e0f5b\n; > <???> @ 0x1801ae710\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, 0x180017af0\nsub     rsp, 20h                                                       ; +0x2, 0x180017af2\nmov     rbx, rcx                                                       ; +0x6, 0x180017af6\nmov     rcx, [rcx]                                                     ; +0x9, 0x180017af9\ntest    rcx, rcx                                                       ; +0xc, 0x180017afc\njz      short loc_180017B3F                                            ; +0xf, 0x180017aff\nmov     rdx, [rbx+10h]                                                 ; +0x11, 0x180017b01\nsub     rdx, rcx                                                       ; +0x15, 0x180017b05\nand     rdx, 0FFFFFFFFFFFFFFF0h                                        ; +0x18, 0x180017b08\ncmp     rdx, 1000h                                                     ; +0x1c, 0x180017b0c\njb      short loc_180017B2D                                            ; +0x23, 0x180017b13\nmov     r8, [rcx-8]                                                    ; +0x25, 0x180017b15\nadd     rdx, 27h ; '''                                                 ; +0x29, 0x180017b19\nsub     rcx, r8                                                        ; +0x2d, 0x180017b1d\nlea     rax, [rcx-8]                                                   ; +0x30, 0x180017b20\ncmp     rax, 1Fh                                                       ; +0x34, 0x180017b24\nja      short loc_180017B45                                            ; +0x38, 0x180017b28\nmov     rcx, r8; Block                                                 ; +0x3a, 0x180017b2a\ncall    j_j_free_0                                                     ; +0x3d, 0x180017b2d\nxor     eax, eax                                                       ; +0x42, 0x180017b32\nmov     [rbx], rax                                                     ; +0x44, 0x180017b34\nmov     [rbx+8], rax                                                   ; +0x47, 0x180017b37\nmov     [rbx+10h], rax                                                 ; +0x4b, 0x180017b3b\nadd     rsp, 20h                                                       ; +0x4f, 0x180017b3f\npop     rbx                                                            ; +0x53, 0x180017b43\nretn                                                                   ; +0x54, 0x180017b44\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x55, 0x180017b45\ndb 0CCh                                                                ; +0x5b, 0x180017b4b", "xrefs": ["sub_1800E0F40 @ 0x1800e0f5b", "<???> @ 0x1801ae710"], "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"}