// // sub_B71BAC from 0xb71bac to 0xb71eec (832 bytes) // // 1 xrefs: // > sub_B939BC @ 0xb93a60 // // 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_B71BAC(_QWORD *a1) { const char **v2; // x19 const char *v3; // x0 __int64 v5; // x28 char *v6; // x0 char *v7; // x25 int v8; // w0 char *v9; // x20 int v10; // t1 size_t v11; // x20 __int64 v12; // x20 char *v13; // x0 char *v14; // x22 int v15; // w0 char *v16; // x20 int v17; // t1 size_t v18; // x20 char *v19; // x0 __int64 v20; // x1 int v21; // [xsp+74h] [xbp+74h] BYREF char v22[256]; // [xsp+78h] [xbp+78h] BYREF char v23[256]; // [xsp+178h] [xbp+178h] BYREF v2 = (const char **)a1[294]; if ( !v2 ) { LABEL_10: a1[294] = 0; return 0; } while ( 1 ) { while ( 1 ) { v3 = *v2; if ( !*v2 ) goto LABEL_5; if ( *v3 == 45 ) break; if ( sscanf(v3, "%255[^:]:%d:%255s", v22, &v21, v23) == 3 ) { v5 = sub_BA47DC(v23); if ( v5 ) { v6 = (char *)sub_B8F880("%s:%d", v22, v21); v7 = v6; if ( !v6 ) goto LABEL_41; v8 = (unsigned __int8)*v6; if ( v8 != 58 && v8 ) { v9 = v7; do { *v9 = tolower(v8); v10 = (unsigned __int8)*++v9; v8 = v10; } while ( v10 != 58 && v8 ); } v11 = strlen(v7); if ( a1[14] ) sub_B9EA70(a1, 3, 2); v12 = sub_B99AF8(a1[10], v7, v11 + 1); off_1231008(v7); if ( v12 ) { sub_BA41E8(v5); } else { v19 = sub_B71478((__int64)a1, v5, v22, v21); if ( !v19 ) { if ( a1[14] ) sub_B9EAD0(a1, 3); LABEL_41: sub_BA41E8(v5); return 27; } v20 = *((_QWORD *)v19 + 2); *((_QWORD *)v19 + 1) = 0; *((_QWORD *)v19 + 2) = v20 - 1; } if ( a1[14] ) sub_B9EAD0(a1, 3); sub_B7B528(a1, "Added %s:%d:%s to DNS cache\n", v22, v21, v23); } else { sub_B7B528(a1, "Address in '%s' found illegal!\n", *v2); } } else { sub_B7B528(a1, "Couldn't parse CURLOPT_RESOLVE entry '%s'!\n", *v2); } LABEL_5: v2 = (const char **)v2[1]; if ( !v2 ) goto LABEL_10; } if ( sscanf(v3 + 1, "%255[^:]:%d", v22, &v21) == 2 ) break; sub_B7B528(a1, "Couldn't parse CURLOPT_RESOLVE removal entry '%s'!\n", *v2); v2 = (const char **)v2[1]; if ( !v2 ) goto LABEL_10; } v13 = (char *)sub_B8F880("%s:%d", v22, v21); v14 = v13; if ( v13 ) { v15 = (unsigned __int8)*v13; if ( v15 != 58 && v15 ) { v16 = v14; do { *v16 = tolower(v15); v17 = (unsigned __int8)*++v16; v15 = v17; } while ( v17 != 58 && v15 ); } v18 = strlen(v14); if ( a1[14] ) sub_B9EA70(a1, 3, 2); sub_B99A3C(a1[10], v14, v18 + 1); if ( a1[14] ) sub_B9EAD0(a1, 3); off_1231008(v14); goto LABEL_5; } return 27; }
GD Web Decomp Icon

GD Web Decomp

Raw Source