//
// sub_8B4330 from 0x8b4330 to 0x8b4388 (88 bytes)
//
// 3 xrefs:
// > engine_table_unregister @ 0x8b4600
// > engine_table_unregister @ 0x8b4608
// > ??> @ 0x8b4620
//
// 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_8B4330(int *a1, int a2)
{
int result; // r0
while ( 1 )
{
result = OPENSSL_sk_find(a1[1], a2);
if ( result < 0 )
break;
OPENSSL_sk_delete((int *)a1[1], result);
a1[3] = 0;
}
if ( a1[2] == a2 )
{
result = engine_unlocked_finish(a2, 0);
a1[2] = 0;
}
return result;
}