//
// ssl3_do_uncompress from 0xd33f28 to 0xd33fb0 (136 bytes)
//
// 3 xrefs:
// > ssl3_get_record @ 0xd35a8c
// > dtls1_process_record @ 0xd35ff0
// > ??> @ 0x55278
//
// 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 ssl3_do_uncompress(__int64 a1, __int64 a2)
{
__int64 v3; // x1
int v5; // w1
__int64 v6; // x2
__int64 v8; // x0
v3 = *(_QWORD *)(a2 + 40);
if ( !v3 )
{
v8 = CRYPTO_malloc(17728, "ssl/record/ssl3_record.c", 523);
*(_QWORD *)(a2 + 40) = v8;
if ( !v8 )
return 0;
v3 = v8;
}
v5 = COMP_expand_block(*(_QWORD *)(a1 + 304), v3, 0x4000, *(_QWORD *)(a2 + 24), *(unsigned int *)(a2 + 8));
if ( (v5 & 0x80000000) == 0 )
{
v6 = *(_QWORD *)(a2 + 40);
*(_DWORD *)(a2 + 8) = v5;
*(_QWORD *)(a2 + 24) = v6;
return 1;
}
return 0;
}