//
// dtls_process_hello_verify from 0x7a0b2c to 0x7a0be8 (188 bytes)
//
// 2 xrefs:
// > ossl_statem_client_process_message @ 0x7a42b4
// > ??> @ 0x5cfcc
//
// 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 dtls_process_hello_verify(int a1, int *a2)
{
unsigned int v2; // r3
int v4; // r0
size_t v6; // r5
size_t v7; // r3
char *v8; // r0
v2 = a2[1];
if ( v2 <= 1
|| (v4 = *a2, *a2 += 2, a2[1] = v2 - 2, v2 == 2)
|| (v6 = *(unsigned __int8 *)(v4 + 2), v7 = v2 - 3, v8 = (char *)(v4 + 3), v6 > v7) )
{
ERR_put_error(20, 386, 159, "ssl/statem/statem_clnt.c", 883);
ssl3_send_alert((_DWORD *)a1, 2, 50);
ossl_statem_set_error(a1);
return 0;
}
else
{
*a2 = (int)&v8[v6];
a2[1] = v7 - v6;
memcpy(*(void **)(a1 + 108), v8, v6);
*(_DWORD *)(*(_DWORD *)(a1 + 108) + 256) = v6;
return 1;
}
}