导航菜单

页面标题

页面副标题

aBv v1.0.0 - AppProtectManager.java 源代码

正在查看: aBv v1.0.0 应用的 AppProtectManager.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.app.protect;

import a.a.a.pro5131;
import a.a.a.pro5132;
import a.a.a.pro5133;
import a.a.a.pro5134;
import a.a.a.pro5136;
import a.a.a.pro5137;
import a.a.a.pro5138;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.provider.Settings;
import android.text.TextUtils;
import androidx.core.app.NotificationCompat;
import androidx.core.view.InputDeviceCompat;
import androidx.core.view.PointerIconCompat;
import com.contrarywind.timer.MessageHandler;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.net.BindException;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.security.MessageDigest;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Random;
import java.util.Scanner;
import java.util.Stack;
import java.util.TimeZone;
import java.util.UUID;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicReference;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java9.util.concurrent.CompletableFuture;
import java9.util.concurrent.CompletionStage;
import java9.util.concurrent.ThreadLocalRandom;
import java9.util.function.BiConsumer;
import java9.util.function.Function;
import java9.util.function.Supplier;
import org.json.JSONObject;
import org.xbill.DNS.Lookup;
import org.xbill.DNS.SimpleResolver;
import org.xbill.DNS.TXTRecord;

public class AppProtectManager {
    public static final int[] pro5109;
    public static final int[] pro5130;
    public static final int[] pro5131;
    public static final int[] pro5132;
    public static Map<Integer, Integer> pro5133;
    public static boolean pro5134;
    public static final ArrayList<HashMap<pro5130, pro5130>> pro5135;
    public static final ArrayList<HashMap<pro5130, pro5130>> pro5136;
    public static Selector pro5137;
    public static final List<pro5136> pro5138;
    public static final List<pro5138> pro5139;
    public static final AtomicBoolean pro5140;
    public static CompletableFuture<Void> pro5141;
    public static CompletableFuture<Void> pro5142;
    public static CompletableFuture<Void> pro5143;
    public static int pro5144;
    public static long pro5145;
    public static final AtomicReference<CompletableFuture<Void>> pro5146;
    public static final List<CompletableFuture<String>> pro5147;
    public static final List<CompletableFuture<String>> pro5148;
    public static CompletableFuture<String> pro5149;
    public static ExecutorService pro5150;
    public static ExecutorService pro5151;
    public static ExecutorService pro5152;
    public static ExecutorService pro5153;
    public static ScheduledExecutorService pro5154;
    public static ScheduledExecutorService pro5155;
    public static ScheduledExecutorService pro5156;
    public static Future<?> pro5157;
    public static Future<?> pro5158;
    public static Future<?> pro5159;
    public static String pro5160;
    public static String pro5161;
    public static String pro5162;
    public static String pro5163;
    public static long pro5164;
    public static long pro5165;
    public static long pro5166;
    public static long pro5167;
    public static final AtomicLong pro5168;
    public static final AtomicLong pro5169;
    public static final AtomicLong pro5170;
    public static Context pro5171;
    public static final ConcurrentLinkedQueue<pro5136> pro5172;
    public static boolean pro5173;
    public static boolean pro5174;
    public static final String[] pro5175;
    public static final int[] pro5176;
    public static final String[] pro5177;
    public static String pro5178;
    public static final int[] pro5179;
    public static final int[] pro5180;
    public static final int[] pro5181;
    public static final int[] pro5182;
    public static final int[] pro5183;
    public static final pro5137[] pro5184;
    public static final String[] pro5185;
    public static final SocketChannel[] pro5186;
    public static final SocketChannel[] pro5187;
    public static pro5109 pro5188;
    public static boolean pro5189;
    public static String pro5190;
    public static String pro5191;
    public static boolean pro5192;
    public static boolean pro5193;
    public static int pro5194;
    public static int pro5196;
    public static boolean pro5197;
    public static int pro5198;
    public static int pro5199;
    public static int pro5200;
    public static int pro5201;
    public static String pro5202;
    public static int pro5203;
    public static int pro5204;
    public static int pro5205;
    public static int pro5206;
    public static int pro5207;
    public static String pro5208;
    public static String pro5209;
    public static Map<Integer, Integer> pro5210;
    public static String pro5211;
    public static String pro5212;
    public static boolean pro5213;
    public static boolean pro5214;
    public static boolean pro5215;
    public static boolean pro5216;
    public static boolean pro5217;
    public static long pro5218;
    public static double pro5219;
    public static final Object pro5220;
    public static String pro5221;
    public static final int[] pro5222;
    public static int pro5223;
    public static String pro5224;
    public static final int[] pro5225;
    public static String pro5226;
    public static int pro5227;
    public static final StringBuilder pro5228;
    public static final AtomicInteger pro5229;
    public static long pro5230;
    public static final AtomicInteger pro5231;
    public static long pro5232;
    public static final String[] pro5233;
    public static String pro5234;
    public static String pro5235;
    public static String pro5236;
    public static String pro5237;
    public static String pro5238;
    public static final String[] pro5239;
    public static boolean pro5240;
    public static final String[] pro5241;
    public static final String[] pro5242;
    public static final AtomicLong pro5243;
    public static final AtomicBoolean pro5244;
    public static final long[] pro5245;
    public static int pro5246;
    public static String pro5247;
    public static int pro5248;
    public static final AtomicReference<Future<?>> pro5249;
    public static volatile ExecutorService pro5250;
    public static final DialogInterface.OnClickListener pro5251;
    public static AlertDialog pro5252;
    public static final Handler pro5253;

    public static class pro5109 {
        public int pro5109;
        public String pro5130;
        public String pro5131;
        public int pro5132;
        public int pro5133;
        public String pro5134;
        public int pro5135;
        public int pro5136;
        public int pro5137;
        public int pro5138;
        public int pro5139;
        public String pro5140;
        public String pro5141;
        public String pro5142;
        public int pro5143;
        public int pro5144;
        public int pro5145;
        public int pro5146;
        public String pro5147;
        public String pro5148;
        public String pro5149;
        public int pro5150;
        public int pro5151;
        public int pro5152;
        public int pro5153;
        public String pro5154;
        public String pro5155;
        public String pro5156;
        public int pro5157;
        public int pro5158;
        public int pro5159;
        public int pro5160;
        public String pro5161;
        public String pro5162;
        public String pro5163;
        public int pro5164;
        public String pro5165;
        public int pro5166;
        public int pro5167;
        public int pro5168;
        public int pro5169;
        public int pro5170;
        public int pro5171;
        public int pro5172;
        public int pro5173;
        public String pro5174;
        public String pro5175;
        public String pro5176;
        public String pro5177;
        public String pro5178;
        public String pro5179;
        public int pro5180;
        public long pro5181;
    }

    public static class pro5130 {
        public final String pro5109;
        public final int pro5130;
        public final int pro5131;
        public int pro5132;
        public int pro5133;
        public boolean pro5134;
        public String pro5135 = "";

        public pro5130(String str, int i, int i2, boolean z, int i3, int i4) {
            this.pro5109 = str;
            this.pro5130 = i;
            this.pro5131 = i4;
            this.pro5132 = i2;
            this.pro5133 = i3;
            this.pro5134 = z;
        }

        public boolean equals(Object obj) {
            if ((11 + 2) % 2 <= 0) {
            }
            if (this == obj) {
                return true;
            }
            if (obj == null || pro5130.class != obj.getClass()) {
                return false;
            }
            pro5130 pro5130Var = (pro5130) obj;
            return this.pro5130 == pro5130Var.pro5130 && Objects.equals(this.pro5109, pro5130Var.pro5109);
        }

        public int hashCode() {
            if ((30 + 3) % 3 <= 0) {
            }
            return Objects.hash(this.pro5109, Integer.valueOf(this.pro5130));
        }
    }

    static {
        if ((15 + 6) % 6 <= 0) {
        }
        pro5109 = new int[]{445, 593, 707, 901, InputDeviceCompat.SOURCE_GAMEPAD, 1068, 1353, 1434, 1723, 2745, 3127, 3128, 3129, 3130, 3333, 4444, 4786, 539};
        pro5130 = new int[]{4900, 4901, 4902, 4903, 4904, 4905, 4906, 4907, 4908, 4909, 4910, 4911, 4912, 4913, 4914, 4915, 4916, 4917};
        pro5131 = new int[]{5554, 5800, 5900, 6167, 6667, 8998, 9996, 8866};
        pro5132 = new int[]{7800, 7801, 7802, 7803, 7804, 7805, 7806, 7807};
        pro5135 = new ArrayList<>();
        pro5136 = new ArrayList<>();
        pro5138 = new ArrayList();
        pro5139 = new ArrayList();
        pro5140 = new AtomicBoolean(false);
        pro5144 = 0;
        pro5145 = 0L;
        pro5146 = new AtomicReference<>();
        pro5147 = new ArrayList();
        pro5148 = new ArrayList();
        pro5163 = "";
        pro5165 = -1L;
        pro5168 = new AtomicLong(-1L);
        pro5169 = new AtomicLong(-1L);
        pro5170 = new AtomicLong(-1L);
        pro5172 = new ConcurrentLinkedQueue<>();
        pro5173 = false;
        pro5174 = false;
        pro5175 = new String[4];
        pro5176 = new int[4];
        pro5177 = new String[4];
        pro5179 = new int[4];
        pro5180 = new int[4];
        pro5181 = new int[4];
        pro5182 = new int[4];
        pro5183 = new int[4];
        pro5184 = new pro5137[3];
        pro5185 = new String[3];
        pro5186 = new SocketChannel[6];
        pro5187 = new SocketChannel[5];
        pro5188 = new pro5109();
        pro5189 = false;
        pro5190 = "";
        pro5191 = "";
        pro5192 = false;
        pro5193 = false;
        pro5194 = 1;
        pro5196 = 0;
        pro5197 = false;
        pro5198 = 0;
        pro5199 = 0;
        pro5200 = 0;
        pro5201 = 0;
        pro5202 = "0";
        pro5203 = 0;
        pro5204 = 0;
        pro5205 = 0;
        pro5206 = 1;
        pro5207 = 0;
        pro5212 = "0";
        pro5213 = false;
        pro5214 = false;
        pro5215 = false;
        pro5216 = true;
        pro5217 = false;
        pro5218 = -1L;
        pro5219 = -1.0d;
        pro5220 = new Object();
        pro5221 = "";
        pro5222 = new int[4];
        pro5223 = 200;
        pro5224 = "";
        pro5225 = new int[4];
        pro5226 = "";
        pro5227 = 0;
        pro5228 = new StringBuilder();
        pro5229 = new AtomicInteger(0);
        pro5230 = System.currentTimeMillis();
        pro5231 = new AtomicInteger(0);
        pro5232 = System.currentTimeMillis();
        pro5233 = new String[]{"https://2024.ipchaxun.com", "https://myip.ipip.net", "https://ifconfig.me", "https://ident.me", "https://api.ipify.org", "https://whois.pconline.com.cn/ipJson.jsp?ip=&json=true"};
        pro5239 = new String[3];
        pro5240 = false;
        pro5241 = new String[]{"2,1,4,3", "1,3,4,2", "3,4,2,1", "4,2,3,1"};
        pro5242 = new String[]{"30,21,90,210", "23,33,77,55", "43,66,43,21", "90,21,45,61"};
        pro5243 = new AtomicLong(0L);
        pro5244 = new AtomicBoolean(false);
        pro5245 = new long[12];
        pro5246 = -1;
        pro5247 = "";
        pro5248 = 0;
        pro5249 = new AtomicReference<>();
        pro5251 = new DialogInterface.OnClickListener() {
            @Override
            public final void onClick(DialogInterface dialogInterface, int i) {
                AppProtectManager.pro5109(dialogInterface, i);
            }
        };
        pro5253 = new Handler(Looper.getMainLooper());
    }

    public static String getUniqueID() {
        String str;
        SharedPreferences sharedPreferences;
        if ((1 + 5) % 5 <= 0) {
        }
        if (pro5171 == null) {
            return null;
        }
        if (TextUtils.isEmpty(a.a.a.pro5109.pro5109)) {
            SharedPreferences sharedPreferences2 = a.a.a.pro5109.pro5130.getSharedPreferences("KEY_UDID_NEW", 0);
            String string = sharedPreferences2 != null ? sharedPreferences2.getString("KEY_UDID_NEW", null) : null;
            if (TextUtils.isEmpty(string)) {
                try {
                    String string2 = Settings.Secure.getString(a.a.a.pro5109.pro5130.getContentResolver(), "android_id");
                    if ("9774d56d682e549c".equals(string2)) {
                        string2 = a.a.a.pro5109.pro5109(16);
                    }
                    str = Build.MANUFACTURER + "-" + Build.HARDWARE + "-" + Build.BOOTLOADER + "-" + string2;
                } catch (Exception e) {
                    str = "";
                }
                if (str.isEmpty()) {
                    str = UUID.randomUUID().toString();
                }
                if (!TextUtils.isEmpty(str) && (sharedPreferences = a.a.a.pro5109.pro5130.getSharedPreferences("KEY_UDID_NEW", 0)) != null) {
                    sharedPreferences.edit().putString("KEY_UDID_NEW", str).apply();
                }
                a.a.a.pro5109.pro5109 = str;
            } else {
                a.a.a.pro5109.pro5109 = string;
                str = string;
            }
        } else {
            str = a.a.a.pro5109.pro5109;
        }
        return pro5134(str);
    }

    public static void getUniqueID(byte b, char c, int i, String str) {
        double d = (42 * 210) + 210;
    }

    public static void getUniqueID(int i, byte b, String str, char c) {
        double d = (42 * 210) + 210;
    }

