//
// sub_100720C10 from 0x100720c10 to 0x100720ce0 (208 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:13 +0000
//
bool __fastcall sub_100720C10(int *a1, __int64 a2)
{
int v2; // r13d
char *v4; // rax
char *v5; // r14
size_t v6; // r12
int *v7; // rdi
_OWORD *v8; // r15
const void *v9; // r14
_OWORD *v10; // rax
int *v11; // rdi
char *v13; // [rsp+0h] [rbp-30h]
v2 = *a1;
if ( *a1 == 1 && a1 + 4 != (int *)a2 )
{
a1[4] = *(_DWORD *)a2;
v4 = *(char **)(a2 + 24);
v5 = *(char **)(a2 + 32);
if ( v4 > v5 )
sub_1009A81B0(a1);
v6 = v5 - v4;
if ( (unsigned __int64)(v5 - v4) <= 0x10 )
{
v7 = *((int **)a1 + 5);
v8 = a1 + 6;
if ( v7 != a1 + 6 )
{
v13 = *(char **)(a2 + 24);
off_100BE07E0(v7);
v4 = v13;
}
if ( v4 != v5 )
*v8 = *(_OWORD *)v4;
LABEL_12:
*((_QWORD *)a1 + 5) = v8;
*((_QWORD *)a1 + 6) = (char *)v8 + v6;
return v2 == 1;
}
v9 = *(const void **)(a2 + 24);
v10 = (_OWORD *)off_100BE07E8();
if ( v10 )
{
v8 = v10;
memcpy(v10, v9, v6);
v11 = *((int **)a1 + 5);
if ( v11 != a1 + 6 )
off_100BE07E0(v11);
goto LABEL_12;
}
}
return v2 == 1;
}