//
// sub_10041EC80 from 0x10041ec80 to 0x10041ecdf (95 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:30:14 +0000
//
__int64 __fastcall sub_10041EC80(__int64 a1)
{
__int64 result; // rax
int v2; // eax
int v3; // [rsp-14h] [rbp-14h] BYREF
if ( *(_BYTE *)(a1 + 448) == 1 )
{
if ( *(_QWORD *)(a1 + 440) )
{
v3 = HIDWORD(result);
v2 = GameToolbox::transformColor_1(a1 + 424, *(_QWORD *)(a1 + 384), *(double *)(a1 + 376));
LOWORD(v3) = v2;
BYTE2(v3) = BYTE2(v2);
return (*(__int64 (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 440) + 960LL))(*(_QWORD *)(a1 + 440), &v3);
}
}
return result;
}