//
// sub_14038D5C0 from 0x14038d5c0 to 0x14038d5fc (60 bytes)
//
// 6 xrefs:
// > ?dtor$0@?0???$__acrt_get_current_directory@U__crt_win32_buffer_internal_dynamic_resizing@@@@YAHAEAV?$__crt_win32_buffer@DU__crt_win32_buffer_internal_dynamic_resizing@@@@@Z@4HA_124 @ 0x1406ad173
// > ?dtor$0@?0???$__acrt_get_current_directory@U__crt_win32_buffer_internal_dynamic_resizing@@@@YAHAEAV?$__crt_win32_buffer@DU__crt_win32_buffer_internal_dynamic_resizing@@@@@Z@4HA_126 @ 0x1406ad19f
// > ??> @ 0x1408be121
// > ??> @ 0x1408be1a3
// > ??> @ 0x140922e80
// > ??> @ 0x140922e8c
//
// 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 11:31:10 +0000
//
void __fastcall sub_14038D5C0(__int64 a1)
{
__int64 v2; // rcx
void *v3; // rcx
v2 = *(_QWORD *)(a1 + 8);
if ( v2 )
sub_1400BD560((void **)(v2 + 24), v2 + 24);
v3 = *(void **)(a1 + 8);
if ( v3 )
j_j_free(v3);
}