//
// UISettingsGameObject::customObjectSetup from 0x14065e500 to 0x14065e690 (400 bytes)
//
// 2 xrefs:
// > ??> @ 0x140829b18
// > ??> @ 0x140931a6c
//
// 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 11:35:47 +0000
//
bool __fastcall UISettingsGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // ebp
int v7; // ebx
int v8; // eax
const char *v9; // rcx
int v10; // eax
const char *v11; // rcx
int v12; // eax
const char *v13; // rcx
int v14; // eax
const char *v15; // rcx
int v16; // eax
const char *v17; // rcx
const char *v18; // rcx
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = 9999;
if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
v9 = (const char *)(*(_QWORD *)a2 + 1632LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 1656LL) > 0xFu )
v9 = *(const char **)v9;
v8 = atoi(v9);
v7 = 0;
if ( v8 < 0 )
v8 = 0;
if ( v8 > 9999 )
v8 = 9999;
}
else
{
v7 = 0;
v8 = 0;
}
*(_DWORD *)(a1 + 1480) = v8;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 568LL) )
{
v10 = 0;
LABEL_16:
v6 = v10;
goto LABEL_17;
}
v11 = (const char *)(*(_QWORD *)a2 + 2272LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 2296LL) > 0xFu )
v11 = *(const char **)v11;
v10 = atoi(v11);
if ( v10 < 0 )
v10 = 0;
if ( v10 <= 9999 )
goto LABEL_16;
LABEL_17:
*(_DWORD *)(a1 + 1484) = v6;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3080LL) )
{
v13 = (const char *)(*(_QWORD *)a2 + 12320LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12344LL) > 0xFu )
v13 = *(const char **)v13;
v12 = atoi(v13);
}
else
{
v12 = 0;
}
*(_DWORD *)(a1 + 1856) = v12;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3088LL) )
{
v15 = (const char *)(*(_QWORD *)a2 + 12352LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12376LL) > 0xFu )
v15 = *(const char **)v15;
v14 = atoi(v15);
}
else
{
v14 = 0;
}
*(_DWORD *)(a1 + 1860) = v14;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3096LL) )
{
v17 = (const char *)(*(_QWORD *)a2 + 12384LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12408LL) > 0xFu )
v17 = *(const char **)v17;
v16 = atoi(v17);
}
else
{
v16 = 0;
}
*(_BYTE *)(a1 + 1864) = v16 != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3104LL) )
{
v18 = (const char *)(*(_QWORD *)a2 + 12416LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12440LL) > 0xFu )
v18 = *(const char **)v18;
v7 = atoi(v18);
}
*(_BYTE *)(a1 + 1865) = v7 != 0;
return v7 != 0;
}