// // sub_1034208 from 0x1034208 to 0x1034378 (368 bytes) // // 2 xrefs: // > CRYPTO_secure_malloc @ 0x1034bf0 // > CRYPTO_secure_free @ 0x1034e50 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:16:23 +0000 // unsigned __int64 __fastcall sub_1034208(unsigned __int64 a1) { unsigned __int64 v2; // x1 int v3; // w4 __int64 v4; // x6 unsigned __int64 result; // x0 unsigned __int64 v6; // x5 unsigned __int64 v7; // x5 if ( qword_1567F18 > a1 || a1 >= qword_1567F18 + qword_1567F20 ) OPENSSL_die("assertion failed: WITHIN_ARENA(ptr)", "crypto/mem_sec.c", 574); v2 = (a1 + qword_1567F20 - qword_1567F18) / qword_1567F38; v3 = qword_1567F30 - 1; if ( v2 ) { v4 = qword_1567F40; if ( ((*(unsigned __int8 *)(qword_1567F40 + (v2 >> 3)) >> (v2 & 7)) & 1) == 0 ) { do { if ( (v2 & 1) != 0 ) OPENSSL_die("assertion failed: (bit & 1) == 0", "crypto/mem_sec.c", 259); v2 >>= 1; --v3; } while ( v2 && ((*(unsigned __int8 *)(qword_1567F40 + (v2 >> 3)) >> (v2 & 7)) & 1) == 0 ); } } else { v4 = qword_1567F40; } if ( v3 < 0 || qword_1567F30 <= v3 ) OPENSSL_die("assertion failed: list >= 0 && list < sh.freelist_size", "crypto/mem_sec.c", 270); result = (unsigned __int64)qword_1567F20 >> v3; v6 = a1 - qword_1567F18; if ( ((((unsigned __int64)qword_1567F20 >> v3) - 1) & v6) != 0 ) sub_632B7C(); v7 = v6 / result + (1LL << v3); if ( !v7 || v7 >= qword_1567F50 ) OPENSSL_die("assertion failed: bit > 0 && bit < sh.bittable_size", "crypto/mem_sec.c", 273); if ( (*(unsigned __int8 *)(v4 + (v7 >> 3)) & (unsigned int)(1LL << (v7 & 7))) == 0 ) OPENSSL_die("assertion failed: sh_testbit(ptr, list, sh.bittable)", "crypto/mem_sec.c", 578); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source