{"type": "func", "start": 6442742352, "end": 6442742446, "name": "sub_180047250", "pseudocode": "// \n// sub_180047250 from 0x180047250 to 0x1800472ae (94 bytes)\n// \n// 10 xrefs:\n// > sub_1800E1ED0 @ 0x1800e1ed7\n// > sub_1800E1EE0 @ 0x1800e1ee7\n// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e1ef7\n// > int `std::exception_ptr::_Current_exception @ 0x1800e2f5b\n// > <???> @ 0x180137913\n// > <???> @ 0x180137919\n// > <???> @ 0x18013791f\n// > <???> @ 0x180137925\n// > <???> @ 0x18013e577\n// > <???> @ 0x1801b180c\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_180047250(__int64 a1)\n{\n  _QWORD *v2; // rcx\n  __int64 result; // rax\n\n  v2 = *(_QWORD **)a1;\n  if ( v2 )\n  {\n    if ( (unsigned __int64)(2 * ((__int64)(*(_QWORD *)(a1 + 16) - (_QWORD)v2) >> 1)) >= 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_180047250 from 0x180047250 to 0x1800472ae (94 bytes)\n; \n; 10 xrefs:\n; > sub_1800E1ED0 @ 0x1800e1ed7\n; > sub_1800E1EE0 @ 0x1800e1ee7\n; > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e1ef7\n; > int `std::exception_ptr::_Current_exception @ 0x1800e2f5b\n; > <???> @ 0x180137913\n; > <???> @ 0x180137919\n; > <???> @ 0x18013791f\n; > <???> @ 0x180137925\n; > <???> @ 0x18013e577\n; > <???> @ 0x1801b180c\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, 0x180047250\nsub     rsp, 20h                                                       ; +0x2, 0x180047252\nmov     rbx, rcx                                                       ; +0x6, 0x180047256\nmov     rcx, [rcx]                                                     ; +0x9, 0x180047259\ntest    rcx, rcx                                                       ; +0xc, 0x18004725c\njz      short loc_1800472A1                                            ; +0xf, 0x18004725f\nmov     rdx, [rbx+10h]                                                 ; +0x11, 0x180047261\nsub     rdx, rcx                                                       ; +0x15, 0x180047265\nsar     rdx, 1                                                         ; +0x18, 0x180047268\nadd     rdx, rdx                                                       ; +0x1b, 0x18004726b\ncmp     rdx, 1000h                                                     ; +0x1e, 0x18004726e\njb      short loc_18004728F                                            ; +0x25, 0x180047275\nmov     r8, [rcx-8]                                                    ; +0x27, 0x180047277\nadd     rdx, 27h ; '''                                                 ; +0x2b, 0x18004727b\nsub     rcx, r8                                                        ; +0x2f, 0x18004727f\nlea     rax, [rcx-8]                                                   ; +0x32, 0x180047282\ncmp     rax, 1Fh                                                       ; +0x36, 0x180047286\nja      short loc_1800472A7                                            ; +0x3a, 0x18004728a\nmov     rcx, r8; Block                                                 ; +0x3c, 0x18004728c\ncall    j_j_free_0                                                     ; +0x3f, 0x18004728f\nxor     eax, eax                                                       ; +0x44, 0x180047294\nmov     [rbx], rax                                                     ; +0x46, 0x180047296\nmov     [rbx+8], rax                                                   ; +0x49, 0x180047299\nmov     [rbx+10h], rax                                                 ; +0x4d, 0x18004729d\nadd     rsp, 20h                                                       ; +0x51, 0x1800472a1\npop     rbx                                                            ; +0x55, 0x1800472a5\nretn                                                                   ; +0x56, 0x1800472a6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x57, 0x1800472a7\ndb 0CCh                                                                ; +0x5d, 0x1800472ad", "xrefs": ["sub_1800E1ED0 @ 0x1800e1ed7", "sub_1800E1EE0 @ 0x1800e1ee7", "int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e1ef7", "int `std::exception_ptr::_Current_exception @ 0x1800e2f5b", "<???> @ 0x180137913", "<???> @ 0x180137919", "<???> @ 0x18013791f", "<???> @ 0x180137925", "<???> @ 0x18013e577", "<???> @ 0x1801b180c"], "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"}