//
// sub_14026D2B0 from 0x14026d2b0 to 0x14026d35e (174 bytes)
//
// 4 xrefs:
// > sub_140265350 @ 0x1402653c6
// > sub_14026D2B0 @ 0x14026d32c
// > sub_14026D2B0 @ 0x14026d33e
// > ??> @ 0x1406d0ab8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_14026D2B0(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v6; // rsi
__int64 *v7; // rbx
__int64 v9; // rax
__int64 v10; // rcx
v6 = *a1;
if ( !*(_BYTE *)(a2 + 25) )
{
v7 = (__int64 *)operator new(0x28u);
*(__int64 *)((char *)v7 + 28) = *(_QWORD *)(a2 + 28);
*v7 = v6;
v7[2] = v6;
*((_WORD *)v7 + 12) = 0;
v7[1] = a3;
*((_BYTE *)v7 + 24) = *(_BYTE *)(a2 + 24);
if ( *(_BYTE *)(v6 + 25) )
v6 = (__int64)v7;
try
{
*v7 = sub_14026D2B0(a1, *(_QWORD *)a2, v7);
v7[2] = sub_14026D2B0(a1, *(_QWORD *)(a2 + 16), v7);
}
catch ( ... )
{
v9 = sub_14005EB70((__int64)a1);
sub_140093E00(v10, v9, v6);
throw;
}
}
return v6;
}