{"type": "func", "start": 6442547856, "end": 6442547948, "name": "sub_180017A90", "pseudocode": "// \n// sub_180017A90 from 0x180017a90 to 0x180017aec (92 bytes)\n// \n// 7 xrefs:\n// > sub_1800E0E00 @ 0x1800e0e0e\n// > sub_1800E0FB0 @ 0x1800e0fcb\n// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e29c7\n// > sub_1800E2AA0 @ 0x1800e2aab\n// > sub_1800E2B00 @ 0x1800e2b0b\n// > <???> @ 0x18013aef7\n// > <???> @ 0x1801ae704\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_180017A90(__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) & 0xFFFFFFFFFFFFFFF8uLL) >= 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_180017A90 from 0x180017a90 to 0x180017aec (92 bytes)\n; \n; 7 xrefs:\n; > sub_1800E0E00 @ 0x1800e0e0e\n; > sub_1800E0FB0 @ 0x1800e0fcb\n; > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e29c7\n; > sub_1800E2AA0 @ 0x1800e2aab\n; > sub_1800E2B00 @ 0x1800e2b0b\n; > <???> @ 0x18013aef7\n; > <???> @ 0x1801ae704\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, 0x180017a90\nsub     rsp, 20h                                                       ; +0x2, 0x180017a92\nmov     rbx, rcx                                                       ; +0x6, 0x180017a96\nmov     rcx, [rcx]                                                     ; +0x9, 0x180017a99\ntest    rcx, rcx                                                       ; +0xc, 0x180017a9c\njz      short loc_180017ADF                                            ; +0xf, 0x180017a9f\nmov     rdx, [rbx+10h]                                                 ; +0x11, 0x180017aa1\nsub     rdx, rcx                                                       ; +0x15, 0x180017aa5\nand     rdx, 0FFFFFFFFFFFFFFF8h                                        ; +0x18, 0x180017aa8\ncmp     rdx, 1000h                                                     ; +0x1c, 0x180017aac\njb      short loc_180017ACD                                            ; +0x23, 0x180017ab3\nmov     r8, [rcx-8]                                                    ; +0x25, 0x180017ab5\nadd     rdx, 27h ; '''                                                 ; +0x29, 0x180017ab9\nsub     rcx, r8                                                        ; +0x2d, 0x180017abd\nlea     rax, [rcx-8]                                                   ; +0x30, 0x180017ac0\ncmp     rax, 1Fh                                                       ; +0x34, 0x180017ac4\nja      short loc_180017AE5                                            ; +0x38, 0x180017ac8\nmov     rcx, r8; Block                                                 ; +0x3a, 0x180017aca\ncall    j_j_free_0                                                     ; +0x3d, 0x180017acd\nxor     eax, eax                                                       ; +0x42, 0x180017ad2\nmov     [rbx], rax                                                     ; +0x44, 0x180017ad4\nmov     [rbx+8], rax                                                   ; +0x47, 0x180017ad7\nmov     [rbx+10h], rax                                                 ; +0x4b, 0x180017adb\nadd     rsp, 20h                                                       ; +0x4f, 0x180017adf\npop     rbx                                                            ; +0x53, 0x180017ae3\nretn                                                                   ; +0x54, 0x180017ae4\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x55, 0x180017ae5\ndb 0CCh                                                                ; +0x5b, 0x180017aeb", "xrefs": ["sub_1800E0E00 @ 0x1800e0e0e", "sub_1800E0FB0 @ 0x1800e0fcb", "int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e29c7", "sub_1800E2AA0 @ 0x1800e2aab", "sub_1800E2B00 @ 0x1800e2b0b", "<???> @ 0x18013aef7", "<???> @ 0x1801ae704"], "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"}