// // sub_D9BA9C from 0xd9ba9c to 0xd9bbdc (320 bytes) // // 1 xrefs: // > @ 0x1123340 // // 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 // __int64 __fastcall sub_D9BA9C(__int64 a1, __int64 a2) { __int64 result; // x0 _QWORD *v4; // x21 int v5; // w19 _QWORD *v6; // x0 __int64 v7; // x5 __int64 v8; // x5 int v9; // [xsp+38h] [xbp+38h] BYREF int v10; // [xsp+3Ch] [xbp+3Ch] BYREF _QWORD *v11; // [xsp+40h] [xbp+40h] BYREF _QWORD *v12; // [xsp+48h] [xbp+48h] BYREF result = X509_PUBKEY_get0_param(0, &v11, &v9, &v12, a2); if ( (_DWORD)result ) { v4 = v11; v5 = v9; if ( v12 && (X509_ALGOR_get0(0, &v10, nullptr, v12), v10 != -1) ) { ERR_put_error(16, 266, 102, "crypto/ec/ecx_meth.c", 47); return 0; } else if ( v5 == 32 && v4 ) { v6 = (_QWORD *)CRYPTO_zalloc(40, "crypto/ec/ecx_meth.c", 58); if ( v6 ) { v7 = v4[1]; *v6 = *v4; v6[1] = v7; v8 = v4[3]; v6[2] = v4[2]; v6[3] = v8; EVP_PKEY_assign(a1, 1034, v6); return 1; } else { ERR_put_error(16, 266, 65, "crypto/ec/ecx_meth.c", 60); return 0; } } else { ERR_put_error(16, 266, 102, "crypto/ec/ecx_meth.c", 53); return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source