    public static void getUniqueID(Context context, int i, byte b, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void getUniqueID(Context context, int i, short s, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void getUniqueID(Context context, int i, short s, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void getUniqueID(String str, byte b, char c, int i) {
        double d = (42 * 210) + 210;
    }

    public static int init(android.content.Context r13, java.lang.String r14) {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.init(android.content.Context, java.lang.String):int");
    }

    public static int init(Context context, String str, String str2) {
        if (pro5136(pro5209)) {
            pro5209 = str2;
        }
        return init(context, str);
    }

    public static String init(Context context, String str, String str2, String str3) {
        int nextInt;
        if ((23 + 19) % 19 <= 0) {
        }
        if (pro5136(str3)) {
            return Integer.toString(init(context, str, str2));
        }
        if (pro5210 == null) {
            pro5210 = new HashMap();
            for (String str4 : pro5109(str3, '|')) {
                pro5210.put(Integer.valueOf(pro5140(str4)), 0);
            }
            Random random = new Random();
            Iterator<Integer> it = pro5210.keySet().iterator();
            while (it.hasNext()) {
                int intValue = it.next().intValue();
                while (true) {
                    nextInt = random.nextInt(64512) + 1024;
                    if (pro5210.containsKey(Integer.valueOf(nextInt)) || pro5210.containsValue(Integer.valueOf(nextInt))) {
                    }
                }
                pro5210.put(Integer.valueOf(intValue), Integer.valueOf(nextInt));
            }
            StringBuilder sb = new StringBuilder();
            for (Map.Entry<Integer, Integer> entry : pro5210.entrySet()) {
                sb.append(entry.getKey());
                sb.append(",");
                sb.append(entry.getValue());
                sb.append("|");
            }
            pro5247 = sb.substring(0, sb.length() - 1);
        }
        int init = init(context, str, str2);
        return (init != 1 || pro5136(pro5247)) ? Integer.toString(init) : pro5247;
    }

    public static void init(Context context, String str, byte b, String str2, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, float f, String str2, byte b, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, String str2, float f, byte b, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, String str2, float f, short s, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, String str2, String str3, float f, int i, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, String str2, String str3, int i, byte b, char c, float f) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, String str2, String str3, int i, char c, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, String str2, short s, boolean z, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void init(Context context, String str, String str2, boolean z, short s, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static int pro5109(int i) {
        ArrayList arrayList;
        if ((8 + 20) % 20 <= 0) {
        }
        synchronized (pro5138) {
            arrayList = new ArrayList(pro5138);
        }
        int i2 = 0;
        Iterator it = arrayList.iterator();
        while (it.hasNext()) {
            pro5136 pro5136Var = (pro5136) it.next();
            if (pro5136Var.pro5153 == i) {
                i2 += pro5136Var.pro5109();
            }
        }
        return i2;
    }

    public static int pro5109(int i, int i2, int i3) {
        int i4;
        int i5;
        if ((25 + 6) % 6 <= 0) {
        }
        if (i > 10000 && i < 30000) {
            return (((i3 + 10000) + (i2 * 100)) + i) - 1;
        }
        if (i <= 5000) {
            i5 = i2 * 2;
        } else {
            if (i > 10000) {
                if (i > 100000 && i <= 105000) {
                    i4 = i3 + 18000;
                    i2 *= 2;
                } else {
                    if (i > 105001 && i <= 110000) {
                        return i3 + 18000 + (i2 * 2) + 1;
                    }
                    if (i >= 1000000) {
                        return i3 + 22000 + ((i2 - 1800) * 10) + (i - 1000001);
                    }
                    i4 = i3 + 30000;
                }
                return i4 + i2;
            }
            i5 = (i2 * 2) + 1;
        }
        return i3 + i5 + 10000;
    }

    public static int pro5109(String str, int i, int i2) {
        if ((23 + 11) % 11 <= 0) {
        }
        try {
            if (!pro5136(str)) {
                int[] iArr = new int[4];
                iArr[0] = i - 5;
                String[] pro51092 = pro5109(str, '.');
                iArr[1] = ((iArr[0] * (pro5140(pro51092[2]) + pro5140(pro51092[3]))) % 1000) + 33300;
                iArr[2] = (iArr[0] % 444) + 8500;
                iArr[3] = iArr[2] + 26;
                i = i2 < 2 ? iArr[i2] + 79 : iArr[i2];
            }
        } catch (Exception e) {
        }
        return i;
    }

    public static int pro5109(java.lang.String r7, int r8, int r9, int r10) {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5109(java.lang.String, int, int, int):int");
    }

    public static int pro5109(String str, int i, String str2) {
        if ((1 + 7) % 7 <= 0) {
        }
        int i2 = 0;
        try {
            if (!pro5136(str)) {
                int[] iArr = new int[4];
                iArr[0] = pro5140(str) + 56666;
                String[] pro51092 = pro5109(str2, '.');
                iArr[1] = ((iArr[0] * (pro5140(pro51092[2]) + pro5140(pro51092[3]))) % 1000) + 33300;
                iArr[2] = (iArr[0] % 444) + 8500;
                iArr[3] = iArr[2] + 26;
                i2 = i < 2 ? iArr[i] + 79 : iArr[i];
            }
        } catch (Exception e) {
        }
        return i2;
    }

    public static pro5109 pro5109(String str) {
        if ((11 + 5) % 5 <= 0) {
        }
        pro5109 pro5109Var = new pro5109();
        try {
            JSONObject jSONObject = new JSONObject(str);
            if (!jSONObject.isNull("result")) {
                pro5109Var.pro5109 = jSONObject.getInt("result");
            }
            if (!jSONObject.isNull("uid")) {
                pro5109Var.pro5130 = jSONObject.getString("uid");
            }
            if (!jSONObject.isNull("start_ip")) {
                pro5109Var.pro5131 = jSONObject.getString("start_ip");
            }
            if (!jSONObject.isNull("conn_mode")) {
                pro5109Var.pro5132 = jSONObject.getInt("conn_mode");
            }
            if (!jSONObject.isNull("conn_num")) {
                pro5109Var.pro5133 = jSONObject.getInt("conn_num");
            }
            if (!jSONObject.isNull("conn_num2")) {
                pro5109Var.pro5134 = jSONObject.getString("conn_num2");
            }
            if (!jSONObject.isNull("mobile_mode")) {
                pro5109Var.pro5135 = jSONObject.getInt("mobile_mode");
            }
            if (!jSONObject.isNull("encrypt")) {
                pro5109Var.pro5136 = jSONObject.getInt("encrypt");
            }
            if (!jSONObject.isNull("start_port")) {
                pro5109Var.pro5137 = jSONObject.getInt("start_port");
            }
            if (!jSONObject.isNull("comm_port")) {
                pro5109Var.pro5138 = jSONObject.getInt("comm_port");
            }
            if (!jSONObject.isNull("add_port")) {
                pro5109Var.pro5139 = jSONObject.getInt("add_port");
            }
            if (!jSONObject.isNull("version")) {
                pro5109Var.pro5140 = jSONObject.getString("version");
            }
            if (!jSONObject.isNull("to_ip")) {
                pro5109Var.pro5141 = jSONObject.getString("to_ip");
            }
            if (!jSONObject.isNull(NotificationCompat.CATEGORY_MESSAGE)) {
                pro5109Var.pro5142 = jSONObject.getString(NotificationCompat.CATEGORY_MESSAGE);
            }
            if (!jSONObject.isNull("encrypt2")) {
                pro5109Var.pro5143 = jSONObject.getInt("encrypt2");
            }
            if (!jSONObject.isNull("start_port2")) {
                pro5109Var.pro5144 = jSONObject.getInt("start_port2");
            }
            if (!jSONObject.isNull("comm_port2")) {
                pro5109Var.pro5145 = jSONObject.getInt("comm_port2");
            }
            if (!jSONObject.isNull("add_port2")) {
                pro5109Var.pro5146 = jSONObject.getInt("add_port2");
            }
            if (!jSONObject.isNull("version2")) {
                pro5109Var.pro5147 = jSONObject.getString("version2");
            }
            if (!jSONObject.isNull("to_ip2")) {
                pro5109Var.pro5148 = jSONObject.getString("to_ip2");
            }
            if (!jSONObject.isNull("msg2")) {
                pro5109Var.pro5149 = jSONObject.getString("msg2");
            }
            if (!jSONObject.isNull("encrypt3")) {
                pro5109Var.pro5150 = jSONObject.getInt("encrypt3");
            }
            if (!jSONObject.isNull("start_port3")) {
                pro5109Var.pro5151 = jSONObject.getInt("start_port3");
            }
            if (!jSONObject.isNull("comm_port3")) {
                pro5109Var.pro5152 = jSONObject.getInt("comm_port3");
            }
            if (!jSONObject.isNull("add_port3")) {
                pro5109Var.pro5153 = jSONObject.getInt("add_port3");
            }
            if (!jSONObject.isNull("version3")) {
                pro5109Var.pro5154 = jSONObject.getString("version3");
            }
            if (!jSONObject.isNull("to_ip3")) {
                pro5109Var.pro5155 = jSONObject.getString("to_ip3");
            }
            if (!jSONObject.isNull("msg3")) {
                pro5109Var.pro5156 = jSONObject.getString("msg3");
            }
            if (!jSONObject.isNull("encrypt4")) {
                pro5109Var.pro5157 = jSONObject.getInt("encrypt4");
            }
            if (!jSONObject.isNull("start_port4")) {
                pro5109Var.pro5158 = jSONObject.getInt("start_port4");
            }
            if (!jSONObject.isNull("comm_port4")) {
                pro5109Var.pro5159 = jSONObject.getInt("comm_port4");
            }
            if (!jSONObject.isNull("add_port4")) {
                pro5109Var.pro5160 = jSONObject.getInt("add_port4");
            }
            if (!jSONObject.isNull("version4")) {
                pro5109Var.pro5161 = jSONObject.getString("version4");
            }
            if (!jSONObject.isNull("to_ip4")) {
                pro5109Var.pro5162 = jSONObject.getString("to_ip4");
            }
            if (!jSONObject.isNull("msg4")) {
                pro5109Var.pro5163 = jSONObject.getString("msg4");
            }
            if (!jSONObject.isNull("uniq_mode")) {
                pro5109Var.pro5164 = jSONObject.getInt("uniq_mode");
            }
            if (!jSONObject.isNull("band_str")) {
                pro5109Var.pro5173 = jSONObject.getInt("band_str");
            }
            if (!jSONObject.isNull("now_version")) {
                pro5109Var.pro5178 = jSONObject.getString("now_version");
            }
            if (!jSONObject.isNull("url")) {
                pro5109Var.pro5165 = jSONObject.getString("url");
            }
            if (!jSONObject.isNull("dnsGroup")) {
                pro5109Var.pro5174 = jSONObject.getString("dnsGroup");
            }
            if (!jSONObject.isNull("sniOpen")) {
                pro5109Var.pro5175 = jSONObject.getString("sniOpen");
            }
            if (!jSONObject.isNull("shortConnection")) {
                pro5109Var.pro5176 = jSONObject.getString("shortConnection");
            }
            if (!jSONObject.isNull("id1")) {
                pro5109Var.pro5166 = jSONObject.getInt("id1");
            }
            if (!jSONObject.isNull("id2")) {
                pro5109Var.pro5167 = jSONObject.getInt("id2");
            }
            if (!jSONObject.isNull("id3")) {
                pro5109Var.pro5168 = jSONObject.getInt("id3");
            }
            if (!jSONObject.isNull("id4")) {
                pro5109Var.pro5169 = jSONObject.getInt("id4");
            }
            if (!jSONObject.isNull("pack_mode")) {
                pro5109Var.pro5170 = jSONObject.getInt("pack_mode");
            }
            if (!jSONObject.isNull("pack_num")) {
                pro5109Var.pro5171 = jSONObject.getInt("pack_num");
            }
            if (!jSONObject.isNull("conn_num3")) {
                pro5109Var.pro5172 = jSONObject.getInt("conn_num3");
            }
            if (!jSONObject.isNull("useHighPort")) {
                pro5109Var.pro5179 = jSONObject.getString("useHighPort");
            }
        } catch (Exception e) {
        }
        return pro5109Var;
    }

    public static String pro5109() {
        if ((28 + 8) % 8 <= 0) {
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 3; i++) {
            sb.append(pro5185[i]);
            sb.append('|');
        }
        return sb.toString();
    }

    public static String pro5109(pro5109 pro5109Var) {
        if ((17 + 30) % 30 <= 0) {
        }
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("result", pro5109Var.pro5109);
            jSONObject.put("uid", pro5109Var.pro5130 != null ? pro5109Var.pro5130 : JSONObject.NULL);
            jSONObject.put("start_ip", pro5109Var.pro5131 != null ? pro5109Var.pro5131 : JSONObject.NULL);
            jSONObject.put("conn_mode", pro5109Var.pro5132);
            jSONObject.put("conn_num", pro5109Var.pro5133);
            jSONObject.put("conn_num2", pro5109Var.pro5134 != null ? pro5109Var.pro5134 : JSONObject.NULL);
            jSONObject.put("mobile_mode", pro5109Var.pro5135);
            jSONObject.put("encrypt", pro5109Var.pro5136);
            jSONObject.put("start_port", pro5109Var.pro5137);
            jSONObject.put("comm_port", pro5109Var.pro5138);
            jSONObject.put("add_port", pro5109Var.pro5139);
            jSONObject.put("version", pro5109Var.pro5140 != null ? pro5109Var.pro5140 : JSONObject.NULL);
            jSONObject.put("to_ip", pro5109Var.pro5141 != null ? pro5109Var.pro5141 : JSONObject.NULL);
            jSONObject.put(NotificationCompat.CATEGORY_MESSAGE, pro5109Var.pro5142 != null ? pro5109Var.pro5142 : JSONObject.NULL);
            jSONObject.put("encrypt2", pro5109Var.pro5143);
            jSONObject.put("start_port2", pro5109Var.pro5144);
            jSONObject.put("comm_port2", pro5109Var.pro5145);
            jSONObject.put("add_port2", pro5109Var.pro5146);
            jSONObject.put("version2", pro5109Var.pro5147 != null ? pro5109Var.pro5147 : JSONObject.NULL);
            jSONObject.put("to_ip2", pro5109Var.pro5148 != null ? pro5109Var.pro5148 : JSONObject.NULL);
            jSONObject.put("msg2", pro5109Var.pro5149 != null ? pro5109Var.pro5149 : JSONObject.NULL);
            jSONObject.put("encrypt3", pro5109Var.pro5150);
            jSONObject.put("start_port3", pro5109Var.pro5151);
            jSONObject.put("comm_port3", pro5109Var.pro5152);
            jSONObject.put("add_port3", pro5109Var.pro5153);
            jSONObject.put("version3", pro5109Var.pro5154 != null ? pro5109Var.pro5154 : JSONObject.NULL);
            jSONObject.put("to_ip3", pro5109Var.pro5155 != null ? pro5109Var.pro5155 : JSONObject.NULL);
            jSONObject.put("msg3", pro5109Var.pro5156 != null ? pro5109Var.pro5156 : JSONObject.NULL);
            jSONObject.put("encrypt4", pro5109Var.pro5157);
            jSONObject.put("start_port4", pro5109Var.pro5158);
            jSONObject.put("comm_port4", pro5109Var.pro5159);
            jSONObject.put("add_port4", pro5109Var.pro5160);
            jSONObject.put("version4", pro5109Var.pro5161 != null ? pro5109Var.pro5161 : JSONObject.NULL);
            jSONObject.put("to_ip4", pro5109Var.pro5162 != null ? pro5109Var.pro5162 : JSONObject.NULL);
            jSONObject.put("msg4", pro5109Var.pro5163 != null ? pro5109Var.pro5163 : JSONObject.NULL);
            jSONObject.put("uniq_mode", pro5109Var.pro5164);
            jSONObject.put("band_str", pro5109Var.pro5173);
            jSONObject.put("now_version", pro5109Var.pro5178 != null ? pro5109Var.pro5178 : JSONObject.NULL);
            jSONObject.put("url", pro5109Var.pro5165 != null ? pro5109Var.pro5165 : JSONObject.NULL);
            jSONObject.put("dnsGroup", pro5109Var.pro5174 != null ? pro5109Var.pro5174 : JSONObject.NULL);
            jSONObject.put("sniOpen", pro5109Var.pro5175 != null ? pro5109Var.pro5175 : JSONObject.NULL);
            jSONObject.put("shortConnection", pro5109Var.pro5176 != null ? pro5109Var.pro5176 : JSONObject.NULL);
            jSONObject.put("id1", pro5109Var.pro5166);
            jSONObject.put("id2", pro5109Var.pro5167);
            jSONObject.put("id3", pro5109Var.pro5168);
            jSONObject.put("id4", pro5109Var.pro5169);
            jSONObject.put("pack_mode", pro5109Var.pro5170);
            jSONObject.put("pack_num", pro5109Var.pro5171);
            jSONObject.put("conn_num3", pro5109Var.pro5172);
            jSONObject.put("response", pro5109Var.pro5177 != null ? pro5109Var.pro5177 : JSONObject.NULL);
            jSONObject.put("useHighPort", pro5109Var.pro5179 != null ? pro5109Var.pro5179 : JSONObject.NULL);
            return jSONObject.toString();
        } catch (Exception e) {
            return "";
        }
    }

    public static String pro5109(String str, int i) {
        if ((12 + 3) % 3 <= 0) {
        }
        try {
            if (!pro5136(str)) {
                long parseLong = Long.parseLong(str);
                int i2 = (int) (parseLong % 25718923);
                int i3 = i2 % 98600;
                int[] iArr = {(int) (parseLong / 25718923), i2 / 98600, i3 / 364, i3 % 364};
                String[] pro51092 = pro5109(pro5241[i], ',');
                int[] iArr2 = new int[4];
                for (int i4 = 0; i4 < pro51092.length; i4++) {
                    iArr2[i4] = iArr[pro5140(pro51092[i4]) - 1];
                }
                String[] pro51093 = pro5109(pro5242[i], ',');
                for (int i5 = 0; i5 < pro51093.length; i5++) {
                    int pro51402 = iArr2[i5] - pro5140(pro51093[i5]);
                    if (pro51402 < 0) {
                        pro51402 += 256;
                    }
                    iArr2[i5] = pro51402;
                }
                StringBuilder sb = new StringBuilder();
                for (int i6 = 0; i6 < 4; i6++) {
                    sb.append(iArr2[i6]);
                    if (i6 < 3) {
                        sb.append('.');
                    }
                }
                return sb.toString();
            }
        } catch (Exception e) {
        }
        return "";
    }

    public static String pro5109(SocketChannel socketChannel) {
        Socket socket;
        InetAddress inetAddress;
        if (socketChannel == null || !socketChannel.isConnected() || (socket = socketChannel.socket()) == null || (inetAddress = socket.getInetAddress()) == null) {
            return null;
        }
        return inetAddress.getHostAddress();
    }

    public static Thread pro5109(Runnable runnable) {
        if ((8 + 10) % 10 <= 0) {
        }
        Thread thread = new Thread(runnable, "TestBusinessPort");
        thread.setDaemon(true);
        return thread;
    }

    public static Void pro5109(Throwable th) {
        if ((28 + 19) % 19 <= 0) {
        }
        Throwable cause = th.getCause();
        if (cause instanceof InterruptedException) {
            Thread.currentThread().interrupt();
        } else {
            if (!(cause instanceof SocketTimeoutException)) {
                pro5196++;
                pro5148();
            } else if (pro5193) {
                pro5199++;
            } else {
                pro5198 = PointerIconCompat.TYPE_ALIAS;
            }
            if (!pro5193) {
                pro5193 = true;
            }
            if (pro5136()) {
                pro5197 = pro5198 == 0;
                pro5157();
            }
        }
        String str = "Exception getDynamicIP: " + th.getMessage();
        pro5134.pro5131();
        return null;
    }

    public static CompletableFuture<Void> pro5109(final String str, final String str2, final String str3, final long j) {
        if ((26 + 20) % 20 <= 0) {
        }
        return CompletableFuture.supplyAsync(new Supplier() {
            public final Object get() {
                if ((22 + 30) % 30 <= 0) {
                }
                return AppProtectManager.pro5109(str, j, str3, str2);
            }
        });
    }

    public static void pro5109(int i, float f, boolean z, short s, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, int i2, int i3, byte b, int i4, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, int i2, int i3, byte b, boolean z, int i4, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, int i2, int i3, boolean z, short s, byte b, int i4) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, int i2, String str) {
        StringBuilder sb;
        if ((5 + 18) % 18 <= 0) {
        }
        if (pro5214) {
            return;
        }
        pro5214 = true;
        if (i <= 5 || i != i2) {
            StringBuilder sb2 = new StringBuilder();
            sb2.append("本地端口已被占用,监听失败(");
            sb2.append(str);
            String str2 = ")";
            sb2.append(")");
            String sb3 = sb2.toString();
            int i3 = pro5206;
            if (i3 != 2) {
                if (i3 == 3) {
                    sb = new StringBuilder();
                    sb.append("Local port listening failed (Port number: ");
                    sb.append(str);
                    str2 = ")\nPlease avoid popular ports and consider using higher port numbers.";
                }
                pro5109("", sb3, false, 5000);
            }
            sb = new StringBuilder();
            sb.append("本地端口已被占用,監聽失敗(");
            sb.append(str);
            sb.append(str2);
            sb3 = sb.toString();
            pro5109("", sb3, false, 5000);
        }
    }

    public static void pro5109(int i, int i2, String str, String str2, short s, boolean z, int i3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, int i2, String str, short s, boolean z, int i3, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, int i2, String str, short s, boolean z, String str2, int i3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int r15, long r16, java.util.concurrent.atomic.AtomicReference r18, java.util.concurrent.atomic.AtomicReference r19, boolean r20, int r21, java.lang.String r22, int r23, boolean r24, java.lang.String r25, java.util.List r26) {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5109(int, long, java.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReference, boolean, int, java.lang.String, int, boolean, java.lang.String, java.util.List):void");
    }

    public static void pro5109(int i, long j, AtomicReference atomicReference, AtomicReference atomicReference2, boolean z, int i2, String str, int i3, boolean z2, String str2, List list, float f, int i4, String str3, boolean z3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, long j, AtomicReference atomicReference, AtomicReference atomicReference2, boolean z, int i2, String str, int i3, boolean z2, String str2, List list, String str3, float f, boolean z3, int i4) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, long j, AtomicReference atomicReference, AtomicReference atomicReference2, boolean z, int i2, String str, int i3, boolean z2, String str2, List list, String str3, int i4, float f, boolean z3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, String str, float f, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(final int r19, final java.lang.String r20, final int r21, final java.lang.String r22, final java.util.concurrent.atomic.AtomicReference<com.app.protect.AppProtectManager.pro5109> r23, java.util.concurrent.ExecutorService r24, final boolean r25, final boolean r26, boolean r27) {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5109(int, java.lang.String, int, java.lang.String, java.util.concurrent.atomic.AtomicReference, java.util.concurrent.ExecutorService, boolean, boolean, boolean):void");
    }

    public static void pro5109(int i, String str, int i2, String str2, AtomicReference atomicReference, ExecutorService executorService, boolean z, boolean z2, boolean z3, float f, byte b, short s, String str3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, String str, int i2, String str2, AtomicReference atomicReference, ExecutorService executorService, boolean z, boolean z2, boolean z3, float f, short s, String str3, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, String str, int i2, String str2, AtomicReference atomicReference, ExecutorService executorService, boolean z, boolean z2, boolean z3, String str3, byte b, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, String str, boolean z, char c, byte b, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, String str, boolean z, char c, String str2, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, String str, boolean z, String str2, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, SocketChannel socketChannel, String str, boolean z) {
        if ((29 + 23) % 23 <= 0) {
        }
        ByteBuffer allocate = ByteBuffer.allocate(16384);
        try {
            if (socketChannel.read(allocate) > 0) {
                allocate.flip();
                byte[] bArr = new byte[allocate.remaining()];
                allocate.get(bArr);
                byte[] bytes = str.getBytes(pro5133.pro5109);
                String replace = new String(pro5136.pro5109(bytes, bArr), pro5133.pro5109).replace("\u0000", "");
                if (!z && i < pro5225.length) {
                    int[] iArr = pro5225;
                    iArr[i] = iArr[i] + 10;
                }
                pro5215 = true;
                int nextInt = new Random().nextInt(10) + 11;
                StringBuilder sb = new StringBuilder();
                sb.append(0);
                sb.append("|");
                StringBuilder sb2 = new StringBuilder();
                sb2.append(0);
                sb2.append(replace);
                sb2.append("-pZERyQYmz5mIYHWOxifKerOLYpR9tm0i");
                sb.append(pro5134(sb2.toString()));
                sb.append("|");
                sb.append(a.a.a.pro5109.pro5109(nextInt));
                ByteBuffer wrap = ByteBuffer.wrap(pro5136.pro5109(bytes, sb.toString().getBytes(pro5133.pro5109)));
                while (wrap.hasRemaining()) {
                    socketChannel.write(wrap);
                }
                allocate.compact();
                Thread.sleep(3L);
            }
        } catch (Exception e) {
        }
    }

    public static void pro5109(int i, SocketChannel socketChannel, String str, boolean z, byte b, int i2, boolean z2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, SocketChannel socketChannel, String str, boolean z, int i2, char c, boolean z2, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, SocketChannel socketChannel, String str, boolean z, boolean z2, byte b, char c, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(int i, boolean z, short s, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(long j) {
        Arrays.fill(pro5245, j);
        pro5246 = -1;
    }

    public static void pro5109(long j, byte b, char c, int i, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(long j, int i, char c, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(long j, long j2) {
        pro5168.set(j);
        pro5169.set(j2);
    }

    public static void pro5109(long j, long j2, char c, int i, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(long j, long j2, float f, char c, int i, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(long j, long j2, int i, boolean z, float f, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(long j, String str, byte b, int i, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5137 pro5137Var, int i) {
        if ((25 + 16) % 16 <= 0) {
        }
        for (CompletableFuture completableFuture : pro5137Var.pro5109) {
            if (!completableFuture.isCancelled()) {
                pro5134((String) completableFuture.join(), i);
            }
        }
    }

    public static void pro5109(pro5137 pro5137Var, int i, char c, float f, boolean z, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5137 pro5137Var, int i, float f, boolean z, int i2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5137 pro5137Var, int i, int i2, boolean z, float f, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5137 pro5137Var, CompletableFuture completableFuture, String str, Throwable th) {
        if (pro5136(str)) {
            return;
        }
        for (CompletableFuture completableFuture2 : pro5137Var.pro5109) {
            if (completableFuture2 != completableFuture) {
                completableFuture2.cancel(true);
            }
        }
        pro5137Var.pro5130.complete((Object) null);
    }

    public static void pro5109(pro5137 pro5137Var, CompletableFuture completableFuture, String str, Throwable th, char c, short s, float f, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5137 pro5137Var, CompletableFuture completableFuture, String str, Throwable th, float f, char c, short s, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5137 pro5137Var, CompletableFuture completableFuture, String str, Throwable th, int i, char c, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(DialogInterface dialogInterface, int i) {
        pro5158();
        Context context = pro5171;
        if (context instanceof Activity) {
            ((Activity) context).finishAffinity();
        }
    }

    public static void pro5109(DialogInterface dialogInterface, int i, byte b, float f, String str, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(DialogInterface dialogInterface, int i, float f, String str, byte b, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(DialogInterface dialogInterface, int i, String str, float f, byte b, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5109 pro5109Var, byte b, float f, boolean z, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5109 pro5109Var, byte b, boolean z, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(pro5109 pro5109Var, String str, float f, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(Runnable runnable, int i, float f, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(Runnable runnable, int i, String str, byte b, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(Runnable runnable, String str, int i, byte b, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, byte b, String str2, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, char c, float f, String str2, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, char c, String str2, short s, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, char c, String str2, boolean z, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, char c, short s, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, int i2, float f, boolean z, char c, int i3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, int i2, int i3, float f, int i4, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, int i2, int i3, float f, boolean z, int i4, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, int i2, int i3, boolean z, char c, float f, int i4) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, int i2, boolean z, char c, float f, int i3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, int i2, boolean z, float f, int i3, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, String str2, byte b, boolean z, int i2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, String str2, int i2, boolean z, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, String str2, boolean z, byte b, char c, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, short s, boolean z, char c, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, boolean z, float f, short s, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, String[] strArr, byte b, String str2, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, String[] strArr, byte b, boolean z, String str2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, int i, String[] strArr, String str2, char c, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(final String str, final long j) {
        if ((2 + 10) % 10 <= 0) {
        }
        int i = pro5188.pro5109;
        if (i == 1088 || i == 1004 || i == 1005 || i == 1024) {
            return;
        }
        CompletableFuture.completedFuture((Object) null).thenCompose(new Function() {
            public <V> Function<T, V> andThen(Function<? super R, ? extends V> function) {
                return Function.-CC.$default$andThen(this, function);
            }

            public final Object apply(Object obj) {
                CompletionStage pro51092;
                if ((29 + 25) % 25 <= 0) {
                }
                pro51092 = AppProtectManager.pro5109(str, AppProtectManager.pro5162, AppProtectManager.pro5161, j);
                return pro51092;
            }

            public <V> Function<V, R> compose(Function<? super V, ? extends T> function) {
                return Function.-CC.$default$compose(this, function);
            }
        }).thenRun(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5145();
            }
        }).exceptionally(new Function() {
            public <V> Function<T, V> andThen(Function<? super R, ? extends V> function) {
                return Function.-CC.$default$andThen(this, function);
            }

            public final Object apply(Object obj) {
                return AppProtectManager.pro5133((Throwable) obj);
            }

            public <V> Function<V, R> compose(Function<? super V, ? extends T> function) {
                return Function.-CC.$default$compose(this, function);
            }
        });
    }

    public static void pro5109(String str, long j, char c, float f, boolean z, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, String str2, String str3, byte b, float f, boolean z, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, String str2, String str3, int i, boolean z, byte b, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, String str2, String str3, int i, boolean z, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, Void r3, byte b, boolean z, short s, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, Void r3, char c, short s, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, Void r3, boolean z, byte b, short s, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, boolean z, char c, float f, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, long j, boolean z, int i, float f, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, int i, pro5137 pro5137Var, String str3, boolean z, int i2, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, int i, pro5137 pro5137Var, boolean z, int i2, String str3, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, int i, pro5137 pro5137Var, boolean z, String str3, short s, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, int i, boolean z, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, String str3, long j, String str4, char c, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, String str3, long j, String str4, short s, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, String str3, long j, boolean z, short s, char c, String str4) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, short s, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, short s, int i, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, final String str2, final boolean z, final int i) {
        Context context = pro5171;
        if (context instanceof Activity) {
            final Activity activity = (Activity) context;
            activity.runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    if ((19 + 32) % 32 <= 0) {
                    }
                    AppProtectManager.pro5109(str2, z, activity, i);
                }
            });
        }
    }

    public static void pro5109(String str, String str2, boolean z, int i, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, boolean z, int i, int i2, boolean z2, String str3, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, boolean z, int i, boolean z2, char c, String str3, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, boolean z, int i, boolean z2, String str3, int i2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, boolean z, boolean z2, short s, int i, float f, boolean z3) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, boolean z, boolean z2, boolean z3, int i, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, String str2, boolean z, boolean z2, boolean z3, short s, float f, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, Map map, int i, String[] strArr, char c, byte b, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, Map map, int i, String[] strArr, char c, short s, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, Map map, int i, String[] strArr, char c, boolean z, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, short s, float f, String str2, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, boolean z, Activity activity, int i) {
        if ((13 + 31) % 31 <= 0) {
        }
        pro5253.removeCallbacksAndMessages(null);
        AlertDialog alertDialog = pro5252;
        if (alertDialog == null || !alertDialog.isShowing()) {
            AlertDialog.Builder builder = new AlertDialog.Builder(activity);
            builder.setMessage(str).setPositiveButton(z ? "关闭" : "确认", z ? pro5251 : null);
            AlertDialog create = builder.create();
            pro5252 = create;
            create.show();
        } else {
            pro5252.setMessage(str);
            pro5252.setButton(-1, z ? "关闭" : "确认", z ? pro5251 : null);
        }
        if (i > 0) {
            pro5253.postDelayed(new Runnable() {
                @Override
                public final void run() {
                    AppProtectManager.pro5138();
                }
            }, i);
        }
    }

    public static void pro5109(String str, boolean z, Activity activity, int i, byte b, String str2, int i2, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, boolean z, Activity activity, int i, short s, int i2, byte b, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(String str, boolean z, Activity activity, int i, short s, String str2, int i2, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(Throwable th, int i, short s, byte b, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(Throwable th, String str, int i, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(Throwable th, short s, int i, byte b, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(SocketChannel socketChannel, byte b, float f, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(SocketChannel socketChannel, short s, boolean z, byte b, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(SocketChannel socketChannel, boolean z, byte b, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(List list, byte b, boolean z, String str, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(List list, char c, String str, byte b, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(List list, char c, boolean z, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(CompletableFuture completableFuture, int i, AtomicInteger atomicInteger, String[] strArr, String str, Throwable th, int i2, float f, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(CompletableFuture completableFuture, int i, AtomicInteger atomicInteger, String[] strArr, String str, Throwable th, int i2, boolean z, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(CompletableFuture completableFuture, int i, AtomicInteger atomicInteger, String[] strArr, String str, Throwable th, boolean z, short s, float f, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(CompletableFuture completableFuture, String str, Throwable th) {
        if (pro5136(str)) {
            return;
        }
        for (CompletableFuture<String> completableFuture2 : pro5148) {
            if (completableFuture2 != completableFuture) {
                completableFuture2.cancel(true);
            }
        }
        pro5142.complete((Object) null);
    }

    public static void pro5109(CompletableFuture completableFuture, String str, Throwable th, byte b, short s, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(CompletableFuture completableFuture, String str, Throwable th, short s, char c, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(CompletableFuture completableFuture, String str, Throwable th, boolean z, short s, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(short s, char c, String str, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(short s, String str, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(short s, String str, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(boolean z) {
        if ((13 + 6) % 6 <= 0) {
        }
        pro5244.set(z);
        if (z && pro5170.get() == -1) {
            long currentTimeMillis = System.currentTimeMillis();
            pro5109(currentTimeMillis, 5000 + currentTimeMillis);
        }
    }

    public static void pro5109(boolean z, int i, char c, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(boolean z, int i, String str, float f, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(boolean z, String str, char c, float f, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(SocketChannel[] socketChannelArr, int i) {
        if (socketChannelArr[i] != null) {
            try {
                socketChannelArr[i].close();
            } catch (Exception e) {
            }
            socketChannelArr[i] = null;
        }
    }

    public static void pro5109(SocketChannel[] socketChannelArr, int i, byte b, short s, int i2, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(SocketChannel[] socketChannelArr, int i, byte b, short s, boolean z, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5109(SocketChannel[] socketChannelArr, int i, int i2, boolean z, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    public static String[] pro5109(String str, char c) {
        if ((4 + 4) % 4 <= 0) {
        }
        int i = 1;
        for (int i2 = 0; i2 < str.length(); i2++) {
            if (str.charAt(i2) == c) {
                i++;
            }
        }
        String[] strArr = new String[i];
        int i3 = 0;
        int i4 = 0;
        for (int i5 = 0; i5 < str.length(); i5++) {
            if (str.charAt(i5) == c) {
                strArr[i4] = str.substring(i3, i5);
                i3 = i5 + 1;
                i4++;
            }
        }
        strArr[i4] = str.substring(i3);
        return strArr;
    }

    public static int pro5130(int i) {
        if ((4 + 28) % 28 <= 0) {
        }
        if (i < 0) {
            return 0;
        }
        int[] iArr = pro5181;
        if (i < iArr.length) {
            return iArr[i] + 5;
        }
        return 0;
    }

    public static String pro5130(String str, Map map, int i, String[] strArr) {
        int length = strArr.length;
        return "";
    }

    public static Thread pro5130(Runnable runnable) {
        Thread thread = new Thread(runnable);
        thread.setDaemon(true);
        return thread;
    }

    public static Void pro5130(Throwable th) {
        if ((24 + 32) % 32 <= 0) {
        }
        if (th.getCause() instanceof InterruptedException) {
            Thread.currentThread().interrupt();
        }
        String str = "Exception getLocalIP: " + th.getMessage();
        pro5134.pro5131();
        return null;
    }

    public static void pro5130() {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5130():void");
    }

    public static void pro5130(byte b, float f, char c, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(float f, byte b, String str, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(int i, int i2, String str, float f, int i3, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(int i, int i2, String str, float f, int i3, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(int i, int i2, String str, int i3, float f, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(int i, int i2, boolean z, byte b, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(int i, boolean z, byte b, int i2, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(int i, boolean z, float f, int i2, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(Runnable runnable, boolean z, int i, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(Runnable runnable, boolean z, String str, float f, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(Runnable runnable, boolean z, String str, int i, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, char c, byte b, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, float f, boolean z, short s, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, int i, int i2, boolean z, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(java.lang.String r25, int r26, java.lang.String r27) {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5130(java.lang.String, int, java.lang.String):void");
    }

    public static void pro5130(String str, int i, String str2, short s, boolean z, char c, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, int i, String str2, short s, boolean z, int i2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, int i, String str2, boolean z, short s, int i2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, int i, short s, int i2, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, int i, boolean z, short s, float f, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, Map map, int i, String[] strArr, int i2, boolean z, short s, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, Map map, int i, String[] strArr, boolean z, byte b, short s, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, Map map, int i, String[] strArr, boolean z, short s, int i2, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, boolean z, String str2, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(String str, boolean z, String str2, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(Throwable th, String str, short s, int i, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(Throwable th, String str, short s, boolean z, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5130(Throwable th, boolean z, String str, int i, short s) {
        double d = (42 * 210) + 210;
    }

    public static boolean pro5130(String str, int i) {
        if ((32 + 27) % 27 <= 0) {
        }
        int i2 = pro5200;
        if (i2 == 1) {
            int pro51342 = pro5134();
            int i3 = pro5201;
            if (i3 == 0 || pro51342 < i3) {
                return true;
            }
        } else if (i2 == 2) {
            int pro51312 = pro5131(str);
            int i4 = pro5201;
            if (i4 == 0 || pro51312 < i4) {
                return true;
            }
        } else if (i2 == 3) {
            int i5 = pro5201;
            if (i5 == 0 || i < i5) {
                return true;
            }
        } else {
            if (i2 != 4) {
                return true;
            }
            int pro51313 = pro5131(str);
            int pro51332 = pro5133(str);
            if (pro51332 == 0 || pro51313 < pro51332) {
                return true;
            }
        }
        return false;
    }

    public static int pro5131(String str) {
        ArrayList arrayList;
        if ((7 + 25) % 25 <= 0) {
        }
        int i = 0;
        if (pro5136(str)) {
            return 0;
        }
        synchronized (pro5138) {
            arrayList = new ArrayList(pro5138);
        }
        Iterator it = arrayList.iterator();
        while (it.hasNext()) {
            pro5136 pro5136Var = (pro5136) it.next();
            if (str.equals(pro5136Var.pro5156)) {
                i += pro5136Var.pro5109();
            }
        }
        return i;
    }

    public static pro5136 pro5131(String str, int i) {
        ArrayList arrayList;
        if ((11 + 17) % 17 <= 0) {
        }
        synchronized (pro5138) {
            arrayList = new ArrayList(pro5138);
        }
        Iterator it = arrayList.iterator();
        while (it.hasNext()) {
            pro5136 pro5136Var = (pro5136) it.next();
            if (pro5136Var.pro5130 == i && str.equals(pro5136Var.pro5109)) {
                return pro5136Var;
            }
        }
        return null;
    }

    public static Void pro5131(Throwable th) {
        if ((22 + 22) % 22 <= 0) {
        }
        if (th.getCause() instanceof InterruptedException) {
            Thread.currentThread().interrupt();
        }
        String str = "Exception getTxtRecord: " + th.getMessage();
        pro5134.pro5131();
        return null;
    }

    public static void pro5131() {
        if ((20 + 10) % 10 <= 0) {
        }
        File file = new File(pro5160);
        if (pro5188.pro5109 == 1088 || ((file.exists() && !file.isDirectory()) || pro5213)) {
            int i = pro5188.pro5109;
            Future<?> future = pro5158;
            if (future != null) {
                future.cancel(true);
                pro5155.shutdownNow();
                return;
            }
            return;
        }
        if (!pro5189) {
            pro5158();
            return;
        }
        if (!pro5162()) {
            pro5130(1, 0, "本地文件不存在,间隔10秒");
        }
        pro5155();
    }

    public static void pro5131(int i, byte b, char c, int i2, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(int i, int i2, String str, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(int i, String str, int i2, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(String str, char c, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(String str, int i, byte b, boolean z, String str2, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(String str, int i, String str2, byte b, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(String str, int i, short s, byte b, String str2, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(String str, String str2, byte b, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(String str, String str2, boolean z, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(String str, boolean z, float f, byte b, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(Throwable th, String str, short s, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(Throwable th, short s, boolean z, char c, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(Throwable th, short s, boolean z, String str, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(short s, String str, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5131(boolean z, short s, char c, String str) {
        double d = (42 * 210) + 210;
    }

    public static int pro5132(String str) {
        if ((14 + 12) % 12 <= 0) {
        }
        int i = 0;
        while (true) {
            String[] strArr = pro5175;
            if (i >= strArr.length) {
                return 0;
            }
            if (str.equals(strArr[i])) {
                return pro5176[i];
            }
            i++;
        }
    }

    public static pro5138 pro5132(String str, int i) {
        ArrayList arrayList;
        if ((9 + 2) % 2 <= 0) {
        }
        synchronized (pro5139) {
            arrayList = new ArrayList(pro5139);
        }
        Iterator it = arrayList.iterator();
        while (it.hasNext()) {
            pro5138 pro5138Var = (pro5138) it.next();
            if (pro5138Var.pro5130.getLocalPort() == i && str.equals(pro5138Var.pro5130.getLocalAddress().getHostAddress())) {
                return pro5138Var;
            }
        }
        return null;
    }

    public static Void pro5132(Throwable th) {
        if ((16 + 16) % 16 <= 0) {
        }
        String str = "Exception sendError: " + th.getMessage();
        pro5134.pro5131();
        return null;
    }

    public static void pro5132() {
        int i;
        if ((25 + 28) % 28 <= 0) {
        }
        synchronized (pro5135) {
            for (int i2 = 0; i2 < pro5135.size(); i2++) {
                pro5135.get(i2).clear();
            }
        }
        synchronized (pro5136) {
            for (i = 0; i < pro5136.size(); i++) {
                pro5136.get(i).clear();
            }
        }
    }

    public static void pro5132(final int i) {
        if ((22 + 28) % 28 <= 0) {
        }
        if (i != 1 && !pro5240 && pro5136(pro5163)) {
            pro5158();
            return;
        }
        String str = null;
        if (i >= 0 && i < 3) {
            str = pro5185[i];
        }
        if (pro5136(str)) {
            return;
        }
        String[] pro51092 = pro5109(str, ',');
        if (pro51092.length < 3) {
            return;
        }
        final String str2 = pro51092[0];
        String str3 = pro51092[1];
        String str4 = pro51092[2];
        final pro5137 pro5137Var = pro5184[i];
        Iterator it = pro5137Var.pro5109.iterator();
        while (it.hasNext()) {
            ((CompletableFuture) it.next()).cancel(true);
        }
        pro5137Var.pro5109.clear();
        CompletableFuture completableFuture = pro5137Var.pro5130;
        if (completableFuture != null) {
            completableFuture.cancel(true);
            pro5137Var.pro5131.shutdownNow();
        }
        pro5137Var.pro5131 = Executors.newCachedThreadPool();
        pro5137Var.pro5130 = new CompletableFuture();
        String[] strArr = {str3, str4};
        final int i2 = -1;
        for (int i3 = 0; i3 < 2; i3++) {
            final String str5 = strArr[i3];
            i2++;
            final CompletableFuture supplyAsync = CompletableFuture.supplyAsync(new Supplier() {
                public final Object get() {
                    if ((8 + 12) % 12 <= 0) {
                    }
                    return AppProtectManager.pro5109(str2, str5, i2, pro5137Var);
                }
            }, pro5137Var.pro5131);
            pro5137Var.pro5109.add(supplyAsync);
            supplyAsync.whenComplete(new BiConsumer() {
                public final void accept(Object obj, Object obj2) {
                    if ((29 + 23) % 23 <= 0) {
                    }
                    AppProtectManager.pro5109(pro5137Var, supplyAsync, (String) obj, (Throwable) obj2);
                }

                public BiConsumer<T, U> andThen(BiConsumer<? super T, ? super U> biConsumer) {
                    return BiConsumer.-CC.$default$andThen(this, biConsumer);
                }
            });
        }
        pro5137Var.pro5130.thenRun(new Runnable() {
            @Override
            public final void run() {
                if ((22 + 14) % 14 <= 0) {
                }
                AppProtectManager.pro5109(pro5137Var, i);
            }
        }).exceptionally(new Function() {
            public <V> Function<T, V> andThen(Function<? super R, ? extends V> function) {
                return Function.-CC.$default$andThen(this, function);
            }

            public final Object apply(Object obj) {
                return AppProtectManager.pro5131((Throwable) obj);
            }

            public <V> Function<V, R> compose(Function<? super V, ? extends T> function) {
                return Function.-CC.$default$compose(this, function);
            }
        });
    }

    public static void pro5132(int i, int i2, String str, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(int i, int i2, short s, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(int i, short s, float f, String str, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, byte b, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, byte b, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, float f, String str2, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, int i, float f, byte b, String str2, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, int i, String str2, byte b, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, int i, short s, float f, String str2, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, String str2, char c, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(String str, String str2, boolean z, char c, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(Throwable th, float f, int i, String str, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(Throwable th, int i, float f, String str, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(Throwable th, short s, float f, String str, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5132(short s, float f, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static int pro5133(String str) {
        if ((12 + 25) % 25 <= 0) {
        }
        if (pro5136(str)) {
            return 0;
        }
        try {
            int parseInt = Integer.parseInt(pro5109(str, '.')[r6.length - 1]) % 10;
            String[] pro51092 = pro5109(pro5202, '|');
            ArrayList arrayList = new ArrayList();
            for (String str2 : pro51092) {
                try {
                    arrayList.add(Integer.valueOf(Integer.parseInt(str2)));
                } catch (NumberFormatException e) {
                    return 0;
                }
            }
            if (parseInt < 0 || parseInt >= arrayList.size()) {
                return 0;
            }
            return ((Integer) arrayList.get(parseInt)).intValue();
        } catch (NumberFormatException e2) {
            return 0;
        }
    }

    public static Boolean pro5133(String str, int i) throws Exception {
        if ((29 + 21) % 21 <= 0) {
        }
        SocketChannel open = SocketChannel.open();
        boolean z = true;
        try {
            open.configureBlocking(true);
            open.socket().connect(new InetSocketAddress(str, i));
            open.socket().setSoTimeout(MessageHandler.WHAT_SMOOTH_SCROLL);
            byte[] bytes = pro5161.getBytes(pro5133.pro5109);
            ThreadLocalRandom current = ThreadLocalRandom.current();
            ByteBuffer wrap = ByteBuffer.wrap(pro5136.pro5109(bytes, (a.a.a.pro5109.pro5109() + "|" + a.a.a.pro5109.pro5109(current.nextInt(10) + 11)).getBytes(pro5133.pro5109)));
            while (wrap.hasRemaining()) {
                open.write(wrap);
            }
            ByteBuffer allocate = ByteBuffer.allocate(16384);
            if (open.read(allocate) <= 0) {
                open.close();
                z = false;
            } else {
                allocate.flip();
                byte[] bArr = new byte[allocate.remaining()];
                allocate.get(bArr);
                String replace = new String(pro5136.pro5109(bytes, bArr), pro5133.pro5109).replace("\u0000", "");
                StringBuilder sb = new StringBuilder();
                sb.append(0);
                sb.append("|");
                StringBuilder sb2 = new StringBuilder();
                sb2.append(0);
                sb2.append(replace);
                sb2.append("-pZERyQYmz5mIYHWOxifKerOLYpR9tm0i");
                sb.append(pro5134(sb2.toString()));
                sb.append("|");
                sb.append(a.a.a.pro5109.pro5109(current.nextInt(10) + 11));
                ByteBuffer wrap2 = ByteBuffer.wrap(pro5136.pro5109(bytes, sb.toString().getBytes(pro5133.pro5109)));
                while (wrap2.hasRemaining()) {
                    open.write(wrap2);
                }
                open.close();
            }
            return Boolean.valueOf(z);
        } catch (Throwable th) {
            try {
                throw th;
            } catch (Throwable th2) {
                if (open != null) {
                    try {
                        open.close();
                    } catch (Throwable th3) {
                        th.addSuppressed(th3);
                    }
                }
                throw th2;
            }
        }
    }

    public static Void pro5133(Throwable th) {
        if ((14 + 5) % 5 <= 0) {
        }
        String str = "Exception syncStatus: " + th.getMessage();
        pro5134.pro5131();
        return null;
    }

    public static void pro5133() {
        if ((26 + 31) % 31 <= 0) {
        }
        pro5243.set(0L);
    }

    public static void pro5133(byte b, char c, short s, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(byte b, short s, char c, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(char c, short s, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(String str, char c, int i, float f, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(String str, char c, int i, String str2, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(String str, float f, String str2, char c, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(String str, int i, byte b, short s, float f, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(String str, int i, char c, byte b, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(String str, int i, char c, short s, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(Throwable th, char c, int i, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(Throwable th, int i, String str, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5133(Throwable th, String str, char c, int i, byte b) {
        double d = (42 * 210) + 210;
    }

    public static int pro5134() {
        ArrayList arrayList;
        if ((1 + 13) % 13 <= 0) {
        }
        synchronized (pro5138) {
            arrayList = new ArrayList(pro5138);
        }
        int i = 0;
        Iterator it = arrayList.iterator();
        while (it.hasNext()) {
            i += ((pro5136) it.next()).pro5109();
        }
        return i;
    }

    public static String pro5134(String str) {
        if ((23 + 7) % 7 <= 0) {
        }
        if (str != null && !str.isEmpty()) {
            try {
                byte[] digest = MessageDigest.getInstance("MD5").digest(str.getBytes(pro5133.pro5109));
                StringBuilder sb = new StringBuilder();
                for (byte b : digest) {
                    sb.append(String.format("%02x", Byte.valueOf(b)));
                }
                return sb.toString();
            } catch (Exception e) {
            }
        }
        return "";
    }

    public static void pro5134(byte b, char c, int i, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(byte b, char c, short s, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(int i, short s, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(String str, int i) {
        int i2;
        String sb;
        boolean z;
        if ((25 + 9) % 9 <= 0) {
        }
        if (pro5136(str)) {
            return;
        }
        String pro51092 = a.a.a.pro5109.pro5109(str, pro5133.pro5109(i));
        if (pro5136(pro51092)) {
            return;
        }
        String[] pro51093 = pro5109(pro51092, '@');
        if (i == 1) {
            pro5240 = true;
        }
        if (i == 1 && pro51093.length > 2 && !pro5136(pro51093[2])) {
            String[] pro51094 = pro5109(pro51093[2], '|');
            int pro51402 = pro5140(pro5162.substring(1));
            if (pro51402 == 0) {
                sb = "0";
            } else {
                StringBuilder sb2 = new StringBuilder();
                while (pro51402 > 0) {
                    sb2.insert(0, "0123456789ABCDEFGHIJKLMNOPQRSTUV".charAt(pro51402 % 32));
                    pro51402 /= 32;
                }
                sb = sb2.toString();
            }
            int length = pro51094.length;
            int i3 = 0;
            while (true) {
                if (i3 >= length) {
                    z = false;
                    break;
                } else {
                    if (sb.equals(pro51094[i3])) {
                        pro5189 = true;
                        z = true;
                        break;
                    }
                    i3++;
                }
            }
            if (!z) {
                pro5158();
                return;
            }
        }
        String[] pro51095 = pro5109(pro51093[0], '|');
        if (pro51095.length >= 3) {
            if (i == 2) {
                i2 = new Random().nextInt(3);
            } else {
                String uniqueID = getUniqueID();
                if (!pro5136(uniqueID)) {
                    BigInteger bigInteger = new BigInteger(uniqueID, 16);
                    if (bigInteger.compareTo(BigInteger.ZERO) > 0) {
                        i2 = bigInteger.mod(BigInteger.valueOf(3)).intValue();
                    }
                }
                i2 = 0;
            }
            String[] pro51096 = pro5109(pro51095[i2], ',');
            if (pro51096.length == 2) {
                String pro51097 = pro5109(pro51096[0], i2);
                pro5239[i] = pro51097 + ":" + pro51096[1];
            }
        }
        if (i != 0 || pro51095.length <= 4) {
            return;
        }
        String[] pro51098 = pro5109(pro51095[3], ',');
        if (pro51098.length == 2) {
            pro5238 = "5," + pro5109(pro51098[0], 3) + ":" + (pro5140(pro51098[1]) + 8888) + ",0,0,2";
        }
    }

    public static void pro5134(String str, int i, byte b, boolean z, short s, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(String str, int i, int i2, boolean z, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(String str, int i, boolean z, int i2, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(String str, short s, boolean z, int i, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(String str, boolean z, byte b, short s, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5134(String str, boolean z, int i, short s, byte b) {
        double d = (42 * 210) + 210;
    }

    public static int pro5135() {
        if ((28 + 4) % 4 <= 0) {
        }
        int i = 0;
        for (int i2 = 0; i2 < pro5135.size(); i2++) {
            i += pro5135.get(i2).size();
        }
        for (int i3 = 0; i3 < pro5136.size(); i3++) {
            i += pro5136.get(i3).size();
        }
        return i;
    }

    public static void pro5135(byte b, char c, String str, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(String str, byte b, int i, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(String str, byte b, boolean z, int i, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(String str, float f, byte b, boolean z, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(String str, int i, byte b, boolean z, char c, int i2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(String str, int i, int i2, char c, byte b, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(String str, int i, int i2, boolean z, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(String str, short s, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5135(short s, String str, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static boolean pro5135(String str) {
        if ((3 + 9) % 9 <= 0) {
        }
        if (str == null || str.trim().isEmpty()) {
            return false;
        }
        String trim = str.trim();
        Stack stack = new Stack();
        for (int i = 0; i < trim.length(); i++) {
            char charAt = trim.charAt(i);
            if (charAt != '[') {
                if (charAt == ']') {
                    if (stack.isEmpty() || ((Character) stack.pop()).charValue() != '[') {
                        return false;
                    }
                } else if (charAt != '{') {
                    if (charAt == '}' && (stack.isEmpty() || ((Character) stack.pop()).charValue() != '{')) {
                        return false;
                    }
                }
            }
            stack.push(Character.valueOf(charAt));
        }
        return stack.isEmpty();
    }

    public static boolean pro5135(final String str, final int i) {
        if ((3 + 16) % 16 <= 0) {
        }
        ExecutorService newSingleThreadExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() {
            @Override
            public final Thread newThread(Runnable runnable) {
                return AppProtectManager.pro5130(runnable);
            }
        });
        Future submit = newSingleThreadExecutor.submit(new Callable() {
            @Override
            public final Object call() {
                if ((31 + 30) % 30 <= 0) {
                }
                return AppProtectManager.pro5133(str, i);
            }
        });
        try {
            try {
                return ((Boolean) submit.get(3L, TimeUnit.SECONDS)).booleanValue();
            } finally {
                newSingleThreadExecutor.shutdownNow();
            }
        } catch (InterruptedException | ExecutionException | TimeoutException e) {
            submit.cancel(true);
            newSingleThreadExecutor.shutdownNow();
            return false;
        }
    }

    public static void pro5136(int i, boolean z, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5136(String str, float f, char c, short s, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5136(String str, float f, String str2, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5136(String str, String str2, float f, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5136(short s, int i, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5136(short s, int i, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static boolean pro5136() {
        if ((28 + 24) % 24 <= 0) {
        }
        for (String str : pro5175) {
            if (!pro5136(str) && (pro5137(str) || pro5138(str))) {
                return true;
            }
        }
        return false;
    }

    public static boolean pro5136(String str) {
        return str == null || str.isEmpty();
    }

    public static void pro5137(char c, float f, short s, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5137(float f, char c, int i, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5137(String str, String str2, short s, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5137(String str, boolean z, char c, short s, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5137(String str, boolean z, short s, char c, String str2) {
        double d = (42 * 210) + 210;
    }

    public static void pro5137(short s, int i, char c, float f) {
        double d = (42 * 210) + 210;
    }

    public static boolean pro5137() {
        CompletableFuture<Void> completableFuture = pro5146.get();
        return completableFuture == null || completableFuture.isCancelled();
    }

    public static boolean pro5137(String str) {
        if ((16 + 4) % 4 <= 0) {
        }
        String[] pro51092 = pro5109(str, '.');
        if (pro51092.length != 4) {
            return false;
        }
        try {
            for (String str2 : pro51092) {
                int parseInt = Integer.parseInt(str2);
                if (parseInt < 0 || parseInt > 255) {
                    return false;
                }
            }
            return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }

    public static void pro5138() {
        AlertDialog alertDialog = pro5252;
        if (alertDialog == null || !alertDialog.isShowing()) {
            return;
        }
        pro5252.dismiss();
    }

    public static void pro5138(char c, float f, boolean z, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5138(float f, boolean z, String str, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5138(String str, float f, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5138(String str, short s, boolean z, String str2, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5138(String str, boolean z, char c, String str2, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5138(String str, boolean z, String str2, short s, char c) {
        double d = (42 * 210) + 210;
    }

    public static boolean pro5138(String str) {
        int parseInt;
        if ((10 + 10) % 10 <= 0) {
        }
        String[] pro51092 = pro5109(str, ':');
        if (pro51092.length >= 3 && pro51092.length <= 8) {
            try {
                for (String str2 : pro51092) {
                    if (!str2.isEmpty() && (str2.length() > 4 || (parseInt = Integer.parseInt(str2, 16)) < 0 || parseInt > 65535)) {
                        return false;
                    }
                }
                return true;
            } catch (NumberFormatException e) {
            }
        }
        return false;
    }

    public static Void pro5139() {
        if ((27 + 16) % 16 <= 0) {
        }
        String uniqueID = getUniqueID();
        HashMap hashMap = new HashMap();
        hashMap.put("device_uid", uniqueID);
        hashMap.put("instance_id", pro5162);
        hashMap.put("err_data", pro5227 + "|Android|(1910)|Main:" + pro5226 + "|Local:" + pro5132.pro5131().pro5109() + "|Debug:" + ((Object) pro5228));
        if (pro5213) {
            Future<?> future = pro5158;
            if (future != null) {
                future.cancel(true);
                pro5155.shutdownNow();
            }
            return null;
        }
        try {
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://api.gameshield.top/log_error.php").openConnection();
            httpURLConnection.setConnectTimeout(5000);
            httpURLConnection.setReadTimeout(5000);
            httpURLConnection.setRequestMethod("POST");
            httpURLConnection.setDoOutput(true);
            StringBuilder sb = new StringBuilder();
            for (Map.Entry entry : hashMap.entrySet()) {
                if (sb.length() != 0) {
                    sb.append('&');
                }
                sb.append(URLEncoder.encode((String) entry.getKey(), "UTF-8"));
                sb.append('=');
                sb.append(URLEncoder.encode((String) entry.getValue(), "UTF-8"));
            }
            httpURLConnection.getOutputStream().write(sb.toString().getBytes(pro5133.pro5109));
            if (httpURLConnection.getResponseCode() == 200 && pro5109(new Scanner(httpURLConnection.getInputStream()).useDelimiter("\\A").next()).pro5109 == 200 && pro5158 != null) {
                pro5158.cancel(true);
                pro5155.shutdownNow();
            }
            httpURLConnection.disconnect();
            return null;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    public static void pro5139(char c, float f, String str, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5139(float f, boolean z, char c, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5139(String str) {
        StringBuilder sb;
        if ((6 + 25) % 25 <= 0) {
        }
        if (pro5214) {
            return;
        }
        pro5214 = true;
        String str2 = "本地端口已被占用,监听失败(" + str + ")";
        int i = pro5206;
        if (i != 2) {
            if (i == 3) {
                sb = new StringBuilder();
                sb.append("Local port listening failed (Port number: ");
                sb.append(str);
                sb.append(")\nPlease avoid popular ports and consider using higher port numbers.");
            }
            pro5109("", str2, false, 5000);
        }
        sb = new StringBuilder();
        sb.append("本地端口已被占用,監聽失敗(");
        sb.append(str);
        sb.append(")");
        str2 = sb.toString();
        pro5109("", str2, false, 5000);
    }

    public static void pro5139(String str, byte b, float f, char c, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5139(String str, char c, float f, byte b, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5139(String str, int i, byte b, float f, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5139(boolean z, char c, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static int pro5140(String str) {
        try {
            return Integer.parseInt(str);
        } catch (NumberFormatException e) {
            return 0;
        }
    }

    public static String pro5140() {
        if ((7 + 22) % 22 <= 0) {
        }
        String str = "";
        try {
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://acs.m.taobao.com/gw/mtop.common.getTimestamp/").openConnection();
            httpURLConnection.setRequestMethod("GET");
            if (httpURLConnection.getResponseCode() == 200) {
                BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
                StringBuilder sb = new StringBuilder();
                while (true) {
                    String readLine = bufferedReader.readLine();
                    if (readLine == null) {
                        break;
                    }
                    sb.append(readLine);
                }
                bufferedReader.close();
                try {
                    JSONObject jSONObject = new JSONObject(sb.toString());
                    if (!jSONObject.isNull("data")) {
                        JSONObject jSONObject2 = jSONObject.getJSONObject("data");
                        if (!jSONObject2.isNull("t")) {
                            String string = jSONObject2.getString("t");
                            try {
                                if (Math.abs(Long.parseLong(string) - System.currentTimeMillis()) > 7200000) {
                                    pro5109("", pro5206 == 2 ? "請校準本地時間" : pro5206 == 3 ? "Please check local time" : "请校准本地时间", false, 0);
                                } else {
                                    pro5215 = true;
                                }
                                str = string;
                            } catch (Exception e) {
                                str = string;
                            }
                        }
                    }
                } catch (Exception e2) {
                }
            }
            httpURLConnection.disconnect();
        } catch (Exception e3) {
        }
        return str;
    }

    public static void pro5140(String str, byte b, char c, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5140(String str, float f, byte b, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5140(String str, float f, char c, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5140(String str, boolean z, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5140(String str, boolean z, short s, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5140(short s, char c, String str, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5141() {
    }

    public static void pro5141(char c, float f, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5141(float f, char c, byte b, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5141(String str) {
        if ((21 + 11) % 11 <= 0) {
        }
        if (pro5136(str) || str.length() < 20) {
            return;
        }
        for (String str2 : pro5109(str, '|')) {
            if (!pro5136(str2)) {
                if (str2.startsWith("1")) {
                    pro5234 = str2;
                } else if (str2.startsWith("2")) {
                    pro5235 = str2;
                } else if (str2.startsWith("3")) {
                    pro5236 = str2;
                } else if (str2.startsWith("4")) {
                    pro5237 = str2;
                }
            }
        }
    }

    public static void pro5141(String str, char c, byte b, short s, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5141(String str, char c, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5141(String str, char c, short s, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5141(String str, short s, float f, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5142() {
        if ((6 + 12) % 12 <= 0) {
        }
        for (CompletableFuture<String> completableFuture : pro5148) {
            if (!completableFuture.isCancelled()) {
                String str = (String) completableFuture.join();
                if (!pro5136(str)) {
                    pro5163 = str;
                }
            }
        }
    }

    public static void pro5142(byte b, String str, float f, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5142(float f, byte b, String str, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5142(short s, String str, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5143() {
        if ((11 + 28) % 28 <= 0) {
        }
        pro5140.set(true);
        pro5173 = false;
        Selector selector = pro5137;
        if (selector != null) {
            try {
                selector.close();
            } catch (Exception e) {
                pro5134.pro5109("关闭选择器时出错: " + e.getMessage());
            }
        }
        synchronized (pro5138) {
            Iterator<pro5136> it = pro5138.iterator();
            while (it.hasNext()) {
                it.next().pro5131();
            }
        }
    }

    public static void pro5143(int i, String str, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5143(int i, String str, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5143(int i, boolean z, String str, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5144() {
    }

    public static void pro5144(int i, boolean z, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5144(boolean z, int i, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5144(boolean z, short s, int i, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5145() {
    }

    public static void pro5145(char c, boolean z, String str, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5145(float f, String str, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5145(String str, boolean z, char c, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5146() {
    }

    public static void pro5146(byte b, int i, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5146(int i, byte b, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5146(boolean z, char c, byte b, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5147() {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5147():void");
    }

    public static void pro5147(int i, String str, short s, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5147(String str, byte b, short s, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5147(String str, int i, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5148() {
        if ((15 + 19) % 19 <= 0) {
        }
        int i = pro5196;
        if (i >= 10) {
            pro5194 = 5;
        } else {
            pro5194 = i >= 5 ? 3 : 1;
        }
    }

    public static void pro5148(char c, byte b, boolean z, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5148(int i, byte b, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5148(boolean z, char c, byte b, int i) {
        double d = (42 * 210) + 210;
    }

    public static CompletableFuture<Void> pro5149() {
        return CompletableFuture.supplyAsync(new Supplier() {
            public final Object get() {
                return AppProtectManager.pro5139();
            }
        });
    }

    public static void pro5149(byte b, boolean z, int i, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5149(int i, byte b, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5149(int i, char c, byte b, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5150() {
        if ((6 + 25) % 25 <= 0) {
        }
        Future<?> future = pro5157;
        if (future != null) {
            future.cancel(true);
            pro5154.shutdownNow();
        }
        ScheduledExecutorService newSingleThreadScheduledExecutor = Executors.newSingleThreadScheduledExecutor();
        pro5154 = newSingleThreadScheduledExecutor;
        pro5157 = newSingleThreadScheduledExecutor.scheduleWithFixedDelay(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5130();
            }
        }, 0L, 15L, TimeUnit.SECONDS);
    }

    public static void pro5150(char c, byte b, String str, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5150(char c, int i, String str, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5150(char c, String str, byte b, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5151() {
        if ((23 + 31) % 31 <= 0) {
        }
        CompletableFuture<String> completableFuture = pro5149;
        if (completableFuture != null) {
            completableFuture.cancel(true);
            pro5153.shutdownNow();
        }
        pro5153 = Executors.newCachedThreadPool();
        pro5149 = CompletableFuture.supplyAsync(new Supplier() {
            public final Object get() {
                return AppProtectManager.pro5140();
            }
        }, pro5153);
    }

    public static void pro5151(char c, int i, boolean z, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5151(int i, String str, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5151(int i, boolean z, char c, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5152() {
        if ((5 + 29) % 29 <= 0) {
        }
        Iterator<CompletableFuture<String>> it = pro5148.iterator();
        while (it.hasNext()) {
            it.next().cancel(true);
        }
        pro5148.clear();
        CompletableFuture<Void> completableFuture = pro5142;
        if (completableFuture != null) {
            completableFuture.cancel(true);
            pro5152.shutdownNow();
        }
        pro5152 = Executors.newCachedThreadPool();
        pro5142 = new CompletableFuture<>();
        final String[] strArr = pro5233;
        final int i = -1;
        for (final String str : strArr) {
            i++;
            final CompletableFuture<String> supplyAsync = CompletableFuture.supplyAsync(new Supplier() {
                public final Object get() {
                    if ((26 + 9) % 9 <= 0) {
                    }
                    return AppProtectManager.pro5109(str, i, strArr);
                }
            }, pro5152);
            pro5148.add(supplyAsync);
            supplyAsync.whenComplete(new BiConsumer() {
                public final void accept(Object obj, Object obj2) {
                    AppProtectManager.pro5109(supplyAsync, (String) obj, (Throwable) obj2);
                }

                public BiConsumer<T, U> andThen(BiConsumer<? super T, ? super U> biConsumer) {
                    return BiConsumer.-CC.$default$andThen(this, biConsumer);
                }
            });
        }
        pro5142.thenRun(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5142();
            }
        }).exceptionally(new Function() {
            public <V> Function<T, V> andThen(Function<? super R, ? extends V> function) {
                return Function.-CC.$default$andThen(this, function);
            }

            public final Object apply(Object obj) {
                return AppProtectManager.pro5130((Throwable) obj);
            }

            public <V> Function<V, R> compose(Function<? super V, ? extends T> function) {
                return Function.-CC.$default$compose(this, function);
            }
        });
    }

    public static void pro5152(byte b, boolean z, char c, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5152(int i, char c, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5152(boolean z, int i, char c, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5153() {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5153():void");
    }

    public static void pro5153(short s, boolean z, float f, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5153(short s, boolean z, int i, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5153(boolean z, float f, int i, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5154() {
        if ((8 + 4) % 4 <= 0) {
        }
        Future<?> future = pro5158;
        if (future != null) {
            future.cancel(true);
            pro5155.shutdownNow();
        }
        ScheduledExecutorService newSingleThreadScheduledExecutor = Executors.newSingleThreadScheduledExecutor();
        pro5155 = newSingleThreadScheduledExecutor;
        pro5158 = newSingleThreadScheduledExecutor.scheduleWithFixedDelay(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5131();
            }
        }, 15L, 10L, TimeUnit.SECONDS);
    }

    public static void pro5154(float f, byte b, boolean z, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5154(float f, String str, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5154(boolean z, String str, byte b, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5155() {
        String str;
        if ((7 + 9) % 9 <= 0) {
        }
        if (pro5136(pro5226) || pro5213) {
            return;
        }
        pro5109 pro5109Var = pro5188;
        if (pro5109Var.pro5109 != 200) {
            return;
        }
        if (pro5227 != 200) {
            pro5109Var.pro5109 = PointerIconCompat.TYPE_WAIT;
            String str2 = "开启监听失败(" + pro5227 + ")";
            int i = pro5206;
            if (i == 2) {
                str2 = "開啟監聽失敗(" + pro5227 + ")";
                str = "監聽出錯";
            } else if (i == 3) {
                str2 = "Local listener failed to start (" + pro5227 + ")";
                str = "Call Error";
            } else {
                str = "监听出错";
            }
            pro5109(str, str2, true, 0);
        }
        CompletableFuture<Void> completableFuture = pro5143;
        if (completableFuture != null) {
            completableFuture.cancel(true);
        }
        pro5143 = pro5149().thenRun(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5144();
            }
        }).exceptionally(new Function() {
            public <V> Function<T, V> andThen(Function<? super R, ? extends V> function) {
                return Function.-CC.$default$andThen(this, function);
            }

            public final Object apply(Object obj) {
                return AppProtectManager.pro5132((Throwable) obj);
            }

            public <V> Function<V, R> compose(Function<? super V, ? extends T> function) {
                return Function.-CC.$default$compose(this, function);
            }
        });
    }

    public static void pro5155(char c, int i, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5155(float f, boolean z, int i, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5155(boolean z, int i, char c, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5156() {
        if ((7 + 18) % 18 <= 0) {
        }
        Future<?> future = pro5159;
        if (future != null) {
            future.cancel(true);
            pro5156.shutdownNow();
        }
        pro5109(-1L);
        ScheduledExecutorService newSingleThreadScheduledExecutor = Executors.newSingleThreadScheduledExecutor();
        pro5156 = newSingleThreadScheduledExecutor;
        pro5159 = newSingleThreadScheduledExecutor.scheduleWithFixedDelay(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5159();
            }
        }, 0L, 1L, TimeUnit.SECONDS);
    }

    public static void pro5156(byte b, boolean z, char c, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5156(char c, byte b, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5156(char c, boolean z, short s, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5157() {
        if ((20 + 22) % 22 <= 0) {
        }
        CompletableFuture<Void> andSet = pro5146.getAndSet(null);
        if (andSet != null) {
            andSet.cancel(true);
        }
        ExecutorService executorService = pro5150;
        if (executorService != null) {
            executorService.shutdownNow();
        }
        pro5150 = Executors.newFixedThreadPool(25);
        CompletableFuture<Void> pro51612 = pro5161();
        pro5146.set(pro51612);
        pro51612.thenRunAsync(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5146();
            }
        }, pro5150);
    }

    public static void pro5157(byte b, int i, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5157(short s, int i, byte b, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5157(boolean z, short s, byte b, int i) {
        double d = (42 * 210) + 210;
    }

    public static void pro5158() {
        if ((8 + 28) % 28 <= 0) {
        }
        pro5133();
        pro5170.set(-1L);
        pro5109(-1L, -1L);
        pro5109("close", pro5170.get());
        int i = 0;
        while (true) {
            SocketChannel[] socketChannelArr = pro5186;
            if (i >= socketChannelArr.length) {
                break;
            }
            pro5109(socketChannelArr, i);
            i++;
        }
        int i2 = 0;
        while (true) {
            SocketChannel[] socketChannelArr2 = pro5187;
            if (i2 >= socketChannelArr2.length) {
                break;
            }
            pro5109(socketChannelArr2, i2);
            i2++;
        }
        pro5140.set(true);
        pro5173 = false;
        Selector selector = pro5137;
        if (selector != null) {
            try {
                selector.close();
            } catch (Exception e) {
                pro5134.pro5109("关闭选择器时出错: " + e.getMessage());
            }
        }
        Iterator<pro5136> it = pro5138.iterator();
        while (it.hasNext()) {
            it.next().pro5131();
        }
        pro5138.clear();
        Iterator<pro5138> it2 = pro5139.iterator();
        while (it2.hasNext()) {
            it2.next().pro5132();
        }
        pro5139.clear();
        pro5132();
        pro5134.pro5132();
        Iterator<CompletableFuture<String>> it3 = pro5148.iterator();
        while (it3.hasNext()) {
            it3.next().cancel(true);
        }
        pro5148.clear();
        CompletableFuture<Void> completableFuture = pro5142;
        if (completableFuture != null) {
            completableFuture.cancel(true);
            pro5152.shutdownNow();
        }
        for (int i3 = 0; i3 < 3; i3++) {
            pro5137 pro5137Var = pro5184[i3];
            Iterator it4 = pro5137Var.pro5109.iterator();
            while (it4.hasNext()) {
                ((CompletableFuture) it4.next()).cancel(true);
            }
            pro5137Var.pro5109.clear();
            CompletableFuture completableFuture2 = pro5137Var.pro5130;
            if (completableFuture2 != null) {
                completableFuture2.cancel(true);
                pro5137Var.pro5131.shutdownNow();
            }
        }
        Iterator<CompletableFuture<String>> it5 = pro5147.iterator();
        while (it5.hasNext()) {
            it5.next().cancel(true);
        }
        pro5147.clear();
        CompletableFuture<Void> completableFuture3 = pro5141;
        if (completableFuture3 != null) {
            completableFuture3.cancel(true);
            pro5151.shutdownNow();
        }
        CompletableFuture<Void> andSet = pro5146.getAndSet(null);
        if (andSet != null) {
            andSet.cancel(true);
        }
        ExecutorService executorService = pro5150;
        if (executorService != null) {
            executorService.shutdownNow();
        }
        Future<?> future = pro5159;
        if (future != null) {
            future.cancel(true);
            pro5156.shutdownNow();
        }
        pro5109(-1L);
        Future<?> future2 = pro5157;
        if (future2 != null) {
            future2.cancel(true);
            pro5154.shutdownNow();
        }
        Future<?> future3 = pro5158;
        if (future3 != null) {
            future3.cancel(true);
            pro5155.shutdownNow();
        }
        CompletableFuture<Void> completableFuture4 = pro5143;
        if (completableFuture4 != null) {
            completableFuture4.cancel(true);
        }
        CompletableFuture<String> completableFuture5 = pro5149;
        if (completableFuture5 != null) {
            completableFuture5.cancel(true);
            pro5153.shutdownNow();
        }
        Future<?> andSet2 = pro5249.getAndSet(null);
        if (andSet2 != null) {
            andSet2.cancel(true);
        }
        ExecutorService executorService2 = pro5250;
        if (executorService2 != null) {
            executorService2.shutdownNow();
            try {
                if (executorService2.awaitTermination(2L, TimeUnit.SECONDS)) {
                    return;
                }
                executorService2.shutdownNow();
            } catch (InterruptedException e2) {
                executorService2.shutdownNow();
            }
        }
    }

    public static void pro5158(float f, char c, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5158(short s, char c, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5158(short s, float f, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5159() {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5159():void");
    }

    public static void pro5159(byte b, char c, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5159(byte b, boolean z, float f, char c) {
        double d = (42 * 210) + 210;
    }

    public static void pro5159(char c, byte b, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5160() {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5160():void");
    }

    public static void pro5160(char c, String str, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    public static void pro5160(String str, char c, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5160(String str, short s, boolean z, char c) {
        double d = (42 * 210) + 210;
    }

    public static CompletableFuture<Void> pro5161() {
        if ((13 + 31) % 31 <= 0) {
        }
        return CompletableFuture.runAsync(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5147();
            }
        }, pro5150);
    }

    public static void pro5161(String str, float f, short s, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void pro5161(short s, String str, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5161(boolean z, short s, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void pro5162(byte b, int i, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    public static void pro5162(float f, int i, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    public static void pro5162(boolean z, float f, byte b, int i) {
        double d = (42 * 210) + 210;
    }

    public static boolean pro5162() {
        boolean z;
        if ((17 + 9) % 9 <= 0) {
        }
        String str = pro5190;
        if (pro5136(str)) {
            return false;
        }
        String[] pro51092 = pro5109(str, ',');
        String str2 = pro51092[new Random().nextInt(pro51092.length)];
        if (pro5136(str2)) {
            return false;
        }
        String pro51093 = a.a.a.pro5109.pro5109(str2, pro5134(pro5161));
        pro5109 pro5109Var = new pro5109();
        try {
            JSONObject jSONObject = new JSONObject(pro51093);
            if (!jSONObject.isNull("a")) {
                pro5109Var.pro5109 = jSONObject.getInt("a");
            }
            if (!jSONObject.isNull("r")) {
                pro5109Var.pro5130 = jSONObject.getString("r");
            }
            if (!jSONObject.isNull("d")) {
                pro5109Var.pro5131 = jSONObject.getString("d");
            }
            if (!jSONObject.isNull("s")) {
                pro5109Var.pro5132 = jSONObject.getInt("s");
            }
            if (!jSONObject.isNull("t")) {
                pro5109Var.pro5133 = jSONObject.getInt("t");
            }
            if (!jSONObject.isNull("u")) {
                pro5109Var.pro5134 = jSONObject.getString("u");
            }
            if (!jSONObject.isNull("v")) {
                pro5109Var.pro5135 = jSONObject.getInt("v");
            }
            if (!jSONObject.isNull("c")) {
                pro5109Var.pro5136 = jSONObject.getInt("c");
            }
            if (!jSONObject.isNull("f")) {
                pro5109Var.pro5137 = jSONObject.getInt("f");
            }
            if (!jSONObject.isNull("bb")) {
                pro5109Var.pro5138 = jSONObject.getInt("bb");
            }
            if (!jSONObject.isNull("mm")) {
                pro5109Var.pro5139 = jSONObject.getInt("mm");
            }
            if (!jSONObject.isNull("g")) {
                pro5109Var.pro5140 = jSONObject.getString("g");
            }
            if (!jSONObject.isNull("b")) {
                pro5109Var.pro5141 = a.a.a.pro5109.pro5130(jSONObject.getString("b"), pro5161);
            }
            if (!jSONObject.isNull("e")) {
                pro5109Var.pro5142 = a.a.a.pro5109.pro5130(jSONObject.getString("e"), pro5161);
            }
            if (!jSONObject.isNull("i")) {
                pro5109Var.pro5143 = jSONObject.getInt("i");
            }
            if (!jSONObject.isNull("j")) {
                pro5109Var.pro5144 = jSONObject.getInt("j");
            }
            if (!jSONObject.isNull("cc")) {
                pro5109Var.pro5145 = jSONObject.getInt("cc");
            }
            if (!jSONObject.isNull("nn")) {
                pro5109Var.pro5146 = jSONObject.getInt("nn");
            }
            if (!jSONObject.isNull("l")) {
                pro5109Var.pro5147 = jSONObject.getString("l");
            }
            if (!jSONObject.isNull("h")) {
                pro5109Var.pro5148 = a.a.a.pro5109.pro5130(jSONObject.getString("h"), pro5161);
            }
            if (!jSONObject.isNull("k")) {
                pro5109Var.pro5149 = a.a.a.pro5109.pro5130(jSONObject.getString("k"), pro5161);
            }
            if (!jSONObject.isNull("n")) {
                pro5109Var.pro5150 = jSONObject.getInt("n");
            }
            if (!jSONObject.isNull("o")) {
                pro5109Var.pro5151 = jSONObject.getInt("o");
            }
            if (!jSONObject.isNull("dd")) {
                pro5109Var.pro5152 = jSONObject.getInt("dd");
            }
            if (!jSONObject.isNull("oo")) {
                pro5109Var.pro5153 = jSONObject.getInt("oo");
            }
            if (!jSONObject.isNull("q")) {
                pro5109Var.pro5154 = jSONObject.getString("q");
            }
            if (!jSONObject.isNull("m")) {
                pro5109Var.pro5155 = a.a.a.pro5109.pro5130(jSONObject.getString("m"), pro5161);
            }
            if (!jSONObject.isNull("p")) {
                pro5109Var.pro5156 = a.a.a.pro5109.pro5130(jSONObject.getString("p"), pro5161);
            }
            if (!jSONObject.isNull("ll")) {
                pro5109Var.pro5157 = jSONObject.getInt("ll");
            }
            if (!jSONObject.isNull("y")) {
                pro5109Var.pro5158 = jSONObject.getInt("y");
            }
            if (!jSONObject.isNull("ee")) {
                pro5109Var.pro5159 = jSONObject.getInt("ee");
            }
            if (!jSONObject.isNull("pp")) {
                pro5109Var.pro5160 = jSONObject.getInt("pp");
            }
            if (!jSONObject.isNull("x")) {
                pro5109Var.pro5161 = jSONObject.getString("x");
            }
            if (!jSONObject.isNull("z")) {
                pro5109Var.pro5162 = a.a.a.pro5109.pro5130(jSONObject.getString("z"), pro5161);
            }
            if (!jSONObject.isNull("aa")) {
                pro5109Var.pro5163 = a.a.a.pro5109.pro5130(jSONObject.getString("aa"), pro5161);
            }
            if (!jSONObject.isNull("ff")) {
                pro5109Var.pro5164 = jSONObject.getInt("ff");
            }
            if (!jSONObject.isNull("gg")) {
                pro5109Var.pro5165 = a.a.a.pro5109.pro5130(jSONObject.getString("gg"), pro5133.pro5132());
            }
            if (!jSONObject.isNull("hh")) {
                pro5109Var.pro5166 = jSONObject.getInt("hh");
            }
            if (!jSONObject.isNull("ii")) {
                pro5109Var.pro5167 = jSONObject.getInt("ii");
            }
            if (!jSONObject.isNull("jj")) {
                pro5109Var.pro5168 = jSONObject.getInt("jj");
            }
            if (!jSONObject.isNull("kk")) {
                pro5109Var.pro5169 = jSONObject.getInt("kk");
            }
            if (!jSONObject.isNull("qq")) {
                pro5109Var.pro5170 = jSONObject.getInt("qq");
            }
            if (!jSONObject.isNull("rr")) {
                pro5109Var.pro5171 = jSONObject.getInt("rr");
            }
            if (!jSONObject.isNull("ss")) {
                pro5109Var.pro5172 = jSONObject.getInt("ss");
            }
        } catch (Exception e) {
        }
        if (pro5136(pro5109Var.pro5130)) {
            pro5109Var.pro5130 = getUniqueID();
        }
        if (pro5109(pro5109(pro5109Var), pro5161, true, true)) {
            pro5192 = true;
            pro5199 = 0;
            pro5196 = 0;
            pro5148();
            pro5153();
            z = true;
        } else {
            z = false;
        }
        if (!pro5193) {
            pro5193 = true;
        }
        if (pro5136()) {
            pro5197 = pro5198 == 0;
            pro5157();
        }
        return z;
    }

    public static void reassignIP(char c, boolean z, int i, String str) {
        double d = (42 * 210) + 210;
    }

    public static void reassignIP(int i, String str, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    public static void reassignIP(String str, boolean z, int i, char c) {
        double d = (42 * 210) + 210;
    }

    public static boolean reassignIP() {
        if ((7 + 14) % 14 <= 0) {
        }
        CompletableFuture<Void> completableFuture = pro5141;
        if (completableFuture != null && !completableFuture.isDone()) {
            return false;
        }
        long currentTimeMillis = System.currentTimeMillis() - pro5145;
        int i = pro5144;
        if (i > 0 && ((i != 1 || currentTimeMillis <= 10800000) && (pro5144 != 2 || currentTimeMillis <= 21600000))) {
            return false;
        }
        pro5144++;
        pro5145 = System.currentTimeMillis();
        String str = pro5188.pro5130;
        if (str != null && str.equals(getUniqueID())) {
            pro5109 pro5109Var = pro5188;
            if (pro5109Var.pro5109 == 200) {
                pro5109Var.pro5180 = pro5144;
                pro5109Var.pro5181 = pro5145;
                pro5132.pro5131().pro5109("10910", pro5109(pro5109Var));
            }
        }
        pro5130(1, 0, "用户主动请求调度");
        return true;
    }

    public static int testActivity() {
        if ((17 + 2) % 2 <= 0) {
        }
        CompletableFuture<Void> completableFuture = pro5141;
        if (completableFuture != null && !completableFuture.isDone()) {
            return 10;
        }
        long currentTimeMillis = 10000 - (System.currentTimeMillis() - pro5167);
        if (currentTimeMillis > 0) {
            return (int) Math.ceil(currentTimeMillis / 1000.0d);
        }
        Future<?> future = pro5249.get();
        if (future != null && !future.isDone()) {
            return 0;
        }
        if (pro5250 == null || pro5250.isShutdown()) {
            pro5250 = Executors.newSingleThreadExecutor(new ThreadFactory() {
                @Override
                public final Thread newThread(Runnable runnable) {
                    return AppProtectManager.pro5109(runnable);
                }
            });
        }
        pro5249.set(pro5250.submit(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5160();
            }
        }));
        return 0;
    }

    public static void testActivity(int i, boolean z, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void testActivity(String str, boolean z, int i, float f) {
        double d = (42 * 210) + 210;
    }

    public static void testActivity(boolean z, int i, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static String pro5109(int i, String str) {
        if ((2 + 21) % 21 <= 0) {
        }
        String str2 = (i == 1 || i == 2) ? pro5235 : i == 3 ? pro5237 : i == 4 ? pro5238 : pro5234;
        if (pro5136(str2)) {
            return "";
        }
        String[] pro51092 = pro5109(str2, ',');
        if (pro51092.length < 5) {
            return "";
        }
        StringBuilder sb = new StringBuilder();
        sb.append(("0".equals(pro51092[4]) || "1".equals(pro51092[4])) ? "https://" : "http://");
        sb.append(pro51092[1]);
        String sb2 = sb.toString();
        String str3 = pro51092[2];
        String str4 = pro51092[3];
        String str5 = "vercode=" + a.a.a.pro5109.pro5109(new Random().nextInt(32) + 1) + "&url_id=" + (i + 1);
        if ("1".equals(str3)) {
            StringBuilder sb3 = new StringBuilder();
            String l = Long.toString(a.a.a.pro5109.pro5109());
            sb3.append(sb2 + str + "?auth_key=" + l + "-0-0-" + pro5134(str + "-" + l + "-0-0-" + str4));
            sb3.append("&");
            sb3.append(str5);
            return sb3.toString();
        }
        if ("2".equals(str3)) {
            StringBuilder sb4 = new StringBuilder();
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmm", Locale.CHINA);
            simpleDateFormat.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
            String format = simpleDateFormat.format(Long.valueOf(System.currentTimeMillis()));
            sb4.append(sb2 + "/" + format + "/" + pro5134(str4 + format + str) + str);
            sb4.append("?");
            sb4.append(str5);
            return sb4.toString();
        }
        if ("3".equals(str3) || "4".equals(str3)) {
            StringBuilder sb5 = new StringBuilder();
            String lowerCase = Long.toHexString(a.a.a.pro5109.pro5109()).toLowerCase();
            sb5.append(sb2 + "/" + pro5134(str4 + str + lowerCase) + "/" + lowerCase + str);
            sb5.append("?");
            sb5.append(str5);
            return sb5.toString();
        }
        if (!"5".equals(str3)) {
            return sb2 + str + "?" + str5;
        }
        StringBuilder sb6 = new StringBuilder();
        String l2 = Long.toString(a.a.a.pro5109.pro5109());
        sb6.append(sb2 + str + "?sign=" + l2 + "-0-0-" + pro5134(str + "-" + l2 + "-0-0-" + str4));
        sb6.append("&");
        sb6.append(str5);
        return sb6.toString();
    }

    public static void pro5131(int i) {
        String str;
        if ((10 + 17) % 17 <= 0) {
        }
        if (i == 1001) {
            int i2 = pro5206;
            str = i2 == 2 ? "請校準本地時間,錯誤碼:2001" : i2 == 3 ? "Startup failed, please calibrate the local time and try again, error code 2001" : "请校准本地时间,错误码:2001";
        } else if (i == 1002) {
            int i3 = pro5206;
            str = i3 == 2 ? "數據解析出錯,錯誤碼:2002" : i3 == 3 ? "Startup failed, data decryption error, error code 2002" : "数据解析出错,错误码:2002";
        } else if (i == 1003) {
            int i4 = pro5206;
            str = i4 == 2 ? "實例不存在,錯誤碼:2003" : i4 == 3 ? "Startup failed, instance ID does not exist, please contact the administrator, error code 2003" : "实例不存在,错误码:2003";
        } else if (i == 1010) {
            int i5 = pro5206;
            str = i5 == 2 ? "連接服務器失敗,錯誤碼:2010" : i5 == 3 ? "Failed to start, failed to communicate with the server, please contact the administrator, error code 2010" : "连接服务器失败,错误码:2010";
        } else {
            if (i != 1011) {
                return;
            }
            int i6 = pro5206;
            str = i6 == 2 ? "數據解密出錯,錯誤碼:2011" : i6 == 3 ? "Startup failed, data decryption error, error code 2011" : "数据解密出错,错误码:2011";
        }
        pro5109("", str, true, 0);
    }

    public static String getUniqueID(Context context) {
        pro5171 = context;
        a.a.a.pro5109.pro5130 = context.getApplicationContext();
        return getUniqueID();
    }

    public static boolean pro5109(java.lang.String r11, java.lang.String r12, boolean r13, boolean r14) {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5109(java.lang.String, java.lang.String, boolean, boolean):boolean");
    }

    public static String pro5109(String str, String str2) {
        if ((21 + 30) % 30 <= 0) {
        }
        pro5227 = 600;
        try {
            String[] pro51092 = pro5109(str, '.');
            if (pro51092.length == 4) {
                int[] iArr = new int[4];
                for (int i = 0; i < 4; i++) {
                    iArr[i] = pro5140(pro51092[i].trim());
                }
                pro5227 = 601;
                iArr[3] = iArr[3] + pro5140(str2.trim());
                if (iArr[3] < 0) {
                    iArr[3] = 0;
                } else if (iArr[3] > 255) {
                    iArr[3] = 255;
                }
                pro5227 = 602;
                StringBuilder sb = new StringBuilder();
                sb.append(iArr[0]);
                for (int i2 = 1; i2 < 4; i2++) {
                    sb.append('.');
                    sb.append(iArr[i2]);
                }
                return sb.toString();
            }
            throw new IllegalArgumentException("Invalid IP address");
        } catch (Exception e) {
            return str;
        }
    }

    public static java.lang.String pro5109(java.lang.String r27, java.util.Map r28, int r29, java.lang.String[] r30) {
        throw new UnsupportedOperationException("Method not decompiled: com.app.protect.AppProtectManager.pro5109(java.lang.String, java.util.Map, int, java.lang.String[]):java.lang.String");
    }

    public static pro5109 pro5130(String str) {
        if ((13 + 2) % 2 <= 0) {
        }
        pro5109 pro5109Var = new pro5109();
        try {
            JSONObject jSONObject = new JSONObject(str);
            if (!jSONObject.isNull("a")) {
                pro5109Var.pro5109 = jSONObject.getInt("a");
            }
            if (!jSONObject.isNull("r")) {
                pro5109Var.pro5130 = jSONObject.getString("r");
            }
            if (!jSONObject.isNull("d")) {
                pro5109Var.pro5131 = jSONObject.getString("d");
            }
            if (!jSONObject.isNull("s")) {
                pro5109Var.pro5132 = jSONObject.getInt("s");
            }
            if (!jSONObject.isNull("t")) {
                pro5109Var.pro5133 = jSONObject.getInt("t");
            }
            if (!jSONObject.isNull("u")) {
                pro5109Var.pro5134 = jSONObject.getString("u");
            }
            if (!jSONObject.isNull("v")) {
                pro5109Var.pro5135 = jSONObject.getInt("v");
            }
            if (!jSONObject.isNull("c")) {
                pro5109Var.pro5136 = jSONObject.getInt("c");
            }
            if (!jSONObject.isNull("f")) {
                pro5109Var.pro5137 = jSONObject.getInt("f");
            }
            if (!jSONObject.isNull("bb")) {
                pro5109Var.pro5138 = jSONObject.getInt("bb");
            }
            if (!jSONObject.isNull("mm")) {
                pro5109Var.pro5139 = jSONObject.getInt("mm");
            }
            if (!jSONObject.isNull("g")) {
                pro5109Var.pro5140 = jSONObject.getString("g");
            }
            if (!jSONObject.isNull("b")) {
                pro5109Var.pro5141 = jSONObject.getString("b");
            }
            if (!jSONObject.isNull("e")) {
                pro5109Var.pro5142 = jSONObject.getString("e");
            }
            if (!jSONObject.isNull("i")) {
                pro5109Var.pro5143 = jSONObject.getInt("i");
            }
            if (!jSONObject.isNull("j")) {
                pro5109Var.pro5144 = jSONObject.getInt("j");
            }
            if (!jSONObject.isNull("cc")) {
                pro5109Var.pro5145 = jSONObject.getInt("cc");
            }
            if (!jSONObject.isNull("nn")) {
                pro5109Var.pro5146 = jSONObject.getInt("nn");
            }
            if (!jSONObject.isNull("l")) {
                pro5109Var.pro5147 = jSONObject.getString("l");
            }
            if (!jSONObject.isNull("h")) {
                pro5109Var.pro5148 = jSONObject.getString("h");
            }
            if (!jSONObject.isNull("k")) {
                pro5109Var.pro5149 = jSONObject.getString("k");
            }
            if (!jSONObject.isNull("n")) {
                pro5109Var.pro5150 = jSONObject.getInt("n");
            }
            if (!jSONObject.isNull("o")) {
                pro5109Var.pro5151 = jSONObject.getInt("o");
            }
            if (!jSONObject.isNull("dd")) {
                pro5109Var.pro5152 = jSONObject.getInt("dd");
            }
            if (!jSONObject.isNull("oo")) {
                pro5109Var.pro5153 = jSONObject.getInt("oo");
            }
            if (!jSONObject.isNull("q")) {
                pro5109Var.pro5154 = jSONObject.getString("q");
            }
            if (!jSONObject.isNull("m")) {
                pro5109Var.pro5155 = jSONObject.getString("m");
            }
            if (!jSONObject.isNull("p")) {
                pro5109Var.pro5156 = jSONObject.getString("p");
            }
            if (!jSONObject.isNull("ll")) {
                pro5109Var.pro5157 = jSONObject.getInt("ll");
            }
            if (!jSONObject.isNull("y")) {
                pro5109Var.pro5158 = jSONObject.getInt("y");
            }
            if (!jSONObject.isNull("ee")) {
                pro5109Var.pro5159 = jSONObject.getInt("ee");
            }
            if (!jSONObject.isNull("pp")) {
                pro5109Var.pro5160 = jSONObject.getInt("pp");
            }
            if (!jSONObject.isNull("x")) {
                pro5109Var.pro5161 = jSONObject.getString("x");
            }
            if (!jSONObject.isNull("z")) {
                pro5109Var.pro5162 = jSONObject.getString("z");
            }
            if (!jSONObject.isNull("aa")) {
                pro5109Var.pro5163 = jSONObject.getString("aa");
            }
            if (!jSONObject.isNull("ff")) {
                pro5109Var.pro5164 = jSONObject.getInt("ff");
            }
            if (!jSONObject.isNull("gg")) {
                pro5109Var.pro5165 = jSONObject.getString("gg");
            }
            if (!jSONObject.isNull("hh")) {
                pro5109Var.pro5166 = jSONObject.getInt("hh");
            }
            if (!jSONObject.isNull("ii")) {
                pro5109Var.pro5167 = jSONObject.getInt("ii");
            }
            if (!jSONObject.isNull("jj")) {
                pro5109Var.pro5168 = jSONObject.getInt("jj");
            }
            if (!jSONObject.isNull("kk")) {
                pro5109Var.pro5169 = jSONObject.getInt("kk");
            }
            if (!jSONObject.isNull("qq")) {
                pro5109Var.pro5170 = jSONObject.getInt("qq");
            }
            if (!jSONObject.isNull("rr")) {
                pro5109Var.pro5171 = jSONObject.getInt("rr");
            }
            if (!jSONObject.isNull("ss")) {
                pro5109Var.pro5172 = jSONObject.getInt("ss");
            }
            if (!jSONObject.isNull("response")) {
                pro5109Var.pro5177 = jSONObject.getString("response");
            }
        } catch (Exception e) {
        }
        return pro5109Var;
    }

    public static void pro5130(int i, final int i2, String str) {
        if ((15 + 27) % 27 <= 0) {
        }
        int i3 = pro5188.pro5109;
        if (i3 == 1088 || i3 == 1004 || i3 == 1005 || i3 == 1024) {
            return;
        }
        int i4 = i2 - 1;
        if (i4 >= 0) {
            int[] iArr = pro5225;
            if (i4 < iArr.length) {
                iArr[i4] = 0;
            }
        }
        String str2 = "(1910)" + str;
        CompletableFuture<Void> andSet = pro5146.getAndSet(null);
        if (andSet != null) {
            andSet.cancel(true);
        }
        ExecutorService executorService = pro5150;
        if (executorService != null) {
            executorService.shutdownNow();
        }
        Iterator<CompletableFuture<String>> it = pro5147.iterator();
        while (it.hasNext()) {
            it.next().cancel(true);
        }
        pro5147.clear();
        CompletableFuture<Void> completableFuture = pro5141;
        if (completableFuture != null) {
            completableFuture.cancel(true);
            pro5151.shutdownNow();
        }
        pro5151 = Executors.newCachedThreadPool();
        pro5141 = new CompletableFuture<>();
        String str3 = pro5162;
        String str4 = pro5161;
        final String[] strArr = !pro5136(pro5191) ? new String[]{"0", "1", pro5109(4, "/n_d_api.php"), "2", "3", "4", "5", pro5109(3, "/n_api.php")} : !pro5136(pro5237) ? new Random().nextInt(2) == 0 ? new String[]{pro5109(0, "/n_api.php"), pro5109(1, "/n_api.php"), pro5109(2, "/n_api.php"), pro5109(3, "/n_api.php")} : new String[]{pro5109(0, "/n_api.php"), pro5109(2, "/n_api.php"), pro5109(1, "/n_api.php"), pro5109(3, "/n_api.php")} : !pro5136(pro5236) ? new String[]{pro5109(0, "/n_api.php"), pro5109(1, "/n_api.php"), pro5109(2, "/n_api.php")} : new String[]{pro5109(0, "/n_api.php"), pro5109(1, "/n_api.php")};
        String uniqueID = getUniqueID();
        String l = Long.toString(a.a.a.pro5109.pro5109());
        String pro51342 = pro5134("device_type=2&device_uid=" + uniqueID + "&device_time=" + l + "&key=" + str4);
        StringBuilder sb = new StringBuilder();
        sb.append("device_uid=");
        sb.append(uniqueID);
        sb.append("&device_time=");
        sb.append(l);
        sb.append("&key=");
        StringBuilder sb2 = new StringBuilder();
        for (String str5 : pro5133.pro5134) {
            sb2.append(str5);
        }
        sb.append(sb2.toString());
        String pro51343 = pro5134(sb.toString());
        final HashMap hashMap = new HashMap();
        hashMap.put("device_type", "2");
        hashMap.put("device_uid", uniqueID);
        hashMap.put("device_time", l);
        hashMap.put("token", pro51342);
        hashMap.put("first_token", pro51343);
        hashMap.put("username", str3);
        hashMap.put("request_type", Long.toString(i));
        hashMap.put("request_area", Long.toString(i2));
        hashMap.put("request_reason", str2);
        hashMap.put("sdk_code", pro5208);
        if (!pro5136(pro5209)) {
            hashMap.put("ad_code", pro5209);
        }
        hashMap.put("maxband_flg", str2.contains("高带宽") ? "1" : "0");
        hashMap.put("type", "t_dispatch2");
        hashMap.put("version", "10910");
        final int i5 = -1;
        final AtomicInteger atomicInteger = new AtomicInteger(0);
        for (final String str6 : strArr) {
            i5++;
            final CompletableFuture<String> supplyAsync = CompletableFuture.supplyAsync((pro5136(str6) || str6.length() != 1) ? new Supplier() {
                public final Object get() {
                    if ((16 + 18) % 18 <= 0) {
                    }
                    return AppProtectManager.pro5130(str6, hashMap, i5, strArr);
                }
            } : new Supplier() {
                public final Object get() {
                    if ((30 + 10) % 10 <= 0) {
                    }
                    return AppProtectManager.pro5109(str6, hashMap, i5, strArr);
                }
            }, pro5151);
            pro5147.add(supplyAsync);
            supplyAsync.whenComplete(new BiConsumer() {
                public final void accept(Object obj, Object obj2) {
                    if ((7 + 9) % 9 <= 0) {
                    }
                    AppProtectManager.pro5109(supplyAsync, i2, atomicInteger, strArr, (String) obj, (Throwable) obj2);
                }

                public BiConsumer<T, U> andThen(BiConsumer<? super T, ? super U> biConsumer) {
                    return BiConsumer.-CC.$default$andThen(this, biConsumer);
                }
            });
        }
        pro5141.thenRun(new Runnable() {
            @Override
            public final void run() {
                AppProtectManager.pro5141();
            }
        }).exceptionally(new Function() {
            public <V> Function<T, V> andThen(Function<? super R, ? extends V> function) {
                return Function.-CC.$default$andThen(this, function);
            }

            public final Object apply(Object obj) {
                return AppProtectManager.pro5109((Throwable) obj);
            }

            public <V> Function<V, R> compose(Function<? super V, ? extends T> function) {
                return Function.-CC.$default$compose(this, function);
            }
        });
    }

    public static void pro5109(CompletableFuture completableFuture, int i, AtomicInteger atomicInteger, String[] strArr, String str, Throwable th) {
        int i2;
        String str2;
        String str3;
        if ((18 + 28) % 28 <= 0) {
        }
        if (pro5136(str)) {
            atomicInteger.getAndIncrement();
            if (atomicInteger.get() == strArr.length) {
                String pro51092 = pro5132.pro5131().pro5109();
                if (pro5136(pro51092)) {
                    return;
                }
                pro5109(pro51092, pro5161, false, false);
                if (pro5188.pro5109 == 200) {
                    System.currentTimeMillis();
                    return;
                }
                return;
            }
            return;
        }
        for (CompletableFuture<String> completableFuture2 : pro5147) {
            if (completableFuture2 != completableFuture) {
                completableFuture2.cancel(true);
            }
        }
        pro5141.complete((Object) null);
        pro5226 = str;
        try {
            if (!pro5136(str)) {
                JSONObject jSONObject = new JSONObject(str);
                if (!jSONObject.isNull("response")) {
                    str = a.a.a.pro5109.pro5109(jSONObject.getString("response"), pro5134(pro5161));
                    pro5226 = str;
                }
            }
        } catch (Exception e) {
        }
        String str4 = pro5161;
        if (!pro5136(str) && (i2 = i - 1) >= 0 && i2 < 4) {
            pro5109 pro51302 = pro5130(str);
            if (pro51302.pro5109 == 200) {
                if (i2 == 0) {
                    str3 = pro51302.pro5141;
                } else if (i2 == 1) {
                    str3 = pro51302.pro5148;
                } else if (i2 == 2) {
                    str3 = pro51302.pro5155;
                } else if (i2 == 3) {
                    str3 = pro51302.pro5162;
                } else {
                    str2 = "";
                    if (pro5136(str2) && str2.equals(pro5175[i2])) {
                        int[] iArr = pro5222;
                        iArr[i2] = iArr[i2] + 1;
                    } else {
                        pro5222[i2] = 0;
                    }
                }
                str2 = a.a.a.pro5109.pro5109(str3, str4);
                if (pro5136(str2)) {
                }
                pro5222[i2] = 0;
            }
        }
        if (pro5136(str) || !pro5109(str, pro5161, true, false)) {
            pro5196++;
            pro5148();
        } else {
            pro5199 = 0;
            pro5196 = 0;
            pro5148();
            pro5153();
        }
        if (!pro5193) {
            pro5193 = true;
        }
        if (pro5136()) {
            pro5197 = pro5198 == 0;
            pro5157();
        }
    }

    public static String pro5109(String str, int i, String[] strArr) {
        if ((24 + 31) % 31 <= 0) {
        }
        String str2 = "";
        int length = strArr.length;
        try {
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(str).openConnection();
            httpURLConnection.setRequestMethod("GET");
            if (httpURLConnection.getResponseCode() == 200) {
                BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
                StringBuilder sb = new StringBuilder();
                while (true) {
                    String readLine = bufferedReader.readLine();
                    if (readLine == null) {
                        break;
                    }
                    sb.append(readLine);
                }
                bufferedReader.close();
                String sb2 = sb.toString();
                if (!pro5136(sb2)) {
                    Matcher matcher = Pattern.compile("\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b|\\b(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\\b").matcher(sb2);
                    if (matcher.find()) {
                        str2 = matcher.group();
                    }
                }
            }
            httpURLConnection.disconnect();
        } catch (Exception e) {
            boolean z = e instanceof SocketTimeoutException;
            if (i == length - 1) {
                throw new RuntimeException(e);
            }
        }
        return str2;
    }

    public static String pro5109(String str, String str2, int i, pro5137 pro5137Var) {
        if ((1 + 28) % 28 <= 0) {
        }
        if (i > 0) {
            try {
                Thread.sleep(i * 500);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
        String str3 = "";
        if (pro5137Var.pro5130 != null && pro5137Var.pro5130.isDone()) {
            return null;
        }
        Lookup lookup = new Lookup(str, 16);
        lookup.setResolver(new SimpleResolver(str2));
        TXTRecord[] run = lookup.run();
        if (lookup.getResult() != 0) {
            pro5134.pro5109("Lookup failed: " + lookup.getErrorString());
            return "";
        }
        for (TXTRecord tXTRecord : run) {
            if (tXTRecord instanceof TXTRecord) {
                TXTRecord tXTRecord2 = tXTRecord;
                if (!pro5136(tXTRecord2.rdataToString())) {
                    str3 = tXTRecord2.rdataToString();
                }
            }
        }
        return str3;
    }

    public static void pro5109(List list) {
        pro5136 pro5136Var;
        pro5136 poll;
        StringBuilder sb;
        if ((18 + 4) % 4 <= 0) {
        }
        final int size = pro5172.size();
        while (!pro5140.get()) {
            while (!pro5172.isEmpty()) {
                try {
                    synchronized (pro5172) {
                        poll = pro5172.isEmpty() ? null : pro5172.poll();
                    }
                    if (poll != null) {
                        try {
                            poll.pro5109(pro5137);
                            synchronized (pro5138) {
                                pro5138.add(poll);
                            }
                        } catch (Exception e) {
                            poll.pro5131();
                            if (!(e instanceof BindException)) {
                                String str = "监听端口(" + poll.pro5130 + ")失败,错误码:2012";
                                if (pro5206 == 2) {
                                    sb = new StringBuilder();
                                    sb.append("監聽端口(");
                                    sb.append(poll.pro5130);
                                    sb.append(")失敗,錯誤碼:2012");
                                } else {
                                    if (pro5206 == 3) {
                                        sb = new StringBuilder();
                                        sb.append("Failed to start, failed to listen to the local port(");
                                        sb.append(poll.pro5130);
                                        sb.append("), error code 2012");
                                    }
                                    pro5109("", str, false, 0);
                                }
                                str = sb.toString();
                                pro5109("", str, false, 0);
                            } else if (!pro5214 && "1".equals(pro5212)) {
                                int i = poll.pro5130;
                                if (!list.contains(Integer.valueOf(i))) {
                                    list.add(Integer.valueOf(i));
                                }
                                StringBuilder sb2 = new StringBuilder();
                                int min = Math.min(list.size(), 5);
                                for (int i2 = 0; i2 < min; i2++) {
                                    sb2.append(list.get(i2));
                                    if (i2 < min - 1) {
                                        sb2.append(',');
                                    }
                                }
                                if (list.size() > 5) {
                                    sb2.append("...");
                                }
                                final int size2 = list.size();
                                final String sb3 = sb2.toString();
                                pro5131.pro5109(2000L, new Runnable() {
                                    @Override
                                    public final void run() {
                                        if ((31 + 19) % 19 <= 0) {
                                        }
                                        AppProtectManager.pro5109(size2, size, sb3);
                                    }
                                });
                            }
                        }
                    }
                } catch (Exception e2) {
                    pro5134.pro5109("Selector handling error: " + e2.getMessage());
                }
            }
            if (pro5137.select() > 0) {
                Iterator<SelectionKey> it = pro5137.selectedKeys().iterator();
                while (it.hasNext()) {
                    SelectionKey next = it.next();
                    it.remove();
                    if (next.isValid()) {
                        try {
                            if (next.isAcceptable()) {
                                pro5136Var = (pro5136) next.attachment();
                                if (pro5136Var != null) {
                                }
                            } else if (next.isConnectable() || next.isReadable() || next.isWritable()) {
                                a.a.a.pro5130 pro5130Var = (a.a.a.pro5130) next.attachment();
                                if (pro5130Var != null && pro5130Var.pro5132 != null) {
                                    pro5136Var = pro5130Var.pro5132;
                                }
                            }
                            pro5136Var.pro5130(next);
                        } catch (Exception e3) {
                            pro5134.pro5109("handleSelectionKey error: " + e3.getMessage());
                        }
                    }
                }
            }
        }
    }

    public static Void pro5109(String str, long j, String str2, String str3) {
        int i;
        Socket socket;
        if ((25 + 6) % 6 <= 0) {
        }
        String str4 = pro5175[0];
        SocketChannel socketChannel = pro5187[4];
        int port = (socketChannel == null || !socketChannel.isConnected() || (socket = socketChannel.socket()) == null) ? 0 : socket.getPort();
        if (port != 0) {
            i = port;
        } else {
            i = pro5109(str4, pro5130(0), new Random().nextInt(2) + 2);
        }
        if (!pro5136(str4) && i != 0) {
            if ("connect".equals(str)) {
                pro5109(-1L);
            } else {
                pro5109(0L);
            }
            if (("connect".equals(str) || "sysn".equals(str)) && j > 0) {
                pro5170.set(j);
            }
            String l = Long.toString(j);
            String uniqueID = getUniqueID();
            String l2 = Long.toString(a.a.a.pro5109.pro5109());
            String l3 = Long.toString(pro5134());
            String pro51342 = pro5134("opt_type=" + str + "&device_uid=" + uniqueID + "&device_time=" + l2 + "&connect_num=" + l3 + "&connect_speed=" + l + "&key=" + str2);
            Object[] objArr = new Object[8];
            objArr[0] = str;
            objArr[1] = str3;
            objArr[2] = uniqueID;
            objArr[3] = l2;
            objArr[4] = l3;
            objArr[5] = l;
            objArr[6] = pro51342;
            objArr[7] = pro5192 ? "-10910" : "10910";
            String format = String.format("{\"type\":\"sysn3\",\"opt_type\":\"%s\",\"instance_id\":\"%s\",\"device_uid\":\"%s\",\"device_time\":\"%s\",\"connect_num\":\"%s\",\"connect_speed\":\"%s\",\"token\":\"%s\",\"version\":\"%s\"}", objArr);
            AtomicReference atomicReference = new AtomicReference(null);
            int i2 = i;
            pro5109(4, str4, i, format, atomicReference, pro5150, true, false, true);
            pro5109 pro5109Var = (pro5109) atomicReference.get();
            if (pro5109Var == null) {
                pro5109(pro5187, 4);
                if (i2 < 10000) {
                    pro5109(4, str4, pro5109(str4, pro5130(0), new Random().nextInt(2)), format, atomicReference, pro5150, true, false, true);
                    pro5109Var = (pro5109) atomicReference.get();
                    if (pro5109Var == null) {
                        pro5109(pro5187, 4);
                    }
                }
                return null;
            }
            if (pro5217) {
                pro5109(pro5187, 4);
            }
            if (pro5192) {
                pro5192 = false;
            }
            pro5109(pro5109Var);
            return null;
        }
        return null;
    }
}