//
// sub_839828 from 0x839828 to 0x8398ac (132 bytes)
//
// 3 xrefs:
// > UI_free @ 0x839c04
// > UI_free @ 0x839c0c
// > ??> @ 0x839c4c
//
// 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
//
void __fastcall sub_839828(void **a1)
{
if ( ((unsigned int)a1[7] & 1) != 0 )
{
CRYPTO_free(a1[1], (int)"crypto/ui/ui_lib.c", 56);
if ( *a1 == (char *)&dword_0 + 3 )
{
CRYPTO_free(a1[4], (int)"crypto/ui/ui_lib.c", 59);
CRYPTO_free(a1[5], (int)"crypto/ui/ui_lib.c", 60);
CRYPTO_free(a1[6], (int)"crypto/ui/ui_lib.c", 61);
}
}
CRYPTO_free(a1, (int)"crypto/ui/ui_lib.c", 67);
}