// // sub_9C2A50 from 0x9c2a50 to 0x9c2c00 (432 bytes) // // 3 xrefs: // > tls12_check_peer_sigalg @ 0x9c5804 // > tls1_check_chain @ 0x9c9104 // > tls1_check_chain @ 0x9c9358 // // 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:05 +0000 // int __fastcall sub_9C2A50(_DWORD *a1, unsigned __int8 *a2, unsigned __int8 *a3) { int v4; // r3 unsigned __int8 *v5; // r2 int v6; // r12 int v7; // r4 int v8; // r3 int v9; // t1 int v11; // r12 int v12; // r5 char *v13; // r3 unsigned int v14; // r2 int v15; // lr char *v16; // r3 int v17; // r2 int v18; // r3 unsigned int v19; // r2 if ( a3 ) { v4 = a1[60]; v5 = *(unsigned __int8 **)(v4 + 204); if ( v5 ) { v6 = *(_DWORD *)(v4 + 200); if ( !v6 ) return 0; v7 = *a3; if ( *v5 != v7 ) { v8 = 0; while ( ++v8 != v6 ) { v9 = *++v5; if ( v9 == v7 ) goto LABEL_9; } return 0; } } } LABEL_9: if ( !a2 ) return 1; v11 = *(_DWORD *)(a1[50] + 16) & 0x30000; v12 = 0; switch ( v11 ) { case 131072: v13 = (char *)&unk_C5181A; v14 = 2; LABEL_30: v15 = v14 >> 1; if ( v14 >> 1 ) goto LABEL_17; return 0; case 196608: v13 = (char *)&unk_C51818; v14 = 4; goto LABEL_30; case 65536: v13 = (char *)&unk_C51818; v14 = 2; goto LABEL_30; } v13 = (char *)a1[105]; v14 = a1[104]; if ( !v13 ) { v13 = (char *)&unk_C51810; v15 = 4; LABEL_17: while ( 1 ) { v16 = v13 + 2; v17 = 0; while ( (unsigned __int8)*(v16 - 2) != *a2 || (unsigned __int8)*(v16 - 1) != a2[1] ) { ++v17; v16 += 2; if ( v17 == v15 ) return 0; } if ( v17 == v15 ) return 0; if ( a1[7] && v12 != 1 ) { v18 = a1[60]; v12 = 1; v19 = *(_DWORD *)(v18 + 208); v13 = *(char **)(v18 + 212); if ( (v19 & 1) != 0 ) goto LABEL_28; v15 = v19 >> 1; if ( v19 >> 1 ) continue; } return 1; } } if ( (v14 & 1) == 0 ) goto LABEL_30; LABEL_28: ERR_put_error(20, 338, 68, "ssl/t1_lib.c", 291); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source