// // ASN1_INTEGER_to_BN from 0x8626f4 to 0x8627a8 (180 bytes) // // 12 xrefs: // > sub_7DE1CC @ 0x7de2d4 // > sub_7DE578 @ 0x7de66c // > sub_7DF150 @ 0x7df828 // > sub_7E11C4 @ 0x7e12d0 // > sub_7E1588 @ 0x7e161c // > EC_GROUP_new_from_ecparameters @ 0x7e68f4 // > EC_GROUP_new_from_ecparameters @ 0x7e6f20 // > EC_GROUP_new_from_ecparameters @ 0x7e7028 // > sub_852030 @ 0x8520c8 // > sub_8522B4 @ 0x8523d4 // > i2s_ASN1_INTEGER @ 0x85cfbc // > @ 0x608ec // // 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 ASN1_INTEGER_to_BN(int a1, int *a2) { int *result; // r0 int *v4; // r5 if ( (*(_DWORD *)(a1 + 4) & 0xFFFFFEFF) == 2 ) { result = BN_bin2bn(*(_BYTE **)(a1 + 8), *(_DWORD *)a1, a2); v4 = result; if ( result ) { if ( (*(_DWORD *)(a1 + 4) & 0x100) != 0 ) { BN_set_negative((_BOOL4)result, 1); return v4; } } else { ERR_put_error(13, 228, 105, (int)"crypto/asn1/a_int.c", 526); return nullptr; } } else { ERR_put_error(13, 228, 225, (int)"crypto/asn1/a_int.c", 520); return nullptr; } return result; }