//
// _errno from 0x18012fe50 to 0x18012fe70 (32 bytes)
//
// 180 xrefs:
// > sub_180053230 @ 0x180053297
// > sub_180053230 @ 0x180053309
// > sub_180053530 @ 0x18005358c
// > sub_180053530 @ 0x1800536b7
// > qsort @ 0x180127172
// > common_getenv
@ 0x180128cd2
// > common_getenv_s @ 0x180128e7f
// > __acrt_mbs_to_wcs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x180129023
// > common_stat<_stat64i32> @ 0x1801290ee
// > common_stat_handle_file_opened<_stat64i32> @ 0x180129312
// > common_stat_handle_file_opened<_stat64i32> @ 0x18012932b
// > is_usable_drive_or_unc_root @ 0x18012978d
// > is_usable_drive_or_unc_root @ 0x180129794
// > is_usable_drive_or_unc_root @ 0x1801297b7
// > is_usable_drive_or_unc_root @ 0x1801297c0
// > is_usable_drive_or_unc_root @ 0x1801297ca
// > __crt_strtox::parse_integer> @ 0x18012a565
// > __crt_strtox::parse_integer> @ 0x18012a665
// > __crt_strtox::parse_integer> @ 0x18012a719
// > __crt_strtox::parse_integer> @ 0x18012a784
// > __crt_strtox::parse_integer> @ 0x18012a864
// > __crt_strtox::parse_integer> @ 0x18012ab49
// > __crt_strtox::parse_integer> @ 0x18012adc6
// > __crt_strtox::parse_integer> @ 0x18012ae31
// > _wcstombs_l_helper @ 0x18012b4e7
// > _wcstombs_l_helper @ 0x18012b58d
// > _wcstombs_l_helper @ 0x18012b75b
// > _wcstombs_l_helper @ 0x18012b7ab
// > common_vsprintf<__crt_stdio_output::standard_base,char> @ 0x18012b897
// > common_vsprintf<__crt_stdio_output::standard_base,wchar_t> @ 0x18012ba63
// > __crt_stdio_output::formatting_buffer::ensure_buffer_is_big_enough @ 0x18012bc1e
// > __crt_stdio_output::formatting_buffer::ensure_buffer_is_big_enough @ 0x18012bcc6
// > unknown_libname_37 @ 0x18012c529
// > unknown_libname_37 @ 0x18012c566
// > unknown_libname_38 @ 0x18012c5d0
// > unknown_libname_38 @ 0x18012c60b
// > unknown_libname_39 @ 0x18012c674
// > unknown_libname_39 @ 0x18012c6af
// > __crt_stdio_output::output_processor,__crt_stdio_output::standard_base>>::process @ 0x18012c71f
// > __crt_stdio_output::output_processor,__crt_stdio_output::standard_base>>::process @ 0x18012c8e7
// > __crt_stdio_output::output_processor,__crt_stdio_output::standard_base>>::process @ 0x18012c930
// > __crt_stdio_output::output_processor,__crt_stdio_output::standard_base>>::process @ 0x18012cb5e
// > __crt_stdio_output::output_processor,__crt_stdio_output::standard_base>>::process @ 0x18012cba8
// > __crt_stdio_output::output_processor,__crt_stdio_output::standard_base>>::process @ 0x18012cdcc
// > sub_18012CDE0 @ 0x18012ce3c
// > unknown_libname_40 @ 0x18012cedf
// > sub_18012CEFC @ 0x18012cf34
// > sub_18012D06C @ 0x18012d0a9
// > sub_18012D200 @ 0x18012d23d
// > sub_18012E518 @ 0x18012e560
// > sub_18012E698 @ 0x18012e6e0
// > sub_18012E820 @ 0x18012e868
// > unknown_libname_50 @ 0x18012e9cb
// > unknown_libname_51 @ 0x18012ea53
// > unknown_libname_52 @ 0x18012eadb
// > __crt_stdio_output::output_adapter_common>::write_string_impl @ 0x18012f1b2
// > __crt_stdio_output::output_adapter_common>::write_string_impl @ 0x18012f1fd
// > sub_18012F27C @ 0x18012f2a2
// > _fclose_nolock @ 0x18012fa0e
// > fclose @ 0x18012fa97
// > _beginthreadex @ 0x180130ac9
// > common_assert_to_message_box_build_string @ 0x180130fff
// > common_assert_to_message_box_build_string @ 0x1801313b3
// > _configure_narrow_argv @ 0x180131cd4
// > _configure_narrow_argv @ 0x180131d61
// > strcpy_s @ 0x180132b15
// > strcpy_s @ 0x180132b4f
// > _set_errno_from_matherr @ 0x180133745
// > _set_errno_from_matherr @ 0x180133752
// > wcscpy_s @ 0x180134096
// > wcscpy_s @ 0x1801340d5
// > _wcsnicoll @ 0x18013441e
// > _wcsnicoll_l @ 0x18013448a
// > _wcsnicoll_l @ 0x1801344b3
// > _wcsnicoll_l @ 0x180134512
// > _strnicoll_l @ 0x1801345a3
// > _strnicoll_l @ 0x1801345c4
// > _strnicoll_l @ 0x180134629
// > _getdrive @ 0x1801347b8
// > _free_base @ 0x180134834
// > _malloc_base @ 0x18013489f
// > unknown_libname_66 @ 0x1801348e7
// > unknown_libname_66 @ 0x180134904
// > __acrt_get_full_path_name_wide<__crt_win32_buffer_public_dynamic_resizing> @ 0x18013496c
// > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_no_resizing> @ 0x180134a5c
// > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_no_resizing> @ 0x180134ab5
// > __crt_win32_buffer::detach @ 0x180134b82
// > __crt_win32_buffer::detach @ 0x180134bc0
// > _wcsicmp @ 0x180134d42
// > _wcsicmp_l @ 0x180134d9b
// > __acrt_lowio_ensure_fh_exists @ 0x1801360db
// > _free_osfhnd @ 0x180136242
// > _get_osfhandle @ 0x180136281
// > _get_osfhandle @ 0x1801362cc
// > common_loctotime_t<__int64> @ 0x180136530
// > _calloc_base @ 0x180137286
// > _mbtowc_l @ 0x1801373e9
// > _wctomb_s_l @ 0x18013746b
// > _wctomb_s_l @ 0x1801374c2
// > _wctomb_s_l @ 0x1801374fa
// > _wctomb_s_l @ 0x1801375aa
// > fp_format_a @ 0x18013762d
// > fp_format_e_internal @ 0x180137a77
// > sub_180137FE0 @ 0x18013800a
// > _fileno @ 0x1801384a1
// > _realloc_base @ 0x180138671
// > __crt_seh_guarded_call::operator @ 0x180138b53
// > sub_180138B78 @ 0x180138b90
// > sub_180138B78 @ 0x180138c01
// > common_xtox @ 0x180138f7b
// > common_xtox_s @ 0x180138fdc
// > common_xtox_s @ 0x18013900b
// > _set_error_mode @ 0x180139080
// > wcscat_s @ 0x1801390b5
// > wcscat_s @ 0x18013910b
// > wcsncat_s @ 0x18013913a
// > wcsncat_s @ 0x180139206
// > setvbuf @ 0x180139583
// > raise @ 0x1801396fa
// > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x180139990
// > common_expand_argv_wildcards @ 0x180139a66
// > __crt_seh_guarded_call::operator @ 0x18013a195
// > __crt_seh_guarded_call::operator @ 0x18013a22c
// > setmbcp_internal @ 0x18013a686
// > common_set_variable_in_environment_nolock @ 0x18013adcc
// > common_set_variable_in_environment_nolock @ 0x18013b063
// > common_set_variable_in_environment_nolock @ 0x18013b07a
// > common_set_variable_in_environment_nolock @ 0x18013b0f0
// > common_set_variable_in_environment_nolock @ 0x18013b380
// > common_set_variable_in_environment_nolock @ 0x18013b397
// > _recalloc_base @ 0x18013b604
// > _strnicmp @ 0x18013b9ea
// > _strnicmp_l @ 0x18013ba45
// > common_getdcwd @ 0x18013bef8
// > common_getdcwd @ 0x18013bf39
// > _validdrive @ 0x18013c059
// > sub_18013C6CC @ 0x18013c6d5
// > sub_18013C6FC @ 0x18013c705
// > sub_18013C72C @ 0x18013c735
// > wcsncpy_s @ 0x18013d66a
// > wcsncpy_s @ 0x18013d71d
// > __crt_mbstring::__c16rtomb_utf8 @ 0x18013d8f7
// > __crt_mbstring::__c32rtomb_utf8 @ 0x18013da07
// > __crt_mbstring::__mbsrtowcs_utf8 @ 0x18013dba5
// > sub_18013DC24 @ 0x18013dc4c
// > sub_18013DC24 @ 0x18013dc7e
// > __acrt_fltout @ 0x18013e80b
// > __acrt_fltout @ 0x18013e9c2
// > __acrt_fltout @ 0x18013ebd6
// > __acrt_fltout @ 0x18013ee80
// > __acrt_fltout @ 0x18013f07d
// > memcpy_s @ 0x18013f432
// > memcpy_s @ 0x18013f472
// > unknown_libname_72 @ 0x18013f70e
// > unknown_libname_72 @ 0x18013f72d
// > unknown_libname_73 @ 0x18013f7c6
// > unknown_libname_73 @ 0x18013f7e7
// > _isatty @ 0x18013f86d
// > _isatty @ 0x18013f8ac
// > __crt_seh_guarded_call::operator @ 0x18013f92e
// > _commit @ 0x18013f960
// > _commit @ 0x18013f9c9
// > _write @ 0x180140291
// > _write @ 0x1801402e9
// > _write @ 0x180140320
// > _write_nolock @ 0x180140383
// > _write_nolock @ 0x1801405b6
// > _write_nolock @ 0x1801405f6
// > strncpy_s @ 0x180140652
// > strncpy_s @ 0x1801406f4
// > _mbsdec_l @ 0x180140b95
// > _msize @ 0x18014117d
// > __crt_mbstring::__mbrtoc32_utf8 @ 0x1801413f8
// > _controlfp_s @ 0x180141455
// > common_lseek<__int64> @ 0x180141f0d
// > common_lseek<__int64> @ 0x180141f66
// > common_lseek<__int64> @ 0x180141f9f
// > common_lseek_nolock<__int64> @ 0x180141ff1
// > ??> @ 0x180202df8
// > ??> @ 0x180202e04
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:58 +0000
//
int *__cdecl errno()
{
__int64 v0; // rax
v0 = _acrt_getptd_noexit();
if ( v0 )
return (int *)(v0 + 32);
else
return (int *)&unk_1801B1850;
}