//
// sub_100727680 from 0x100727680 to 0x10072773a (186 bytes)
//
// 2 xrefs:
// > sub_100727490 @ 0x100727546
// > sub_100727680 @ 0x100727702
//
// 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 12:36:17 +0000
//
char *__fastcall sub_100727680(__int64 a1, _BYTE *a2, __int64 a3)
{
char *v3; // rax
char v4; // cl
__int64 v5; // r14
if ( *a2 != 60 || a2[1] != 33 || a2[2] != 91 )
sub_1009A8EA0();
v3 = a2 + 1;
v4 = 33;
v5 = 0;
LABEL_7:
while ( v4 == 93 )
{
if ( v3[1] == 93 && v3[2] == 62 )
return v3 + 3;
LABEL_6:
while ( 1 )
{
v4 = *++v3;
if ( *v3 != 60 )
break;
while ( v3[1] == 33 && v3[2] == 91 )
{
v3 = (char *)sub_100727680(a1, v3, a3);
if ( !v3 )
return (char *)v5;
v4 = *v3;
if ( *v3 != 60 )
goto LABEL_7;
}
}
}
if ( v4 )
goto LABEL_6;
*(_QWORD *)(a1 + 16) = v3;
*(_DWORD *)(a1 + 24) = 9;
return nullptr;
}