//
// sub_100545794 from 0x100545794 to 0x100545904 (368 bytes)
//
// 1 xrefs:
// > sub_1005834D0 @ 0x100583aac
//
// 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_100545794(_QWORD *a1, __int64 a2, int a3)
{
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x19
__int64 v9; // x21
__int64 v10; // x2
__int64 v11; // x20
__int64 v12; // x4
__int64 *v13; // x20
v6 = sub_1005DB7B0();
v7 = sub_1005DA484(v6);
v8 = v7;
if ( v7 )
{
if ( sub_1005DAB78(v7, 108, 3, a2) <= 0 )
{
v10 = 2;
v12 = 468;
}
else
{
if ( a3 == 1 )
{
v9 = sub_1005FE7C4(v8, 0, a1[21], a1[22]);
v10 = 9;
}
else
{
if ( a3 != 2 )
{
v10 = 124;
v12 = 479;
goto LABEL_14;
}
v9 = sub_100604154(v8, 0);
v10 = 13;
}
if ( v9 )
{
v13 = a1 + 38;
if ( (unsigned int)sub_100541118(v13) )
{
v11 = sub_1005453A8(*v13, v9);
}
else
{
sub_1005E0E48(20, 171, 65, "ssl_rsa.c", 386);
v11 = 0;
}
sub_1005F3CA0(v9);
goto LABEL_17;
}
v12 = 484;
}
LABEL_14:
sub_1005E0E48(20, 173, v10, "ssl_rsa.c", v12);
v11 = 0;
LABEL_17:
sub_1005DA554(v8);
return v11;
}
sub_1005E0E48(20, 173, 7, "ssl_rsa.c", 463);
return 0;
}