// // sub_1005FDBC8 from 0x1005fdbc8 to 0x1005fde38 (624 bytes) // // 3 xrefs: // > sub_1005FC89C @ 0x1005fcae0 // > sub_1005FC89C @ 0x1005fcb44 // > sub_1005FD094 @ 0x1005fd3dc // // 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 sub_1005FDBC8(char *__s1, __int64 *a2) { bool v4; // zf __int64 result; // x0 int v6; // w1 __int16 v7; // w2 int v8; // w4 char *v9; // x20 __int64 v10; // x0 _BYTE *v11; // x20 int v12; // w8 int v13; // t1 char v14; // w21 __int64 v15; // x0 int v16; // w21 char v17; // w8 __int64 v18; // x9 int v19; // w13 int v20; // w12 int v21; // w12 int v22; // w13 *a2 = 0; if ( !__s1 ) return 1; if ( *__s1 ) v4 = *__s1 == 10; else v4 = 1; if ( v4 ) return 1; if ( strncmp(__s1, "Proc-Type: ", 0xBu) ) { v6 = 107; v7 = 107; v8 = 499; goto LABEL_11; } if ( __s1[11] != 52 ) return 0; if ( __s1[12] != 44 ) return 0; v9 = __s1 + 13; if ( strncmp(v9, "ENCRYPTED", 9u) ) { v6 = 107; v7 = 106; v8 = 510; goto LABEL_11; } while ( 1 ) { if ( !*v9 ) { v6 = 107; v7 = 112; v8 = 515; goto LABEL_11; } if ( *v9 == 10 ) break; ++v9; } if ( strncmp(v9 + 1, "DEK-Info: ", 0xAu) ) { v6 = 107; v7 = 105; v8 = 520; goto LABEL_11; } v10 = (__int64)(v9 + 11); v11 = v9 + 10; do { do { v13 = (unsigned __int8)*++v11; v12 = v13; } while ( (unsigned int)(v13 - 48) < 0xA ); } while ( v12 == 45 || (unsigned __int8)(v12 - 65) < 0x1Au ); *v11 = 0; v14 = v12; v15 = sub_1005E8058(v10); *a2 = v15; *v11 = v14; if ( !v15 ) { v6 = 107; v7 = 114; v8 = 544; goto LABEL_11; } v16 = *(_DWORD *)(v15 + 12); if ( v16 < 1 ) return 1; bzero(a2 + 1, (unsigned int)(v16 - 1) + 1LL); v17 = 0; v18 = 0; result = 1; while ( 1 ) { v19 = (char)v11[v18 + 1]; v20 = v19 - 48; if ( (unsigned int)(v19 - 48) > 9 ) break; LABEL_36: v21 = v20 << (~v17 & 4); if ( (int)v18 >= 0 ) v22 = v18; else v22 = v18 + 1; *((_BYTE *)a2 + (v22 >> 1) + 8) |= v21; ++v18; v17 += 4; if ( (int)v18 >= 2 * v16 ) return result; } if ( (unsigned int)(v19 - 65) <= 5 ) { v20 = v19 - 55; goto LABEL_36; } if ( (unsigned int)(v19 - 97) <= 5 ) { v20 = v19 - 87; goto LABEL_36; } v6 = 101; v7 = 103; v8 = 570; LABEL_11: sub_1005E0E48(9, v6, v7, (__int64)"pem_lib.c", v8); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source