//
// sub_140418990 from 0x140418990 to 0x140418a2d (157 bytes)
//
// 5 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_142 @ 0x1406b43b7
// > ??> @ 0x1408c859f
// > ??> @ 0x1408c8718
// > ??> @ 0x1408c8728
// > ??> @ 0x1409264c8
//
// 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:32:05 +0000
//
void __fastcall sub_140418990(_QWORD *a1)
{
_QWORD *v2; // rbx
_QWORD *i; // rdi
_QWORD *v4; // rcx
if ( a1[1] )
{
v2 = (_QWORD *)a1[3];
for ( i = (_QWORD *)a1[4]; v2 != i; v2 += 3 )
sub_1404166E0(v2);
v4 = (_QWORD *)a1[1];
if ( (unsigned __int64)(24LL * a1[2]) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
}
}