.class Lcom/in2wow/sdk/e/b$a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/in2wow/sdk/e/b;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "a"
.end annotation


# instance fields
.field final synthetic a:Lcom/in2wow/sdk/e/b;


# direct methods
.method constructor <init>(Lcom/in2wow/sdk/e/b;)V
    .locals 0

    .line 131
    iput-object p1, p0, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V
    .locals 0

    if-eqz p1, :cond_0

    .line 135
    :try_start_0
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    :cond_0
    :goto_0
    if-eqz p2, :cond_1

    .line 141
    :try_start_1
    invoke-virtual {p2}, Ljava/io/RandomAccessFile;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    nop

    :cond_1
    :goto_1
    if-eqz p3, :cond_2

    .line 146
    invoke-virtual {p3}, Ljava/net/HttpURLConnection;->disconnect()V

    :cond_2
    return-void
.end method


# virtual methods
.method public run()V
    .locals 23

    move-object/from16 v1, p0

    .line 150
    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->a(Lcom/in2wow/sdk/e/b;)Lcom/in2wow/sdk/e/a;

    move-result-object v2

    if-nez v2, :cond_0

    return-void

    .line 155
    :cond_0
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->k()Lcom/in2wow/sdk/e/b$b;

    move-result-object v3

    if-eqz v3, :cond_1

    .line 158
    invoke-interface {v3, v2}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;)V

    :cond_1
    const/16 v0, 0x2000

    .line 164
    new-array v4, v0, [B

    .line 169
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->i()Z

    move-result v0

    const-wide/16 v5, -0x1

    if-eqz v0, :cond_2

    .line 170
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->h()J

    move-result-wide v7

    goto :goto_0

    :cond_2
    move-wide v7, v5

    :goto_0
    const/4 v9, 0x4

    .line 173
    :try_start_0
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->e()Ljava/lang/String;

    move-result-object v0

    iget-object v10, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v10}, Lcom/in2wow/sdk/e/b;->b(Lcom/in2wow/sdk/e/b;)Landroid/content/Context;

    move-result-object v10

    invoke-static {v10}, Lcom/in2wow/sdk/m/o;->a(Landroid/content/Context;)Lcom/in2wow/sdk/m/o;

    move-result-object v10

    invoke-virtual {v10}, Lcom/in2wow/sdk/m/o;->a()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v10, 0x3

    const/4 v11, 0x0

    if-eqz v0, :cond_4

    .line 175
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->e()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Lcom/in2wow/sdk/m/o;->b(Ljava/lang/String;)J

    move-result-wide v12

    iget-object v14, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v14}, Lcom/in2wow/sdk/e/b;->c(Lcom/in2wow/sdk/e/b;)J

    move-result-wide v14

    cmp-long v16, v12, v14

    if-gez v16, :cond_4

    const-string v0, "no space for download creative (preserved size)"

    .line 176
    new-array v4, v11, [Ljava/lang/Object;

    invoke-static {v0, v4}, Lcom/in2wow/sdk/m/j;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    if-eqz v3, :cond_3

    .line 178
    invoke-interface {v3, v2, v10}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;I)V

    :cond_3
    return-void

    :cond_4
    if-eqz v0, :cond_6

    .line 183
    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->d(Lcom/in2wow/sdk/e/b;)J

    move-result-wide v12

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->h()J

    move-result-wide v14

    const/4 v0, 0x0

    add-long/2addr v12, v14

    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->e(Lcom/in2wow/sdk/e/b;)J

    move-result-wide v14

    cmp-long v0, v12, v14

    if-lez v0, :cond_6

    const-string v0, "no space for download creative (used size)"

    .line 185
    new-array v4, v11, [Ljava/lang/Object;

    invoke-static {v0, v4}, Lcom/in2wow/sdk/m/j;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    if-eqz v3, :cond_5

    .line 187
    invoke-interface {v3, v2, v10}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;I)V

    :cond_5
    return-void

    .line 194
    :cond_6
    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->f(Lcom/in2wow/sdk/e/b;)Lcom/in2wow/sdk/f/b;

    move-result-object v0

    invoke-interface {v0, v2}, Lcom/in2wow/sdk/f/b;->a(Lcom/in2wow/sdk/e/a;)V

    .line 198
    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->f(Lcom/in2wow/sdk/e/b;)Lcom/in2wow/sdk/f/b;

    move-result-object v0

    invoke-interface {v0, v2}, Lcom/in2wow/sdk/f/b;->b(Lcom/in2wow/sdk/e/a;)Z

    move-result v0

    const/4 v12, 0x0

    if-eqz v0, :cond_8

    if-eqz v3, :cond_7

    .line 201
    invoke-interface {v3, v2}, Lcom/in2wow/sdk/e/b$b;->c(Lcom/in2wow/sdk/e/a;)V

    .line 203
    :cond_7
    invoke-direct {v1, v12, v12, v12}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V

    return-void

    .line 208
    :cond_8
    new-instance v13, Ljava/io/File;

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->e()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v13, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 209
    invoke-virtual {v13}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_9

    invoke-virtual {v13}, Ljava/io/File;->length()J

    move-result-wide v14

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->h()J

    move-result-wide v16

    cmp-long v0, v14, v16

    if-gez v0, :cond_9

    .line 210
    invoke-virtual {v13}, Ljava/io/File;->length()J

    move-result-wide v14

    invoke-virtual {v2, v14, v15}, Lcom/in2wow/sdk/e/a;->b(J)V

    goto :goto_1

    .line 213
    :cond_9
    invoke-virtual {v13}, Ljava/io/File;->createNewFile()Z

    const-wide/16 v14, 0x0

    .line 214
    invoke-virtual {v2, v14, v15}, Lcom/in2wow/sdk/e/a;->b(J)V

    .line 217
    :goto_1
    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->f(Lcom/in2wow/sdk/e/b;)Lcom/in2wow/sdk/f/b;

    move-result-object v0

    invoke-interface {v0, v13, v2, v7, v8}, Lcom/in2wow/sdk/f/b;->a(Ljava/io/File;Lcom/in2wow/sdk/e/a;J)Z

    move-result v0

    if-eqz v0, :cond_b

    if-eqz v3, :cond_a

    .line 219
    invoke-interface {v3, v2}, Lcom/in2wow/sdk/e/b$b;->c(Lcom/in2wow/sdk/e/a;)V

    .line 221
    :cond_a
    invoke-direct {v1, v12, v12, v12}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V

    return-void

    .line 226
    :cond_b
    new-instance v0, Ljava/net/URL;

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->g()Ljava/lang/String;

    move-result-object v14

    invoke-direct {v0, v14}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    move-object v14, v12

    move-object v15, v14

    move-object/from16 v17, v15

    const/16 v16, 0x0

    move-object v12, v0

    .line 227
    :goto_2
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->d()I

    move-result v0

    if-gtz v0, :cond_c

    if-eqz v3, :cond_1a

    .line 327
    invoke-interface {v3, v2, v9}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_d

    goto/16 :goto_c

    :cond_c
    const/4 v9, 0x1

    :try_start_1
    const-string v10, "%s"

    .line 229
    new-array v0, v9, [Ljava/lang/Object;

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->g()Ljava/lang/String;

    move-result-object v18

    aput-object v18, v0, v11

    invoke-static {v10, v0}, Lcom/in2wow/sdk/m/j;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 230
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->d()I

    move-result v0

    sub-int/2addr v0, v9

    invoke-virtual {v2, v0}, Lcom/in2wow/sdk/e/a;->b(I)V

    .line 232
    invoke-virtual {v12}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v0

    move-object v10, v0

    check-cast v10, Ljava/net/HttpURLConnection;
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_c
    .catch Ljava/net/MalformedURLException; {:try_start_1 .. :try_end_1} :catch_b
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_a

    const/16 v0, 0x1388

    .line 233
    :try_start_2
    invoke-virtual {v10, v0}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V

    const-string v0, "GET"

    .line 234
    invoke-virtual {v10, v0}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V

    .line 235
    invoke-virtual {v10, v11}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V

    cmp-long v0, v7, v5

    if-eqz v0, :cond_d

    const-string v0, "bytes=%d-%d"

    const/4 v5, 0x2

    .line 238
    new-array v6, v5, [Ljava/lang/Object;

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->j()J

    move-result-wide v19

    invoke-static/range {v19 .. v20}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    aput-object v5, v6, v11

    const-wide/16 v19, 0x1

    sub-long v19, v7, v19

    invoke-static/range {v19 .. v20}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    aput-object v5, v6, v9

    invoke-static {v0, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    const-string v5, "Range"

    .line 239
    invoke-virtual {v10, v5, v0}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 241
    :cond_d
    invoke-virtual {v10}, Ljava/net/HttpURLConnection;->connect()V

    .line 242
    invoke-virtual {v10}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v0

    .line 244
    div-int/lit8 v5, v0, 0x64

    const/4 v6, 0x3

    if-ne v5, v6, :cond_e

    .line 245
    new-instance v5, Ljava/net/URL;

    const-string v0, "Location"

    invoke-virtual {v10, v0}, Ljava/net/HttpURLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v5, v0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_9
    .catch Ljava/net/MalformedURLException; {:try_start_2 .. :try_end_2} :catch_8
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_7

    .line 246
    :try_start_3
    invoke-direct {v1, v14, v15, v10}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V
    :try_end_3
    .catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_9
    .catch Ljava/net/MalformedURLException; {:try_start_3 .. :try_end_3} :catch_8
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    move-object v12, v5

    goto :goto_3

    :catch_0
    move-exception v0

    move-object v12, v5

    goto/16 :goto_7

    :cond_e
    const/16 v5, 0xc8

    if-eq v0, v5, :cond_f

    const/16 v5, 0xce

    if-eq v0, v5, :cond_f

    .line 251
    :try_start_4
    invoke-direct {v1, v14, v15, v10}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V

    :goto_3
    move-object/from16 v17, v10

    goto/16 :goto_9

    .line 254
    :cond_f
    new-instance v5, Ljava/io/RandomAccessFile;

    const-string v0, "rwd"

    invoke-direct {v5, v13, v0}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
    :try_end_4
    .catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_9
    .catch Ljava/net/MalformedURLException; {:try_start_4 .. :try_end_4} :catch_8
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_7

    move-wide/from16 v21, v7

    .line 255
    :try_start_5
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->j()J

    move-result-wide v6

    invoke-virtual {v5, v6, v7}, Ljava/io/RandomAccessFile;->seek(J)V

    .line 256
    invoke-virtual {v10}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v6
    :try_end_5
    .catch Ljava/io/FileNotFoundException; {:try_start_5 .. :try_end_5} :catch_6
    .catch Ljava/net/MalformedURLException; {:try_start_5 .. :try_end_5} :catch_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4

    .line 257
    :cond_10
    :goto_4
    :try_start_6
    invoke-virtual {v6, v4}, Ljava/io/InputStream;->read([B)I

    move-result v0

    const/4 v7, -0x1

    if-ne v0, v7, :cond_16

    .line 265
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->c()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_11

    .line 266
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->e()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/in2wow/sdk/m/o;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_11

    const/16 v16, 0x1

    :cond_11
    if-eqz v3, :cond_13

    if-eqz v16, :cond_12

    const/4 v0, 0x6

    .line 273
    invoke-interface {v3, v2, v0}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;I)V

    goto :goto_5

    .line 276
    :cond_12
    invoke-interface {v3, v2}, Lcom/in2wow/sdk/e/b$b;->c(Lcom/in2wow/sdk/e/a;)V

    .line 279
    :cond_13
    :goto_5
    invoke-direct {v1, v6, v5, v10}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V

    if-eqz v16, :cond_14

    .line 282
    invoke-virtual {v13}, Ljava/io/File;->delete()Z

    goto :goto_6

    .line 286
    :cond_14
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->e()Ljava/lang/String;

    move-result-object v0

    iget-object v7, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v7}, Lcom/in2wow/sdk/e/b;->b(Lcom/in2wow/sdk/e/b;)Landroid/content/Context;

    move-result-object v7

    invoke-static {v7}, Lcom/in2wow/sdk/m/o;->a(Landroid/content/Context;)Lcom/in2wow/sdk/m/o;

    move-result-object v7

    invoke-virtual {v7}, Lcom/in2wow/sdk/m/o;->a()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_15

    .line 287
    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->d(Lcom/in2wow/sdk/e/b;)J

    move-result-wide v7

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->h()J

    move-result-wide v14

    const/16 v17, 0x0

    add-long/2addr v7, v14

    invoke-static {v0, v7, v8}, Lcom/in2wow/sdk/e/b;->a(Lcom/in2wow/sdk/e/b;J)V

    :cond_15
    :goto_6
    return-void

    .line 258
    :cond_16
    invoke-virtual {v5, v4, v11, v0}, Ljava/io/RandomAccessFile;->write([BII)V

    .line 259
    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->j()J

    move-result-wide v7

    int-to-long v14, v0

    add-long/2addr v7, v14

    invoke-virtual {v2, v7, v8}, Lcom/in2wow/sdk/e/a;->b(J)V

    if-eqz v3, :cond_10

    .line 261
    invoke-interface {v3, v2}, Lcom/in2wow/sdk/e/b$b;->b(Lcom/in2wow/sdk/e/a;)V
    :try_end_6
    .catch Ljava/io/FileNotFoundException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Ljava/net/MalformedURLException; {:try_start_6 .. :try_end_6} :catch_2
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_1

    goto :goto_4

    :catch_1
    move-exception v0

    move-object v15, v5

    move-object v14, v6

    goto :goto_8

    :catch_2
    move-object v15, v5

    move-object v14, v6

    goto :goto_a

    :catch_3
    move-object v15, v5

    move-object v14, v6

    goto :goto_b

    :catch_4
    move-exception v0

    move-object v15, v5

    goto :goto_8

    :catch_5
    move-object v15, v5

    goto :goto_a

    :catch_6
    move-object v15, v5

    goto :goto_b

    :catch_7
    move-exception v0

    :goto_7
    move-wide/from16 v21, v7

    goto :goto_8

    :catch_8
    nop

    goto :goto_a

    :catch_9
    nop

    goto :goto_b

    :catch_a
    move-exception v0

    move-wide/from16 v21, v7

    move-object/from16 v10, v17

    .line 309
    :goto_8
    :try_start_7
    invoke-static {v0}, Lcom/in2wow/sdk/m/j;->a(Ljava/lang/Throwable;)V

    .line 310
    invoke-direct {v1, v14, v15, v10}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V

    .line 316
    iget-object v0, v1, Lcom/in2wow/sdk/e/b$a;->a:Lcom/in2wow/sdk/e/b;

    invoke-static {v0}, Lcom/in2wow/sdk/e/b;->f(Lcom/in2wow/sdk/e/b;)Lcom/in2wow/sdk/f/b;

    move-result-object v0

    invoke-interface {v0, v2}, Lcom/in2wow/sdk/f/b;->b(Lcom/in2wow/sdk/e/a;)Z

    move-result v0

    if-eqz v0, :cond_17

    const-string v0, "[%s] error but has download ok"

    .line 317
    new-array v4, v9, [Ljava/lang/Object;

    invoke-virtual {v2}, Lcom/in2wow/sdk/e/a;->f()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v11

    invoke-static {v0, v4}, Lcom/in2wow/sdk/m/j;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    return-void

    :cond_17
    move-object/from16 v17, v10

    move-wide/from16 v7, v21

    :goto_9
    const-wide/16 v5, -0x1

    const/4 v9, 0x4

    const/4 v10, 0x3

    goto/16 :goto_2

    :catch_b
    move-object/from16 v10, v17

    :goto_a
    if-eqz v3, :cond_18

    const/4 v0, 0x2

    .line 303
    invoke-interface {v3, v2, v0}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;I)V

    .line 305
    :cond_18
    invoke-direct {v1, v14, v15, v10}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V

    return-void

    :catch_c
    move-object/from16 v10, v17

    :goto_b
    if-eqz v3, :cond_19

    .line 295
    invoke-interface {v3, v2, v9}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;I)V

    .line 297
    :cond_19
    invoke-direct {v1, v14, v15, v10}, Lcom/in2wow/sdk/e/b$a;->a(Ljava/io/InputStream;Ljava/io/RandomAccessFile;Ljava/net/HttpURLConnection;)V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_d

    return-void

    :catch_d
    nop

    if-eqz v3, :cond_1a

    const/4 v4, 0x4

    .line 332
    invoke-interface {v3, v2, v4}, Lcom/in2wow/sdk/e/b$b;->a(Lcom/in2wow/sdk/e/a;I)V

    :cond_1a
    :goto_c
    return-void
.end method
