//
// sub_100541F88 from 0x100541f88 to 0x100541ff8 (112 bytes)
//
// 2 xrefs:
// > sub_100526FF8 @ 0x100527430
// > sub_100527B50 @ 0x100527f8c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100541F88(__int64 a1, __int64 a2, int a3, int a4)
{
_QWORD *v6; // x21
if ( a3 )
v6 = (_QWORD *)(a1 + 656);
else
v6 = (_QWORD *)(a1 + 664);
if ( *v6 )
sub_1006030DC(*v6);
*v6 = a2;
if ( a2 && a4 )
sub_100588508(a2 + 136, 1, 11, "ssl_cert.c", 1255);
return 1;
}