what-the-bank/sources/com/scb/phone/view/activity/ccrredemption/ecoupon/BaseECouponActivity.java

736 lines
41 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.ccrredemption.ecoupon;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;
import kotlin.NoWhenBranchMatchedException;
import o.C14957gcv;
import o.EnumC3162asM;
import o.IRS;
import o.TVH;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.jnbis.internal.NistHelper;
/* loaded from: classes4.dex */
public class BaseECouponActivity extends Hilt_BaseECouponActivity {
private static char k;
private static char[] l;
private static int m;
/* renamed from: o, reason: collision with root package name */
private static char[] f6673o;
private final List<Integer> b;
private static final byte[] $$g = {13, 13, 103, -97};
private static final int $$h = 95;
private static int $10 = 0;
private static int $11 = 1;
private static int r = 1;
private static void az(short s, byte b, byte b2, Object[] objArr) {
int i = b * 3;
byte[] bArr = $$g;
int i2 = 4 - (s * 2);
int i3 = b2 + 71;
byte[] bArr2 = new byte[i + 1];
int i4 = -1;
if (bArr == null) {
i4 = -1;
i3 = i2 + i;
i2++;
}
while (true) {
int i5 = i4 + 1;
bArr2[i5] = (byte) i3;
if (i5 == i) {
objArr[0] = new String(bArr2, 0);
return;
}
int i6 = i3;
i4 = i5;
i3 = bArr[i2] + i6;
i2++;
}
}
public BaseECouponActivity() {
Integer[] numArr = {Integer.valueOf(R.string.my_e_coupon_valid), Integer.valueOf(R.string.my_e_coupon_invalid)};
C14957gcv.e(numArr, "");
C14957gcv.e(numArr, "");
List<Integer> asList = Arrays.asList(numArr);
C14957gcv.c(asList, "");
this.b = asList;
}
/* loaded from: classes4.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
/* JADX INFO: Access modifiers changed from: protected */
public static int b(EnumC3162asM enumC3162asM) {
int i = 2 % 2;
int i2 = m + 105;
r = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(enumC3162asM, "");
int i4 = Sts.a[enumC3162asM.ordinal()];
if (i4 == 1) {
return R.string.e_coupon_details;
}
int i5 = m;
int i6 = i5 + 31;
r = i6 % 128;
if (i6 % 2 != 0 ? i4 == 2 : i4 == 2) {
return R.string.e_coupon_quantity_header;
}
if (i4 != 3) {
throw new NoWhenBranchMatchedException();
}
int i7 = i5 + 81;
r = i7 % 128;
int i8 = i7 % 2;
return R.string.review;
}
@Override // com.scb.phone.view.activity.ccrredemption.ecoupon.Hilt_BaseECouponActivity, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onCreate(Bundle bundle) {
int i = 2 % 2;
Object[] objArr = new Object[1];
ax(new char[]{18, '!', '\n', 23, 31, 1, '\n', 29, 31, 19, 29, 27, 19, NistHelper.SEP_FS, '\f', 30, 13825, 13825}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.prepaid_card_request_account_error_title).substring(42, 43).length() + 23), 18 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(new int[]{0, 5, CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA, 0}, false, new byte[]{1, 0, 0, 0, 1}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
ay(new int[]{5, 26, 0, 0}, true, new byte[]{0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1}, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
ax(new char[]{'\n', '\f', 13856, 13856, 30, 0, 15, 6, 13858, 13858, '\r', 1, '\t', 18, '\r', 30, 24, 31}, (byte) (56 - TextUtils.getOffsetBefore("", 0)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.enter_input_exceed).substring(38, 39).codePointAt(0) - 14, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
int i2 = r + 59;
m = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
int i4 = m + 107;
r = i4 % 128;
if (i4 % 2 == 0) {
baseContext = baseContext.getApplicationContext();
int i5 = 26 / 0;
} else {
baseContext = baseContext.getApplicationContext();
}
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getDoubleTapTimeout() >> 16), 5 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) (Process.getGidForName("") + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
ax(new char[]{26, 5, '!', 5, 0, 11, 3, 27, 4, '\t', 20, 22, 0, 4, 11, 29, 4, 0, 20, 18, 11, 5, 22, '\t', ' ', 15, 7, 0, 7, 11, 17, '#', 25, 5, 29, '#', 30, 27, 13902, 13902, 23, 31, 7, 4, 11, 18, 29, 30}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.banking_success_deposit_slip_file_name).substring(0, 24).length() + 62), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 14, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ax(new char[]{27, 0, '\f', 26, 15, 2, '\"', 11, 25, 0, 20, '\r', 20, '\r', 5, 26, 17, ' ', 25, 23, '\b', '\f', 23, '!', 2, 17, 6, '\f', 22, 7, 5, 18, 13866, 13866, 3, 19, 5, 19, 13941, 13941, 15, 2, 20, 15, 5, 25, 15, 2, 17, 29, ' ', 3, 11, 18, 2, 4, 18, 11, '#', 29, 15, 2, 18, 27}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 112), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 30, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ax(new char[]{22, 18, 1, 0, 23, 3, 13946, 13946, 22, 7, 0, 29, 5, '!', 5, 18, 27, '\t', 30, 3, 24, 5, 1, 20, 11, 18, 30, 27, 20, 17, 11, 6, '!', 5, 19, 3, 7, 25, 13862, 13862, 2, 1, 2, 0, 30, '\t', '\f', 26, 0, 27, 20, 18, 16, '\b', 3, 30, 3, 18, 3, 27, 5, 19, '\b', 0}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(1) + 12), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 30, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ay(new int[]{31, 74, 62, 49}, false, new byte[]{1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1}, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
ax(new char[]{16, '\"', 22, 29, 13819}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 47), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 29, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
ay(new int[]{105, 36, CipherSuite.TLS_PSK_WITH_NULL_SHA256, 0}, false, new byte[]{1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0}, objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - View.MeasureSpec.getSize(0), AndroidCharacter.getMirror('0') - '+', (char) (ViewConfiguration.getTouchSlop() >> 8))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
}
@Override // com.scb.phone.view.activity.ccrredemption.ecoupon.Hilt_BaseECouponActivity, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ay(new int[]{5, 26, 0, 0}, true, new byte[]{0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{'\n', '\f', 13856, 13856, 30, 0, 15, 6, 13858, 13858, '\r', 1, '\t', 18, '\r', 30, 24, 31}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_success_subtitle_successfull_request_speedy_loan_top_up).substring(23, 24).codePointAt(0) + 24), 19 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = r + 55;
m = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = m + 115;
r = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 492, 5 - View.MeasureSpec.getMode(0), (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(486 - TextUtils.lastIndexOf("", '0'), 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) Color.alpha(0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
private static void ay(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
char[] cArr;
char[] cArr2;
char[] cArr3;
int i = 2;
int i2 = 2 % 2;
TVH tvh = new TVH();
int i3 = 0;
int i4 = iArr[0];
int i5 = iArr[1];
int i6 = iArr[2];
int i7 = iArr[3];
char[] cArr4 = f6673o;
float f = BitmapDescriptorFactory.HUE_RED;
if (cArr4 != null) {
int length = cArr4.length;
char[] cArr5 = new char[length];
int i8 = 0;
while (i8 < length) {
int i9 = $11 + 101;
$10 = i9 % 128;
int i10 = i9 % i;
try {
Object[] objArr2 = new Object[1];
objArr2[i3] = Integer.valueOf(cArr4[i8]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr3 = cArr4;
} else {
Class cls = (Class) xzZ.c(223 - (TypedValue.complexToFraction(i3, f, f) > f ? 1 : (TypedValue.complexToFraction(i3, f, f) == f ? 0 : -1)), Process.getGidForName("") + 6, (char) (41977 - ExpandableListView.getPackedPositionType(0L)));
byte b = (byte) i3;
byte b2 = b;
cArr3 = cArr4;
Object[] objArr3 = new Object[1];
az(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr5[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i8++;
cArr4 = cArr3;
i = 2;
i3 = 0;
f = BitmapDescriptorFactory.HUE_RED;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr4 = cArr5;
}
char[] cArr6 = new char[i5];
System.arraycopy(cArr4, i4, cArr6, 0, i5);
if (bArr != null) {
int i11 = $10 + 95;
$11 = i11 % 128;
if (i11 % 2 == 0) {
cArr2 = new char[i5];
tvh.c = 1;
} else {
cArr2 = new char[i5];
tvh.c = 0;
}
char c = 0;
while (tvh.c < i5) {
if (bArr[tvh.c] == 1) {
int i12 = $10 + 69;
$11 = i12 % 128;
int i13 = i12 % 2;
int i14 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr6[tvh.c]), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(503 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), 5 - KeyEvent.keyCodeFromString(""), (char) (54 - (ViewConfiguration.getFadingEdgeLength() >> 16)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr2[i14] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
int i15 = $10 + 79;
$11 = i15 % 128;
int i16 = i15 % 2;
} else {
int i17 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr6[tvh.c]), Integer.valueOf(c)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(MotionEvent.axisFromString("") + 16, 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (Drawable.resolveOpacity(0, 0) + 58134))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr2[i17] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c = cArr2[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(403 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), 5 - View.resolveSize(0, 0), (char) (21608 - (Process.myPid() >> 22)));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr7 = new Object[1];
az(b3, b4, (byte) (b4 + 2), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr6 = cArr2;
}
if (i7 > 0) {
int i18 = $11 + 105;
$10 = i18 % 128;
if (i18 % 2 != 0) {
char[] cArr7 = new char[i5];
System.arraycopy(cArr6, 0, cArr7, 0, i5);
System.arraycopy(cArr7, 1, cArr6, i5 % i7, i7);
System.arraycopy(cArr7, i7, cArr6, 0, i5 / i7);
} else {
char[] cArr8 = new char[i5];
System.arraycopy(cArr6, 0, cArr8, 0, i5);
int i19 = i5 - i7;
System.arraycopy(cArr8, 0, cArr6, i19, i7);
System.arraycopy(cArr8, i7, cArr6, 0, i19);
}
}
if (z) {
int i20 = $10 + 89;
$11 = i20 % 128;
if (i20 % 2 == 0) {
cArr = new char[i5];
tvh.c = 1;
} else {
cArr = new char[i5];
tvh.c = 0;
}
while (tvh.c < i5) {
cArr[tvh.c] = cArr6[(i5 - tvh.c) - 1];
tvh.c++;
}
cArr6 = cArr;
}
if (i6 > 0) {
int i21 = 0;
while (true) {
tvh.c = i21;
if (tvh.c >= i5) {
break;
}
cArr6[tvh.c] = (char) (cArr6[tvh.c] - iArr[2]);
i21 = tvh.c + 1;
}
}
objArr[0] = new String(cArr6);
}
@Override // com.scb.phone.view.activity.ccrredemption.ecoupon.Hilt_BaseECouponActivity, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onPause() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ay(new int[]{5, 26, 0, 0}, true, new byte[]{0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{'\n', '\f', 13856, 13856, 30, 0, 15, 6, 13858, 13858, '\r', 1, '\t', 18, '\r', 30, 24, 31}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.occupation_inline_error_length).substring(0, 1).length() + 55), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 16, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i2 = r + 69;
m = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
int i4 = m + 111;
r = i4 % 128;
int i5 = i4 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 491, View.MeasureSpec.getSize(0) + 5, (char) (ExpandableListView.getPackedPositionChild(0L) + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) ((-1) - TextUtils.lastIndexOf("", '0', 0)))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
private static void ax(char[] cArr, byte b, int i, Object[] objArr) {
int i2;
int i3;
Object obj;
char c;
int i4 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = l;
long j = 0;
Object obj2 = null;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i5 = 0;
while (i5 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i5])};
Object obj3 = xzZ.y.get(-1987398494);
if (obj3 == null) {
Class cls = (Class) xzZ.c(View.MeasureSpec.getMode(0) + 298, 5 - Gravity.getAbsoluteGravity(0, 0), (char) ((Process.getElapsedCpuTime() > j ? 1 : (Process.getElapsedCpuTime() == j ? 0 : -1)) - 1));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
az(b2, b3, (byte) (b3 | 46), objArr3);
obj3 = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
cArr3[i5] = ((Character) ((Method) obj3).invoke(null, objArr2)).charValue();
i5++;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(k)};
Object obj4 = xzZ.y.get(-1987398494);
char c2 = 4;
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(298 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) KeyEvent.keyCodeFromString(""));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
az(b4, b5, (byte) (b5 | 46), objArr5);
obj4 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj4);
}
char charValue = ((Character) ((Method) obj4).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
i3 = i - 1;
cArr4[i3] = (char) (cArr[i3] - b);
int i6 = $11 + 33;
$10 = i6 % 128;
i2 = 2;
int i7 = i6 % 2;
} else {
i2 = 2;
i3 = i;
}
if (i3 > 1) {
int i8 = $11 + 73;
$10 = i8 % 128;
int i9 = i8 % i2;
irs.e = 0;
while (irs.e < i3) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
int i10 = $11 + 79;
$10 = i10 % 128;
int i11 = i10 % 2;
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
obj = obj2;
c = c2;
} else {
Object[] objArr6 = new Object[13];
objArr6[12] = irs;
objArr6[11] = Integer.valueOf(charValue);
objArr6[10] = irs;
objArr6[9] = irs;
objArr6[8] = Integer.valueOf(charValue);
objArr6[7] = irs;
objArr6[6] = irs;
objArr6[5] = Integer.valueOf(charValue);
objArr6[c2] = irs;
objArr6[3] = irs;
objArr6[2] = Integer.valueOf(charValue);
objArr6[1] = irs;
objArr6[0] = irs;
Object obj5 = xzZ.y.get(822107368);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(232 - ExpandableListView.getPackedPositionChild(0L), (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (MotionEvent.axisFromString("") + 22025));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
az(b6, b7, (byte) (b7 | 49), objArr7);
obj5 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj5);
}
if (((Integer) ((Method) obj5).invoke(null, objArr6)).intValue() == irs.j) {
int i12 = $11 + 99;
$10 = i12 % 128;
int i13 = i12 % 2;
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj6 = xzZ.y.get(-1152873385);
if (obj6 != null) {
c = 4;
} else {
Class cls4 = (Class) xzZ.c(327 - Gravity.getAbsoluteGravity(0, 0), (ViewConfiguration.getWindowTouchSlop() >> 8) + 5, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)));
byte b8 = (byte) 0;
byte b9 = b8;
Object[] objArr9 = new Object[1];
az(b8, b9, (byte) (b9 | 47), objArr9);
String str = (String) objArr9[0];
c = 4;
obj6 = cls4.getMethod(str, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj6);
}
obj = null;
int intValue = ((Integer) ((Method) obj6).invoke(null, objArr8)).intValue();
int i14 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i14];
} else {
obj = null;
c = 4;
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i15 = (irs.a * charValue) + irs.f;
int i16 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i15];
cArr4[irs.e + 1] = cArr2[i16];
} else {
int i17 = (irs.a * charValue) + irs.j;
int i18 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i17];
cArr4[irs.e + 1] = cArr2[i18];
}
}
}
irs.e += 2;
int i19 = $11 + 71;
$10 = i19 % 128;
int i20 = i19 % 2;
obj2 = obj;
c2 = c;
}
}
for (int i21 = 0; i21 < i; i21++) {
cArr4[i21] = (char) (cArr4[i21] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // com.scb.phone.view.activity.ccrredemption.ecoupon.Hilt_BaseECouponActivity, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
int i = 2 % 2;
int i2 = m + 125;
r = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
ax(new char[]{18, '!', '\n', 23, 31, 1, '\n', 29, 31, 19, 29, 27, 19, NistHelper.SEP_FS, '\f', 30, 13825, 13825}, (byte) (24 - KeyEvent.normalizeMetaState(0)), 18 - ExpandableListView.getPackedPositionGroup(0L), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(new int[]{0, 5, CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA, 0}, false, new byte[]{1, 0, 0, 0, 1}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
context = context.getApplicationContext();
}
if (context != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - View.MeasureSpec.makeMeasureSpec(0, 0), 5 - Color.argb(0, 0, 0, 0), (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
ax(new char[]{26, 5, '!', 5, 0, 11, 3, 27, 4, '\t', 20, 22, 0, 4, 11, 29, 4, 0, 20, 18, 11, 5, 22, '\t', ' ', 15, 7, 0, 7, 11, 17, '#', 25, 5, 29, '#', 30, 27, 13902, 13902, 23, 31, 7, 4, 11, 18, 29, 30}, (byte) (86 - TextUtils.indexOf("", "", 0, 0)), (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 48, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
ax(new char[]{27, 0, '\f', 26, 15, 2, '\"', 11, 25, 0, 20, '\r', 20, '\r', 5, 26, 17, ' ', 25, 23, '\b', '\f', 23, '!', 2, 17, 6, '\f', 22, 7, 5, 18, 13866, 13866, 3, 19, 5, 19, 13941, 13941, 15, 2, 20, 15, 5, 25, 15, 2, 17, 29, ' ', 3, 11, 18, 2, 4, 18, 11, '#', 29, 15, 2, 18, 27}, (byte) (TextUtils.getOffsetBefore("", 0) + 125), 64 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
ax(new char[]{22, 18, 1, 0, 23, 3, 13946, 13946, 22, 7, 0, 29, 5, '!', 5, 18, 27, '\t', 30, 3, 24, 5, 1, 20, 11, 18, 30, 27, 20, 17, 11, 6, '!', 5, 19, 3, 7, 25, 13862, 13862, 2, 1, 2, 0, 30, '\t', '\f', 26, 0, 27, 20, 18, 16, '\b', 3, 30, 3, 18, 3, 27, 5, 19, '\b', 0}, (byte) (((Process.getThreadPriority(0) + 20) >> 6) + 123), ((Process.getThreadPriority(0) + 20) >> 6) + 64, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ay(new int[]{31, 74, 62, 49}, false, new byte[]{1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1}, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ax(new char[]{16, '\"', 22, 29, 13819}, (byte) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 80), Color.red(0) + 5, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ay(new int[]{105, 36, CipherSuite.TLS_PSK_WITH_NULL_SHA256, 0}, false, new byte[]{1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0}, objArr8);
Object[] objArr9 = {context, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getLongPressTimeout() >> 16), 5 - View.resolveSizeAndState(0, 0, 0), (char) TextUtils.indexOf("", "", 0, 0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
int i4 = m + 7;
r = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
static void j() {
l = new char[]{49027, 49030, 49028, 49105, 49048, 49024, 49104, 49119, 49049, 49138, 49034, 49111, 49095, 49088, 49029, 49041, 49094, 49050, 49091, 49025, 49054, 49106, 49089, 49035, 49110, 49116, 49123, 49052, 49053, 49026, 49117, 49114, 49055, 49109, 49051, 49031};
k = (char) 35375;
f6673o = new char[]{40055, 40180, 40184, 40160, 40185, 39993, 40041, 40040, 40032, 40038, 40021, 40045, 40061, 40037, 40036, 40036, 40037, 40032, 40025, 39996, 40004, 40059, 40035, 40012, 40002, 40045, 40039, 40059, 40032, 40034, 40044, 40031, 40065, 40068, 40103, 40096, 40098, 40106, 40099, 40098, 40107, 40099, 40122, 40068, 40067, 40103, 40098, 40108, 40098, 40098, 40123, 40122, 40098, 40108, 40098, 40076, 40077, 40108, 40103, 40071, 40077, 40109, 40097, 40065, 40065, 40098, 40099, 40111, 40097, 40122, 40068, 40091, 40089, 40037, 40067, 40096, 40096, 40108, 40100, 40122, 40096, 40103, 40121, 40123, 40100, 40095, 40057, 40038, 40068, 40103, 40104, 40110, 40109, 40108, 40103, 40096, 40108, 40098, 40099, 40111, 40104, 40111, 40110, 40084, 40110, 40065, 40216, 40178, 40168, 40183, 40181, 40173, 40169, 40149, 40170, 40168, 40177, 40216, 40188, 40171, 40168, 40170, 40170, 40148, 40188, 40218, 40216, 40223, 40179, 40148, 40177, 40177, 40178, 40183, 40181, 40223, 40183, 40175, 40175, 40168, 40176};
}
@Override // com.scb.phone.view.activity.ccrredemption.ecoupon.Hilt_BaseECouponActivity, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = r + 25;
m = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
int i4 = 61 / 0;
}
}
/* loaded from: classes4.dex */
public final /* synthetic */ class Sts {
public static final int[] a;
static {
int[] iArr = new int[EnumC3162asM.values().length];
try {
iArr[EnumC3162asM.E_COUPON_DETAIL_PAGE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[EnumC3162asM.E_COUPON_QUANTITY_PAGE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[EnumC3162asM.E_COUPON_REVIEW_PAGE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
a = iArr;
}
}
/* JADX INFO: Access modifiers changed from: protected */
public final List<Integer> g() {
int i = 2 % 2;
int i2 = r;
int i3 = i2 + 67;
m = i3 % 128;
int i4 = i3 % 2;
List<Integer> list = this.b;
int i5 = i2 + 29;
m = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 23 / 0;
}
return list;
}
static {
m = 0;
j();
new IeS((byte) 0);
int i = r + 53;
m = i % 128;
int i2 = i % 2;
}
}