//
// sub_180082CC0 from 0x180082cc0 to 0x180082d2e (110 bytes)
//
// 3 xrefs:
// > sub_180082B50 @ 0x180082b98
// > sub_180082CC0 @ 0x180082ceb
// > ??> @ 0x1801b543c
//
// 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
//
char *__fastcall sub_180082CC0(__int64 a1, __int64 a2)
{
char *v2; // rax
char v4; // dl
v2 = (char *)(a2 + 1);
v4 = *(_BYTE *)(a2 + 1);
if ( v4 )
{
do
{
if ( v4 == 60 )
{
if ( v2[1] == 33 && v2[2] == 91 )
{
v2 = (char *)sub_180082CC0(a1, v2);
if ( !v2 )
return nullptr;
goto LABEL_11;
}
}
else if ( v4 == 93 && v2[1] == 93 && v2[2] == 62 )
{
return v2 + 3;
}
++v2;
LABEL_11:
v4 = *v2;
}
while ( *v2 );
}
*(_QWORD *)(a1 + 16) = v2;
*(_DWORD *)(a1 + 24) = 9;
return nullptr;
}