// // sub_80E8BC from 0x80e8bc to 0x80e9b4 (248 bytes) // // 5 xrefs: // > CRYPTO_secure_malloc_init @ 0x80ee70 // > CRYPTO_secure_malloc @ 0x80f324 // > CRYPTO_secure_malloc @ 0x80f3b4 // > CRYPTO_secure_free @ 0x80fa18 // > CRYPTO_secure_free @ 0x80fd34 // // 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 // unsigned int *__fastcall sub_80E8BC(unsigned int *result, unsigned int *a2) { unsigned int v2; // r12 unsigned int v3; // r3 unsigned int v4; // r2 int v5; // r3 if ( dword_AD44D8 > (unsigned int)result || (unsigned int)result >= dword_AD44D8 + 4 * dword_AD44DC ) OPENSSL_die("assertion failed: WITHIN_FREELIST(list)", "crypto/mem_sec.c", 305); v2 = dword_AD44D0; if ( dword_AD44D0 > (unsigned int)a2 || (v3 = dword_AD44D0 + dword_AD44D4, (unsigned int)a2 >= dword_AD44D0 + dword_AD44D4) ) { OPENSSL_die("assertion failed: WITHIN_ARENA(ptr)", "crypto/mem_sec.c", 306); } v4 = *result; *a2 = *result; if ( v4 ) { v5 = v3 <= v4; if ( v2 > v4 ) v5 |= 1u; if ( v5 ) OPENSSL_die("assertion failed: temp->next == NULL || WITHIN_ARENA(temp->next)", "crypto/mem_sec.c", 310); a2[1] = (unsigned int)result; if ( *(unsigned int **)(v4 + 4) != result ) OPENSSL_die("assertion failed: (char **)temp->next->p_next == list", "crypto/mem_sec.c", 314); *(_DWORD *)(v4 + 4) = a2; *result = (unsigned int)a2; } else { a2[1] = (unsigned int)result; *result = (unsigned int)a2; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source