//
// ColorSelectLiveOverlay::determineStartValues from 0x100596630 to 0x1005966d5 (165 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:32:29 +0000
//
__int64 __fastcall ColorSelectLiveOverlay::determineStartValues(__int64 a1)
{
__int64 result; // rax
__int16 v2; // cx
char v3; // dl
__int64 v4; // rcx
__int16 v5; // dx
char v6; // si
__int16 v7; // cx
result = *(_QWORD *)(a1 + 664);
if ( result )
{
v2 = *(_WORD *)(result + 1448);
v3 = *(_BYTE *)(result + 1450);
*(_BYTE *)(a1 + 712) = v3;
*(_WORD *)(a1 + 710) = v2;
*(_DWORD *)(a1 + 728) = *(_DWORD *)(result + 1456);
*(_WORD *)(a1 + 704) = v2;
*(_BYTE *)(a1 + 706) = v3;
}
else
{
v4 = *(_QWORD *)(a1 + 688);
result = *(_QWORD *)(a1 + 696);
v5 = *(_WORD *)(v4 + 72);
v6 = *(_BYTE *)(v4 + 74);
*(_BYTE *)(a1 + 712) = v6;
*(_WORD *)(a1 + 710) = v5;
*(_WORD *)(a1 + 704) = v5;
*(_BYTE *)(a1 + 706) = v6;
*(_DWORD *)(a1 + 728) = *(_DWORD *)(v4 + 96);
if ( result )
{
v7 = *(_WORD *)(result + 72);
result = *(unsigned __int8 *)(result + 74);
*(_BYTE *)(a1 + 709) = result;
*(_WORD *)(a1 + 707) = v7;
}
}
return result;
}