//
// sub_100721130 from 0x100721130 to 0x1007211ae (126 bytes)
//
// 0 xrefs:
//
// 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:14 +0000
//
char __fastcall sub_100721130(__int64 a1, const char *a2, const char *a3)
{
_DWORD *v4; // rax
_DWORD *v5; // rbx
size_t v6; // r12
void *v7; // rax
void *v8; // r15
__int64 v9; // rdi
v4 = (_DWORD *)sub_100720EB0(a1, a2, 3);
if ( !v4 )
return 0;
v5 = v4;
if ( *v4 != 3 )
return 0;
if ( !a3 )
sub_1009A8240();
v6 = strlen(a3) + 1;
v7 = (void *)off_100BE07E8();
if ( !v7 )
return 0;
v8 = v7;
memcpy(v7, a3, v6);
v9 = *((_QWORD *)v5 + 2);
if ( v9 )
off_100BE07E0(v9);
*((_QWORD *)v5 + 2) = v8;
return 1;
}