// // sub_8579AC from 0x8579ac to 0x857ba0 (500 bytes) // // 2 xrefs: // > sub_857BCC @ 0x857bf0 // > sub_857BCC @ 0x857c08 // // 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 // int __fastcall sub_8579AC(_DWORD *a1, int a2, int a3, const char *a4) { signed int i; // r8 _DWORD **v9; // r4 _DWORD *v10; // r1 int *v11; // r3 int v12; // r5 unsigned __int8 *v13; // r4 unsigned __int8 *v14; // r4 int v15; // r7 int j; // r5 if ( OPENSSL_sk_num((int)a1) > 0 ) BIO_printf(a2, "%*s%s:\n", a3, &byte_9B1912, a4); for ( i = 0; i < OPENSSL_sk_num((int)a1); ++i ) { v9 = (_DWORD **)OPENSSL_sk_value(a1, i); BIO_printf(a2, "%*s", a3 + 2, &byte_9B1912); v10 = *v9; if ( **v9 == 7 ) { v11 = (int *)v10[1]; v12 = *v11; v13 = (unsigned __int8 *)v11[2]; BIO_puts(a2, (int)"IP:"); if ( v12 == 8 ) { BIO_printf(a2, "%d.%d.%d.%d/%d.%d.%d.%d", *v13, v13[1], v13[2], v13[3], v13[4], v13[5], v13[6], v13[7]); } else { if ( v12 == 32 ) { v14 = v13 + 2; v15 = 1; for ( j = 0; ; ++j ) { BIO_printf(a2, "%X", *(v14 - 1) | (*(v14 - 2) << 8)); if ( j == 7 ) { BIO_puts(a2, (int)&word_9B1F2C); } else { if ( j == 15 ) goto LABEL_5; BIO_puts(a2, (int)":"); if ( v15 == 16 ) goto LABEL_5; } v14 += 2; ++v15; } } BIO_printf(a2, "IP Address:"); } } else { GENERAL_NAME_print(a2, v10); } LABEL_5: BIO_puts(a2, (int)"\n"); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source