//
// sub_140413FB0 from 0x140413fb0 to 0x140414073 (195 bytes)
//
// 9 xrefs:
// > sub_140403620 @ 0x140405598
// > sub_140403620 @ 0x1404055a2
// > sub_1406B346C @ 0x1406b3473
// > sub_1406B3478 @ 0x1406b347f
// > ??> @ 0x1408c6e42
// > ??> @ 0x1408c6e49
// > ??> @ 0x1408c7c8c
// > ??> @ 0x1408c7c9c
// > ??> @ 0x140925e38
//
// 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:04 +0000
//
void __fastcall sub_140413FB0(_QWORD *a1)
{
_QWORD *v1; // rbx
_QWORD *i; // rdi
_QWORD *v4; // r8
v1 = (_QWORD *)*a1;
if ( *a1 )
{
for ( i = (_QWORD *)a1[1]; v1 != i; v1 += 3 )
sub_1404166E0(v1);
v4 = (_QWORD *)*a1;
if ( (unsigned __int64)(24 * ((a1[2] - *a1) / 24LL)) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
}