// // ASN1_INTEGER_to_BN from 0x1088f70 to 0x1089030 (192 bytes) // // 12 xrefs: // > sub_1003F10 @ 0x1004020 // > sub_1004294 @ 0x1004394 // > sub_1004D54 @ 0x10053a8 // > sub_1006DA8 @ 0x1006ebc // > sub_1007138 @ 0x100721c // > EC_GROUP_new_from_ecparameters @ 0x100c03c // > EC_GROUP_new_from_ecparameters @ 0x100c5b8 // > EC_GROUP_new_from_ecparameters @ 0x100c67c // > sub_107775C @ 0x1077840 // > sub_10779B4 @ 0x1077ad0 // > i2s_ASN1_INTEGER @ 0x1081c00 // > @ 0x6f3b8 // // 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:17:14 +0000 // unsigned __int64 *__fastcall ASN1_INTEGER_to_BN(__int64 a1, __int64 a2) { unsigned __int64 *v3; // x0 int v4; // w1 unsigned __int64 *v5; // x19 if ( (*(_DWORD *)(a1 + 4) & 0xFFFFFEFF) == 2 ) { v3 = BN_bin2bn(*(_BYTE **)(a1 + 8), *(_DWORD *)a1, a2); if ( !v3 ) { v5 = nullptr; ERR_put_error(13, 228, 105, (__int64)"crypto/asn1/a_int.c", 526); return v5; } v4 = *(_DWORD *)(a1 + 4); v5 = v3; if ( (v4 & 0x100) == 0 ) return v5; BN_set_negative((__int64)v3, 1); return v5; } else { ERR_put_error(13, 228, 225, (__int64)"crypto/asn1/a_int.c", 520); return nullptr; } }