//
// sub_645994 from 0x645994 to 0x645a58 (196 bytes)
//
// 1 xrefs:
// > sub_61E55C @ 0x61e5f2
//
// 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
//
int __fastcall sub_645994(_DWORD *a1)
{
char *v1; // r8
_DWORD *v3; // r3
unsigned int v4; // r2
unsigned int i; // r7
int v6; // r9
char *v7; // r4
void (*v8)(void *); // r3
void *v9; // r0
void (*v10)(void *); // r3
void *v11; // r0
void (*v12)(void *); // r3
void *v13; // r0
void (*v14)(void *); // r3
void *v15; // r0
void (*v16)(void *); // r3
void *v17; // r0
void (*v18)(void *); // r3
void *v19; // r0
v1 = (char *)a1[8615];
if ( v1 )
{
v3 = (_DWORD *)a1[18];
if ( !v3 || (*v3 & 0x10) == 0 )
{
v4 = a1[208];
if ( v4 )
{
for ( i = 0; i < v4; ++i )
{
v6 = i << 6;
v7 = &v1[v6];
if ( *(_DWORD *)&v1[v6 + 12] )
{
j_j_SSL_SESSION_free();
v8 = off_ABAEB0;
v9 = *((void **)v7 + 11);
*((_DWORD *)v7 + 3) = 0;
*((_DWORD *)v7 + 5) = 0;
v8(v9);
v10 = off_ABAEB0;
v11 = *((void **)v7 + 10);
*((_DWORD *)v7 + 11) = 0;
v10(v11);
v12 = off_ABAEB0;
v13 = *((void **)v7 + 15);
*((_DWORD *)v7 + 10) = 0;
v12(v13);
v14 = off_ABAEB0;
v15 = *((void **)v7 + 14);
*((_DWORD *)v7 + 15) = 0;
v14(v15);
v16 = off_ABAEB0;
v17 = *((void **)v7 + 13);
*((_DWORD *)v7 + 14) = 0;
v16(v17);
v18 = off_ABAEB0;
v19 = *((void **)v7 + 12);
*((_DWORD *)v7 + 13) = 0;
v18(v19);
*((_DWORD *)v7 + 12) = 0;
off_ABAEB0(*(void **)&v1[v6]);
*(_DWORD *)&v1[v6] = 0;
off_ABAEB0(*((void **)v7 + 1));
*((_DWORD *)v7 + 1) = 0;
v1 = (char *)a1[8615];
v4 = a1[208];
}
}
}
off_ABAEB0(v1);
a1[8615] = 0;
}
}
return sub_644CAC((int)a1);
}