// // ASN1_UTCTIME_print from 0x9d6530 to 0x9d6710 (480 bytes) // // 5 xrefs: // > ASN1_TIME_print @ 0x9d5ff0 // > sub_A7C880 @ 0xa7d304 // > sub_A7C880 @ 0xa7d578 // > ASN1_item_print @ 0xa7df64 // > @ 0x77fac // // 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:14 +0000 // bool __fastcall ASN1_UTCTIME_print(int a1, int *a2, int a3, int a4) { int v4; // r4 unsigned __int8 *v5; // r2 int v6; // r12 int v7; // lr int v8; // r5 int v9; // r8 int v10; // r6 int v11; // r9 int v12; // r7 int v13; // r10 int v14; // r1 unsigned int v15; // r12 int v16; // r9 int v17; // r10 int v18; // lr int v19; // r1 const char *v20; // r2 const char *v21; // r12 int v23; // lr int v24; // r2 int v25; // [sp+1Ch] [bp-8h] v4 = *a2; v5 = (unsigned __int8 *)a2[2]; if ( *a2 <= 9 ) goto LABEL_20; a4 = v5[v4 - 1]; v25 = a4; if ( (unsigned __int8)(*v5 - 48) > 9u ) goto LABEL_20; a4 = v5[1]; if ( (unsigned int)(a4 - 48) > 9 ) goto LABEL_20; v6 = v5[2]; if ( (unsigned int)(v6 - 48) > 9 ) goto LABEL_20; v7 = v5[3]; if ( (unsigned int)(v7 - 48) > 9 ) goto LABEL_20; v8 = v5[4]; if ( (unsigned int)(v8 - 48) > 9 ) goto LABEL_20; v9 = v5[5]; if ( (unsigned int)(v9 - 48) > 9 ) goto LABEL_20; v10 = v5[6]; if ( (unsigned int)(v10 - 48) > 9 ) goto LABEL_20; v11 = v5[7]; if ( (unsigned int)(v11 - 48) > 9 ) goto LABEL_20; v12 = v5[8]; if ( (unsigned int)(v12 - 48) > 9 ) goto LABEL_20; v13 = v5[9]; if ( (unsigned int)(v13 - 48) > 9 ) goto LABEL_20; a4 -= 48; v14 = a4 + 10 * (*v5 - 48); v15 = v7 + 10 * (v6 - 48) - 49; if ( v14 <= 49 ) v14 += 100; if ( v15 > 0xB ) { LABEL_20: BIO_write(a1, "Bad time value", 14, a4); return 0; } else { v16 = v11 - 48 + 10 * (v10 - 48); v17 = v13 - 48 + 10 * (v12 - 48); if ( v4 <= 11 || (v23 = v5[10] - 48, (unsigned __int8)(v5[10] - 48) > 9u) || (v24 = v5[11] - 48, (unsigned __int8)v24 > 9u) ) { v18 = 0; } else { v18 = v24 + 10 * v23; } v19 = v14 + 1900; v20 = asn1_mon[v15]; if ( v25 == 90 ) v21 = " GMT"; else v21 = &byte_BF4ECA; return BIO_printf(a1, "%s %2d %02d:%02d:%02d %d%s", v20, v9 - 48 + 10 * (v8 - 48), v16, v17, v18, v19, v21) > 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source