//
// sub_82960C from 0x82960c to 0x8296b0 (164 bytes)
//
// 3 xrefs:
// > sub_82ABA4 @ 0x82ac58
// > sub_82AC68 @ 0x82b6b4
// > sub_82C054 @ 0x82c1f2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:59 +0000
//
int __fastcall sub_82960C(size_t *a1, int a2)
{
_DWORD *v3; // r5
_DWORD *v4; // r6
int result; // r0
v3 = (_DWORD *)*a1;
v4 = *(_DWORD **)(*a1 + 332);
if ( !*((_BYTE *)a1 + 634) )
{
if ( a1[299] != 33 )
{
LABEL_3:
sub_83AA00(a1, 1, a1[300], a1[301], 0, *v4, -1, 0);
LABEL_4:
result = 0;
a1[298] = 0;
*((_BYTE *)a1 + 1104) = 1;
return result;
}
LABEL_8:
*(_QWORD *)*v4 = 0;
sub_820F48(v3, a2, v3[8678], v3[8679]);
sub_83AA00(a1, -1, -1, -1, 0, 0, 1, *v4);
goto LABEL_4;
}
sub_8280FC(*a1, "Doing the SSL/TLS handshake on the data stream\n");
result = sub_8554D4(a1, 1);
if ( !result )
{
if ( a1[299] != 33 )
goto LABEL_3;
goto LABEL_8;
}
return result;
}