//
// RAND_add from 0x82a010 to 0x82a054 (68 bytes)
//
// 17 xrefs:
// > sub_643938 @ 0x6439de
// > sub_64518C @ 0x6451e0
// > sub_79ED8C @ 0x79edcc
// > EVP_PKEY2PKCS8 @ 0x803ed8
// > PEM_ASN1_write_bio @ 0x8220b8
// > RAND_load_file @ 0x82a178
// > RAND_load_file @ 0x82a1f4
// > RAND_load_file @ 0x82a258
// > RSA_setup_blinding @ 0x82d558
// > BN_rand @ 0x8706e0
// > BN_pseudo_rand @ 0x8708a8
// > BN_bntest_rand @ 0x870a74
// > RAND_poll @ 0x8bd930
// > RAND_poll @ 0x8bd958
// > RAND_poll @ 0x8bd974
// > RAND_poll @ 0x8bd994
// > ??> @ 0x550fc
//
// 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 RAND_add(int a1, int a2, int a3, int a4)
{
int result; // r0
int (__fastcall *v9)(int, int, int, int); // r12
result = RAND_get_rand_method();
if ( result )
{
v9 = *(int (__fastcall **)(int, int, int, int))(result + 12);
if ( v9 )
return v9(a1, a2, a3, a4);
}
return result;
}