// // OPENSSL_gmtime_adj from 0xdc093c to 0xdc0c50 (788 bytes) // // 6 xrefs: // > ASN1_TIME_adj @ 0xd6788c // > asn1_utctime_to_tm @ 0xd67e64 // > ASN1_UTCTIME_adj @ 0xd6809c // > asn1_generalizedtime_to_tm @ 0xe08e40 // > ASN1_GENERALIZEDTIME_adj @ 0xe090c8 // > @ 0x3c420 // // 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 // __int64 __fastcall OPENSSL_gmtime_adj(int *a1, int a2, __int64 a3) { int v3; // w1 int v4; // w2 int v5; // w9 int v6; // w8 int v7; // w4 int v8; // w6 __int64 v9; // x1 __int64 v10; // x1 __int64 v11; // x3 int v12; // w11 bool v13; // nf __int64 v14; // x4 __int64 v15; // x3 __int64 v16; // x1 unsigned int v17; // w10 __int64 v18; // x4 __int64 v19; // x3 int v20; // w6 __int64 v21; // x4 __int64 v22; // x1 __int64 v23; // x3 unsigned int v24; // w4 v3 = a2 + a3 / 86400; v4 = a3 % 86400 + 60 * a1[1] + 3600 * a1[2] + *a1; if ( v4 <= 86399 ) { if ( v4 < 0 ) { --v3; v4 += 86400; } } else { ++v3; v4 -= 86400; } v5 = a1[4]; v6 = (v5 - 13) / 12; v7 = 1461 * (a1[5] + 6700 + v6); v8 = v7 + 3; if ( v7 >= 0 ) v8 = 1461 * (a1[5] + 6700 + v6); v9 = 367 * (v5 - 1 + 12 * ((v5 - 13) / -12)) / 12 + (v8 >> 2) - 3 * ((v6 + a1[5] + 6800) / 100) / 4 + a1[3] - 32075 + (__int64)v3; if ( v9 < 0 ) return 0; v10 = v9 + 68569; v11 = 4 * v10 / 146097; v12 = v11 - 49; v11 *= 146097; v14 = v11 + 3; v13 = v11 + 3 < 0; v15 = v11 + 6; if ( !v13 ) v15 = v14; v16 = v10 - (v15 >> 2); v17 = 0; v18 = (4000 * v16 + 4000) / 1461001; v19 = 1461 * v18; v20 = v18 + 100 * v12; v13 = 1461 * v18 < 0; v21 = 1461 * v18 + 3; if ( v13 ) v19 = v21; v22 = v16 - (v19 >> 2) + 31; v23 = 80 * v22 / 2447; v24 = v20 + v23 / 11 - 1900; if ( v24 <= 0x1FA3 ) { a1[4] = v23 - 12 * (v23 / 11) + 1; a1[5] = v24; a1[3] = 2447 * v23 / -80 + v22; *a1 = v4 % 60; v17 = 1; a1[2] = v4 / 3600; a1[1] = v4 / 60 % 60; } return v17; }
GD Web Decomp Icon

GD Web Decomp

Raw Source