//
// sub_1401231B0 from 0x1401231b0 to 0x140123257 (167 bytes)
//
// 9 xrefs:
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1406921d7
// > ?dtor$0@?0??_wcstombs_l_helper@@YA_KPEADPEB_W_KPEAU__crt_locale_pointers@@@Z@4HA_136 @ 0x1406b0387
// > sub_1406BB960 @ 0x1406bb967
// > ??> @ 0x140897dbb
// > ??> @ 0x140897e8c
// > ??> @ 0x140897e9c
// > ??> @ 0x1408c2bef
// > ??> @ 0x1408d248b
// > ??> @ 0x1409167b4
//
// 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:26:57 +0000
//
void __fastcall sub_1401231B0(_QWORD *a1)
{
__int64 v2; // rbx
__int64 i; // rdi
_QWORD *v4; // rcx
if ( a1[1] )
{
v2 = a1[3];
for ( i = a1[4]; v2 != i; v2 += 72 )
{
sub_14003D310(v2 + 40);
sub_14003D310(v2 + 8);
}
v4 = (_QWORD *)a1[1];
if ( (unsigned __int64)(72LL * 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);
}
}