// // sub_1073D74 from 0x1073d74 to 0x1074118 (932 bytes) // // 1 xrefs: // > @ 0x140e730 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:17:03 +0000 // __int64 __fastcall sub_1073D74(__int64 a1, unsigned int *a2, __int64 a3, int a4) { int v5; // w20 __int64 v8; // x22 unsigned int afi; // w0 int v10; // w21 unsigned int v11; // w2 int v12; // w4 int v13; // w23 unsigned int *v14; // x25 bool v15; // cc int v16; // w1 __int64 i; // x0 __int64 v18; // x22 v5 = 0; while ( v5 < (int)OPENSSL_sk_num(a2) ) { v8 = OPENSSL_sk_value((__int64)a2, v5); afi = (unsigned int)X509v3_addr_get_afi((unsigned __int8 *)v8); v10 = afi; if ( afi == 1 ) { BIO_printf(a3, "%*sIPv4", a4, &byte_11B8890); } else if ( afi == 2 ) { BIO_printf(a3, "%*sIPv6", a4, &byte_11B8890); } else { BIO_printf(a3, "%*sUnknown AFI %u", a4, &byte_11B8890, afi); } if ( **(int **)v8 <= 2 ) goto LABEL_13; v11 = *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)v8 + 8LL) + 2LL); if ( v11 == 4 ) { BIO_puts(a3, (__int64)" (MPLS)"); goto LABEL_13; } if ( v11 <= 4 ) { if ( v11 == 2 ) { BIO_puts(a3, (__int64)" (Multicast)"); goto LABEL_13; } if ( v11 > 2 ) { BIO_puts(a3, (__int64)" (Unicast/Multicast)"); goto LABEL_13; } if ( v11 != 1 ) goto LABEL_40; BIO_puts(a3, (__int64)" (Unicast)"); } else if ( v11 == 65 ) { BIO_puts(a3, (__int64)" (VPLS)"); } else if ( v11 <= 0x41 ) { if ( v11 != 64 ) goto LABEL_40; BIO_puts(a3, (__int64)" (Tunnel)"); } else { if ( v11 == 66 ) { BIO_puts(a3, (__int64)" (BGP MDT)"); goto LABEL_13; } if ( v11 != 128 ) { LABEL_40: BIO_printf(a3, " (Unknown SAFI %u)", v11); goto LABEL_13; } BIO_puts(a3, (__int64)" (MPLS-labeled VPN)"); } LABEL_13: v12 = **(_DWORD **)(v8 + 8); if ( v12 ) { if ( v12 == 1 ) { v13 = 0; BIO_puts(a3, (__int64)":\n"); v14 = *(unsigned int **)(*(_QWORD *)(v8 + 8) + 8LL); v15 = (int)OPENSSL_sk_num(v14) > 0; v16 = 0; for ( i = (__int64)v14; v15; i = (__int64)v14 ) { v18 = OPENSSL_sk_value(i, v16); BIO_printf(a3, "%*s", a4 + 2, &byte_11B8890); if ( *(_DWORD *)v18 ) { if ( *(_DWORD *)v18 == 1 ) { if ( !(unsigned int)sub_1072DD0(a3, v10, 0, **(_QWORD **)(v18 + 8)) ) return 0; BIO_puts(a3, (__int64)&byte_1191DE0); if ( !(unsigned int)sub_1072DD0(a3, v10, 0xFFu, *(_QWORD *)(*(_QWORD *)(v18 + 8) + 8LL)) ) return 0; BIO_puts(a3, (__int64)&byte_11AAA48); } ++v13; } else { if ( !(unsigned int)sub_1072DD0(a3, v10, 0, *(_QWORD *)(v18 + 8)) ) return 0; ++v13; BIO_printf(a3, "/%d\n", 8 * **(_DWORD **)(v18 + 8) - (*(_QWORD *)(*(_QWORD *)(v18 + 8) + 16LL) & 7)); } v15 = v13 < (int)OPENSSL_sk_num(v14); v16 = v13; } } ++v5; } else { ++v5; BIO_puts(a3, (__int64)": inherit\n"); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source