// // asn1_utctime_to_tm from 0x9d5ff8 to 0x9d6240 (584 bytes) // // 5 xrefs: // > ASN1_TIME_diff @ 0x9d5f48 // > ASN1_TIME_diff @ 0x9d5f84 // > ASN1_UTCTIME_check @ 0x9d624c // > ASN1_UTCTIME_cmp_time_t @ 0x9d64a4 // > @ 0x77f8c // // 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_to_tm(int *a1, int *a2) { int v3; // r4 int v4; // r6 int v5; // r12 int *v6; // r7 int v7; // r2 int *v8; // r8 int v9; // lr int v10; // r5 int v11; // r1 int v12; // r3 int v13; // r1 int v14; // t1 int v15; // t1 int v16; // r1 _BOOL4 v17; // r3 int v18; // r3 int v19; // r7 int v20; // r1 int v21; // r3 int v22; // lr int v23; // r1 int v24; // r1 if ( a2[1] != 23 ) return 0; v3 = *a2; v4 = a2[2]; if ( *a2 <= 10 ) return 0; v5 = 1; v6 = (int *)&unk_C51D80; v7 = 0; v8 = (int *)&unk_C51DA0; v9 = 1; v10 = 0; while ( 1 ) { if ( v7 == 5 ) { v16 = *(unsigned __int8 *)(v4 + 10); v17 = ((v16 - 43) & 0xFD) == 0; if ( v16 == 90 ) v17 = 1; if ( v17 ) break; } if ( (unsigned __int8)(*(_BYTE *)(v4 + 2 * v7) - 48) > 9u ) return 0; if ( v3 < v5 ) return 0; v11 = *(unsigned __int8 *)(v4 + v5); if ( (unsigned int)(v11 - 48) > 9 ) return 0; v10 += 2; v12 = v11 + 10 * (*(unsigned __int8 *)(v4 + 2 * v7) - 48); v13 = v12 - 48; if ( v3 < v10 ) return 0; v14 = *v8++; if ( v13 < v14 ) return 0; v15 = *v6++; if ( v13 > v15 ) return 0; if ( a1 ) { switch ( v7 ) { case 1: a1[4] = v12 - 49; goto LABEL_18; case 2: a1[3] = v13; goto LABEL_18; case 3: a1[2] = v13; goto LABEL_18; case 4: a1[1] = v13; goto LABEL_18; case 5: *a1 = v13; goto LABEL_28; default: if ( v13 <= 49 ) v13 = v12 + 52; a1[5] = v13; break; } } if ( v9 == 6 ) goto LABEL_28; LABEL_18: ++v7; ++v9; v5 += 2; } if ( a1 ) *a1 = 0; LABEL_28: v18 = *(unsigned __int8 *)(v4 + v10); if ( v18 != 90 ) { if ( ((v18 - 43) & 0xFD) != 0 ) return v3 == v10; if ( v3 > v10 + 4 ) { v19 = v4 + v10; if ( (unsigned __int8)(*(_BYTE *)(v4 + v10 + 1) - 48) <= 9u ) { v20 = *(unsigned __int8 *)(v19 + 2); if ( (unsigned int)(v20 - 48) <= 9 ) { v21 = v20 + 10 * (*(unsigned __int8 *)(v4 + v10 + 1) - 48) - 48; if ( v21 <= 12 ) { v22 = a1 ? 3600 * v21 : 0; if ( (unsigned __int8)(*(_BYTE *)(v19 + 3) - 48) <= 9u ) { v23 = *(unsigned __int8 *)(v4 + v10 + 4); if ( (unsigned int)(v23 - 48) <= 9 ) { v24 = v23 + 10 * (*(unsigned __int8 *)(v19 + 3) - 48) - 48; if ( v24 <= 59 ) { if ( a1 ) v22 += 60 * v24; v10 += 5; if ( !v22 || OPENSSL_gmtime_adj() ) return v3 == v10; } } } } } } } return 0; } return v3 == ++v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source