//
// sub_1005412C4 from 0x1005412c4 to 0x100541344 (128 bytes)
//
// 2 xrefs:
// > sub_100526FF8 @ 0x1005272c0
// > sub_100527B50 @ 0x100527eb8
//
// 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_1005412C4(__int64 *a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x19
v3 = *a1;
if ( !*a1 )
return 0;
v4 = *(_QWORD *)(v3 + 24);
if ( !v4 )
{
v4 = sub_1005DE4A4();
*(_QWORD *)(v3 + 24) = v4;
if ( !v4 )
return 0;
}
if ( !(unsigned int)sub_1005DE80C(v4, a2) )
return 0;
v5 = a2 + 28;
v6 = 1;
sub_100588508(v5, 1, 3, "ssl_cert.c", 578);
return v6;
}