// // sub_D6F5E8 from 0xd6f5e8 to 0xd6f75c (372 bytes) // // 3 xrefs: // > sub_D6F800 @ 0xd6f880 // > ASN1_item_ex_new @ 0xd6fc68 // > ASN1_item_ex_new @ 0xd6ff64 // // 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 // bool __fastcall sub_D6F5E8(__int64 *a1, __int64 a2, int a3) { __int64 v3; // x5 unsigned int (*v6)(void); // x5 _BOOL4 v7; // w1 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x2 unsigned int v12; // w0 __int64 v13; // x1 __int64 v14; // x0 __int64 v15; // x0 if ( a2 ) { v3 = *(_QWORD *)(a2 + 32); if ( v3 ) { v6 = *(unsigned int (**)(void))(v3 + 16); if ( v6 ) return v6(); } if ( *(_BYTE *)a2 != 5 ) { v9 = *(_QWORD *)(a2 + 8); switch ( (int)v9 ) { case -4: v14 = CRYPTO_malloc(16, "crypto/asn1/tasn_new.c", 288); if ( !v14 ) return 0; *(_QWORD *)(v14 + 8) = 0; *(_DWORD *)v14 = -1; v7 = 1; *a1 = v14; break; case 1: v7 = 1; *(_DWORD *)a1 = *(_QWORD *)(a2 + 40); return v7; case 5: v7 = 1; *a1 = 1; return v7; case 6: *a1 = OBJ_nid2obj(0); return 1; default: if ( !a3 ) goto LABEL_9; goto LABEL_21; } return v7; } LODWORD(v9) = -1; if ( a3 ) { LABEL_21: v11 = *a1; *(_QWORD *)v11 = 0; *(_QWORD *)(v11 + 8) = 0; *(_DWORD *)(v11 + 4) = v9; *(_QWORD *)(v11 + 16) = 128; v15 = *a1; if ( *(_BYTE *)a2 != 5 ) return v15 != 0; v13 = 192; v12 = v15 != 0; } else { LABEL_9: v10 = ASN1_STRING_type_new(v9); *a1 = v10; v11 = v10; v7 = v10 != 0; v12 = v7 && *(_BYTE *)a2 == 5; if ( !v7 || *(_BYTE *)a2 != 5 ) return v7; v13 = *(_QWORD *)(v11 + 16) | 0x40LL; } *(_QWORD *)(v11 + 16) = v13; return v12; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source