//
// _free_base from 0x180134814 to 0x180134851 (61 bytes)
//
// 171 xrefs:
// > __acrt_mbs_to_wcs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x180128f82
// > __acrt_mbs_to_wcs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x180128fae
// > __acrt_mbs_to_wcs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x18012903e
// > _stat64i32 @ 0x180129917
// > _stat64i32 @ 0x180129939
// > free @ 0x18012b808
// > common_vsprintf<__crt_stdio_output::standard_base,char> @ 0x18012b9c1
// > common_vsprintf<__crt_stdio_output::standard_base,wchar_t> @ 0x18012bb93
// > __crt_stdio_output::formatting_buffer::ensure_buffer_is_big_enough @ 0x18012bc69
// > __crt_stdio_output::formatting_buffer::ensure_buffer_is_big_enough @ 0x18012bc81
// > __crt_stdio_output::formatting_buffer::ensure_buffer_is_big_enough @ 0x18012bd14
// > __crt_stdio_output::formatting_buffer::ensure_buffer_is_big_enough @ 0x18012bd2c
// > _lambda_7e489fec146d5348dbc86d3cce37c1b5_::operator @ 0x18012c396
// > __acrt_initialize_stdio @ 0x18012f8a6
// > __acrt_initialize_stdio @ 0x18012f8d0
// > __acrt_uninitialize_stdio @ 0x18012f9d0
// > _fclose_nolock @ 0x18012fa60
// > create_thread_parameter @ 0x180130a77
// > _beginthreadex @ 0x180130b58
// > __acrt_allocate_buffer_for_argv @ 0x180131c97
// > _configure_narrow_argv @ 0x180131d6f
// > _configure_narrow_argv @ 0x180131dcb
// > _configure_narrow_argv @ 0x180131dd7
// > _configure_narrow_argv @ 0x180131e0e
// > _configure_narrow_argv @ 0x180131e1a
// > common_initialize_environment_nolock @ 0x180131e86
// > common_initialize_environment_nolock @ 0x180131e8e
// > common_initialize_environment_nolock @ 0x180131eed
// > common_initialize_environment_nolock @ 0x180131ef5
// > create_environment @ 0x180131fba
// > create_environment @ 0x180131fce
// > create_environment @ 0x180131fda
// > create_environment @ 0x1801320ce
// > create_environment @ 0x1801320e3
// > create_environment @ 0x1801320ef
// > unknown_libname_62 @ 0x180132141
// > unknown_libname_62 @ 0x180132155
// > unknown_libname_63 @ 0x180132185
// > unknown_libname_63 @ 0x180132199
// > initialize_environment_by_cloning_nolock @ 0x180132256
// > initialize_environment_by_cloning_nolock @ 0x180132273
// > initialize_environment_by_cloning_nolock @ 0x18013230e
// > initialize_environment_by_cloning_nolock @ 0x180132327
// > _lambda_22ebabd17bc4fa466a2aca6d8deb888d_::operator @ 0x180132534
// > _lambda_22ebabd17bc4fa466a2aca6d8deb888d_::operator @ 0x180132558
// > _lambda_f03950bc5685219e0bcd2087efbe011e_::operator @ 0x18013271e
// > uninitialize_allocated_memory @ 0x1801328ec
// > uninitialize_allocated_io_buffers @ 0x18013290b
// > uninitialize_allocated_io_buffers @ 0x18013291f
// > uninitialize_allocated_io_buffers @ 0x180132933
// > uninitialize_allocated_io_buffers @ 0x180132947
// > _getdrive @ 0x1801347e6
// > __crt_seh_guarded_call::operator @ 0x18013500b
// > Concurrency::details::SchedulerProxy::DeleteThis @ 0x180135109
// > destroy_ptd_array @ 0x180135159
// > destroy_ptd_array @ 0x180135166
// > destroy_ptd_array @ 0x180135173
// > destroy_ptd_array @ 0x180135180
// > destroy_ptd_array @ 0x18013518d
// > destroy_ptd_array @ 0x18013519a
// > destroy_ptd_array @ 0x1801351a7
// > destroy_ptd_array @ 0x1801351b4
// > destroy_ptd_array @ 0x1801351c4
// > destroy_ptd_array @ 0x1801351d4
// > __acrt_freeptd @ 0x1801352aa
// > __acrt_getptd @ 0x18013532c
// > __acrt_getptd @ 0x18013535b
// > __acrt_getptd_head @ 0x1801353eb
// > __acrt_getptd_head @ 0x18013541a
// > __acrt_getptd_noexit @ 0x1801354a8
// > __acrt_getptd_noexit @ 0x1801354d7
// > __acrt_lowio_create_handle_array @ 0x18013604c
// > __acrt_lowio_destroy_handle_array @ 0x1801360a7
// > __acrt_stdio_begin_temporary_buffering_nolock @ 0x1801385af
// > _realloc_base @ 0x180138664
// > _fcloseall @ 0x18013873f
// > __acrt_stdio_free_buffer_nolock @ 0x180138ae5
// > _lambda_b4f66040be5f354a654fb75160c27bfc_::operator @ 0x1801394a0
// > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1801398e6
// > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x180139913
// > __acrt_wcs_to_mbs_cp<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1801399ae
// > common_expand_argv_wildcards @ 0x180139bdc
// > common_expand_argv_wildcards @ 0x180139c01
// > common_expand_argv_wildcards @ 0x180139c15
// > copy_and_add_argument_to_buffer @ 0x180139d2d
// > copy_and_add_argument_to_buffer @ 0x180139d77
// > copy_and_add_argument_to_buffer @ 0x180139d7f
// > copy_and_add_argument_to_buffer @ 0x180139d8b
// > copy_and_add_argument_to_buffer @ 0x180139dac
// > _wsetlocale_set_cat @ 0x18013a040
// > _wsetlocale_set_cat @ 0x18013a099
// > _wsetlocale_set_cat @ 0x18013a0b1
// > __crt_seh_guarded_call::operator @ 0x18013a268
// > setmbcp_internal @ 0x18013a697
// > setmbcp_internal @ 0x18013a6e3
// > update_thread_multibyte_data_internal @ 0x18013a7d0
// > __dcrt_get_narrow_environment_from_os @ 0x18013accf
// > __dcrt_get_wide_environment_from_os @ 0x18013ad81
// > common_set_variable_in_environment_nolock @ 0x18013ae9e
// > common_set_variable_in_environment_nolock @ 0x18013aed7
// > common_set_variable_in_environment_nolock @ 0x18013af4e
// > common_set_variable_in_environment_nolock @ 0x18013af89
// > common_set_variable_in_environment_nolock @ 0x18013afdc
// > common_set_variable_in_environment_nolock @ 0x18013b073
// > common_set_variable_in_environment_nolock @ 0x18013b094
// > common_set_variable_in_environment_nolock @ 0x18013b1c0
// > common_set_variable_in_environment_nolock @ 0x18013b1f9
// > common_set_variable_in_environment_nolock @ 0x18013b26d
// > common_set_variable_in_environment_nolock @ 0x18013b2a9
// > common_set_variable_in_environment_nolock @ 0x18013b2fd
// > common_set_variable_in_environment_nolock @ 0x18013b390
// > common_set_variable_in_environment_nolock @ 0x18013b3b1
// > copy_environment @ 0x18013b47c
// > copy_environment @ 0x18013b4a8
// > copy_environment @ 0x18013b56f
// > copy_environment @ 0x18013b59b
// > InternalCompareStringA @ 0x18013bdec
// > InternalCompareStringA @ 0x18013be06
// > __acrt_free_locale @ 0x18013c275
// > __acrt_free_locale @ 0x18013c297
// > __acrt_free_locale @ 0x18013c2af
// > __acrt_free_locale @ 0x18013c2bb
// > __acrt_free_locale @ 0x18013c2df
// > __acrt_free_locale @ 0x18013c2f3
// > __acrt_free_locale @ 0x18013c302
// > __acrt_free_locale @ 0x18013c30e
// > __acrt_free_locale @ 0x18013c349
// > __acrt_free_locale @ 0x18013c351
// > __acrt_free_locale @ 0x18013c36b
// > __acrt_free_locale @ 0x18013c395
// > __acrt_locale_free_lc_time_if_unreferenced @ 0x18013c3ef
// > tzset_from_environment_nolock @ 0x18013cde4
// > tzset_from_environment_nolock @ 0x18013cf90
// > tzset_from_system_nolock @ 0x18013d024
// > tzset_nolock @ 0x18013d1cb
// > tzset_nolock @ 0x18013d1f6
// > tzset_nolock @ 0x18013d226
// > __free_lconv_mon @ 0x18013d38e
// > __free_lconv_mon @ 0x18013d3a0
// > __free_lconv_mon @ 0x18013d3b2
// > __free_lconv_mon @ 0x18013d3c4
// > __free_lconv_mon @ 0x18013d3d6
// > __free_lconv_mon @ 0x18013d3e8
// > __free_lconv_mon @ 0x18013d3fa
// > __free_lconv_mon @ 0x18013d40c
// > __free_lconv_mon @ 0x18013d41e
// > __free_lconv_mon @ 0x18013d430
// > __free_lconv_mon @ 0x18013d445
// > __free_lconv_mon @ 0x18013d45a
// > __free_lconv_mon @ 0x18013d46f
// > __free_lconv_num @ 0x18013d495
// > __free_lconv_num @ 0x18013d4a7
// > __free_lconv_num @ 0x18013d4b9
// > __free_lconv_num @ 0x18013d4cb
// > __free_lconv_num @ 0x18013d4dd
// > free_crt_array_internal @ 0x18013d51f
// > __acrt_locale_free_time @ 0x18013d5a4
// > __acrt_locale_free_time @ 0x18013d5b0
// > __acrt_locale_free_time @ 0x18013d5bc
// > __acrt_locale_free_time @ 0x18013d60f
// > __acrt_locale_free_time @ 0x18013d61b
// > __acrt_locale_free_time @ 0x18013d627
// > __acrt_locale_free_time @ 0x18013d633
// > __acrt_GetStringTypeA @ 0x18013d87b
// > __acrt_LCMapStringA_stat @ 0x180140ec2
// > __acrt_LCMapStringA_stat @ 0x180140eda
// > __acrt_LCMapStringA_stat @ 0x180140f22
// > __acrt_SetEnvironmentVariableA @ 0x180141140
// > __acrt_SetEnvironmentVariableA @ 0x18014114f
// > __acrt_stdio_allocate_buffer_nolock @ 0x1801420a2
// > ??> @ 0x180203284
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __cdecl free_base(void *Block)
{
int *v1; // rbx
DWORD LastError; // eax
if ( Block )
{
if ( !HeapFree(hHeap, 0, Block) )
{
v1 = errno();
LastError = GetLastError();
*v1 = _acrt_errno_from_os_error(LastError);
}
}
}