//
// sub_14035D0E0 from 0x14035d0e0 to 0x14035d141 (97 bytes)
//
// 8 xrefs:
// > sub_140403620 @ 0x140403d22
// > sub_1406AF7AC @ 0x1406af7b3
// > ?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_129 @ 0x1406af827
// > sub_1406B2997 @ 0x1406b299e
// > ??> @ 0x1408c1e3d
// > ??> @ 0x1408c1ee3
// > ??> @ 0x1408c567a
// > ??> @ 0x14092108c
//
// 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:30:51 +0000
//
void __fastcall sub_14035D0E0(__int64 a1)
{
_QWORD *v2; // rcx
v2 = *(_QWORD **)(a1 + 8);
if ( v2 )
{
if ( (unsigned __int64)(8LL * *(_QWORD *)(a1 + 16)) >= 0x1000 )
{
if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v2 = (_QWORD *)*(v2 - 1);
}
j_j_free(v2);
}
}