//
// sub_100095B40 from 0x100095b40 to 0x100095bdc (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b44c8
//
// 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
//
_BYTE *__fastcall sub_100095B40(__int64 a1, char *a2)
{
char v2; // cl
_BYTE *result; // rax
_BYTE *v4; // rbx
_BYTE *v5; // r12
__int64 v6; // rax
v2 = *a2;
if ( *a2 )
{
result = a2 + 3;
while ( v2 != 45 || *(result - 2) != 45 || *(result - 1) != 62 )
{
v2 = *(result - 2);
++result;
if ( !v2 )
goto LABEL_11;
}
v4 = result - 3;
if ( (*(_BYTE *)(a1 + 25) & 2) != 0 )
{
if ( *(_QWORD *)(a1 + 32) )
{
v5 = result;
operator delete[](*(void **)(a1 + 32));
result = v5;
}
}
*(_QWORD *)(a1 + 32) = a2;
*(_QWORD *)(a1 + 40) = v4;
*(_DWORD *)(a1 + 24) = 258;
}
else
{
LABEL_11:
v6 = *(_QWORD *)(a1 + 8);
*(_DWORD *)(v6 + 92) = 12;
*(_QWORD *)(v6 + 104) = a2;
*(_QWORD *)(v6 + 112) = 0;
return nullptr;
}
return result;
}