// // ASN1_STRING_to_UTF8 from 0x9d5910 to 0x9d59ac (156 bytes) // // 7 xrefs: // > sub_852C2C @ 0x8534e8 // > sub_A39418 @ 0xa3954c // > PKCS12_parse @ 0xa399b4 // > sub_A5E470 @ 0xa5e5c0 // > NAME_CONSTRAINTS_check_CN @ 0xa6d014 // > sub_A70FA0 @ 0xa711fc // > @ 0x67f4c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:07:14 +0000 // int __fastcall ASN1_STRING_to_UTF8(_DWORD *a1, int *a2) { unsigned int v2; // r2 int v3; // r3 int v6; // r1 int v7; // r2 int result; // r0 int *v9; // [sp+Ch] [bp-14h] BYREF int v10; // [sp+10h] [bp-10h] BYREF int v11; // [sp+18h] [bp-8h] int v12; // [sp+1Ch] [bp-4h] v9 = &v10; if ( !a2 ) return -1; v2 = a2[1]; if ( v2 > 0x1E ) return -1; v3 = *((char *)&word_C51C4C[128] + v2); if ( v3 == -1 ) return -1; v6 = a2[2]; v7 = *a2; v11 = 0; v10 = 0; v12 = 0; result = ASN1_mbstring_copy(&v9, v6, v7, v3 | 0x1000, 0x2000); if ( result >= 0 ) { result = v10; *a1 = v11; } return result; }