// // SXNET_add_id_INTEGER from 0x85b8d0 to 0x85baa8 (472 bytes) // // 3 xrefs: // > SXNET_add_id_asc @ 0x85baf4 // > SXNET_add_id_ulong @ 0x85bc0c // > @ 0x6971c // // 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 SXNET_add_id_INTEGER(int *a1, int a2, char *a3, int a4) { bool v4; // zf int v5; // r12 signed int v6; // r4 int v10; // r5 _DWORD *v12; // r9 _DWORD *v13; // r0 v4 = a3 == nullptr; if ( a3 ) v4 = a2 == 0; v5 = v4; if ( !a1 ) v5 |= 1u; if ( v5 ) { ERR_put_error(34, 126, 107, (int)"crypto/x509v3/v3_sxnet.c", 144); return 0; } v6 = a4; if ( a4 != -1 ) { if ( a4 <= 64 ) goto LABEL_11; LABEL_24: ERR_put_error(34, 126, 132, (int)"crypto/x509v3/v3_sxnet.c", 150); return 0; } v6 = strlen(a3); if ( v6 > 64 ) goto LABEL_24; LABEL_11: v10 = *a1; if ( *a1 ) goto LABEL_12; v13 = SXNET_new(); v10 = (int)v13; if ( !v13 ) { v12 = nullptr; goto LABEL_19; } if ( !ASN1_INTEGER_set(*v13, 0) ) { v12 = nullptr; LABEL_19: ERR_put_error(34, 126, 65, (int)"crypto/x509v3/v3_sxnet.c", 179); SXNETID_free(v12); SXNET_free((_DWORD *)v10); *a1 = 0; return 0; } *a1 = v10; LABEL_12: if ( SXNET_get_id_INTEGER(v10, a2) ) { ERR_put_error(34, 126, 133, (int)"crypto/x509v3/v3_sxnet.c", 162); return 0; } v12 = SXNETID_new(); if ( !v12 ) goto LABEL_19; if ( v6 == -1 ) v6 = strlen(a3); if ( !ASN1_OCTET_STRING_set(v12[1], a3, v6) || !OPENSSL_sk_push(*(int **)(v10 + 4), (int)v12) ) goto LABEL_19; *v12 = a2; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source