what-the-bank/sources/o/AbstractActivityC8886dYu.java

507 lines
23 KiB
Java

package o;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PointF;
import android.os.Bundle;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
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.view.activity.BaseActivity;
import com.scb.phone.view.activity.mwpartner.MwShopTypeActivity;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C13068fPo;
import o.VLM;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.dYu, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public abstract class AbstractActivityC8886dYu extends BaseActivity implements fPA {
/* renamed from: o, reason: collision with root package name */
private volatile C13073fPt f8882o;
private static final byte[] $$g = {115, -56, 28, 10};
private static final int $$h = CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA;
private static int $10 = 0;
private static int $11 = 1;
private static int r = 0;
private static int p = 1;
private static long m = 115711243945550661L;
private static char[] k = {16328, 16378, 16327, 16330, 16323, 16377, 16310, 16325, 16321, 16334, 16342, 16324, 16262, 16316, 16313, 16343, 16312, 16331, 16318, 16263, 16317, 16315, 16314, 16329, 16261, 16333, 16376, 16319, 16260, 16322, 16320, 16259, 16332, 16326, 16379};
private static int t = 1934311029;
private static boolean q = true;
private static boolean s = true;
private final Object l = new Object();
boolean b = false;
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002f). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void az(short r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
int r6 = r6 + 4
int r8 = r8 + 65
int r7 = r7 * 3
int r0 = 1 - r7
byte[] r1 = o.AbstractActivityC8886dYu.$$g
byte[] r0 = new byte[r0]
r2 = 0
int r7 = 0 - r7
r3 = -1
if (r1 != 0) goto L15
r4 = r3
r3 = r6
goto L2f
L15:
r5 = r8
r8 = r6
r6 = r5
L18:
int r3 = r3 + 1
byte r4 = (byte) r6
int r8 = r8 + 1
r0[r3] = r4
if (r3 != r7) goto L29
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L29:
r4 = r1[r8]
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2f:
int r6 = r6 + r8
r8 = r3
r3 = r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8886dYu.az(short, byte, byte, java.lang.Object[]):void");
}
public AbstractActivityC8886dYu() {
addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: o.dYu.3
private AbstractActivityC8886dYu d;
{
this.d = this;
}
@Override // o.InterfaceC17278vUG
public final void a(Context context) {
AbstractActivityC8886dYu abstractActivityC8886dYu = this.d;
if (abstractActivityC8886dYu.b) {
return;
}
abstractActivityC8886dYu.b = true;
((InterfaceC11170eaL) abstractActivityC8886dYu.y_()).e((MwShopTypeActivity) abstractActivityC8886dYu);
}
});
}
@Override // o.fPC
public final Object y_() {
int i = 2 % 2;
int i2 = r + 61;
p = i2 % 128;
if (i2 % 2 == 0) {
j().y_();
Object obj = null;
obj.hashCode();
throw null;
}
Object y_ = j().y_();
int i3 = p + 25;
r = i3 % 128;
int i4 = i3 % 2;
return y_;
}
private C13073fPt j() {
if (this.f8882o == null) {
synchronized (this.l) {
if (this.f8882o == null) {
this.f8882o = new C13073fPt(this);
}
}
}
return this.f8882o;
}
private static void ax(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(m ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
while (guL.a < a.length) {
int i3 = $10 + 27;
$11 = i3 % 128;
int i4 = i3 % 2;
guL.c = guL.a - 4;
int i5 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(m)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 209, (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (View.MeasureSpec.getMode(0) + 1706));
byte b = (byte) (-1);
byte b2 = (byte) (b + 1);
Object[] objArr3 = new Object[1];
az(b, b2, (byte) (b2 | 54), objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
try {
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 392, (ViewConfiguration.getEdgeSlop() >> 16) + 5, (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16));
byte b3 = (byte) (-1);
Object[] objArr5 = new Object[1];
az(b3, (byte) (b3 + 1), (byte) (-$$g[1]), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
String str = new String(a, 4, a.length - 4);
int i6 = $10 + 65;
$11 = i6 % 128;
if (i6 % 2 != 0) {
objArr[0] = str;
} else {
int i7 = 47 / 0;
objArr[0] = str;
}
}
@Override // androidx.activity.ComponentActivity, o.GvH
public VLM.LWm getDefaultViewModelProviderFactory() {
Bundle bundle;
int i = 2 % 2;
int i2 = r + 85;
p = i2 % 128;
int i3 = i2 % 2;
VLM.LWm defaultViewModelProviderFactory = super.getDefaultViewModelProviderFactory();
C13068fPo.LWm a = ((C13068fPo.Sts) fOV.c(this, C13068fPo.Sts.class)).a();
if (getIntent() != null) {
int i4 = r + 23;
p = i4 % 128;
if (i4 % 2 == 0) {
bundle = getIntent().getExtras();
int i5 = 34 / 0;
} else {
bundle = getIntent().getExtras();
}
} else {
bundle = null;
}
return a.aBN_(this, bundle, defaultViewModelProviderFactory);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x00b4, code lost:
if (r1 > 99999) goto L11;
*/
@Override // 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
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onCreate(android.os.Bundle r16) {
/*
Method dump skipped, instructions count: 1166
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8886dYu.onCreate(android.os.Bundle):void");
}
private static void ay(int[] iArr, char[] cArr, int i, byte[] bArr, Object[] objArr) {
int length;
char[] cArr2;
int i2 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = k;
int i3 = -1;
float f = BitmapDescriptorFactory.HUE_RED;
char c = 0;
if (cArr3 != null) {
int i4 = $10 + 35;
$11 = i4 % 128;
if (i4 % 2 == 0) {
length = cArr3.length;
cArr2 = new char[length];
} else {
length = cArr3.length;
cArr2 = new char[length];
}
int i5 = 0;
while (i5 < length) {
try {
Object[] objArr2 = new Object[1];
objArr2[c] = Integer.valueOf(cArr3[i5]);
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(337 - (KeyEvent.getMaxKeyCode() >> 16), 5 - (PointF.length(f, f) > f ? 1 : (PointF.length(f, f) == f ? 0 : -1)), (char) (MotionEvent.axisFromString("") + 1));
byte b = (byte) i3;
byte b2 = (byte) (b + 1);
Object[] objArr3 = new Object[1];
az(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i5++;
i3 = -1;
f = BitmapDescriptorFactory.HUE_RED;
c = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr2;
}
Object[] objArr4 = {Integer.valueOf(t)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((-16776933) - Color.rgb(0, 0, 0), TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) ((PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 39813));
byte b3 = (byte) (-1);
byte b4 = (byte) (b3 + 1);
Object[] objArr5 = new Object[1];
az(b3, b4, (byte) (b4 | 57), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (s) {
c3614bBe.c = bArr.length;
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr4[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(TextUtils.indexOf("", "", 0) + 40, 5 - KeyEvent.normalizeMetaState(0), (char) (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr4);
return;
}
if (!q) {
c3614bBe.c = iArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
int i6 = $10 + 125;
$11 = i6 % 128;
int i7 = i6 % 2;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
c3614bBe.a++;
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = cArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr6[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
try {
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 40, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) View.resolveSizeAndState(0, 0, 0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr6);
}
@Override // 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;
int i2 = p + 19;
r = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
Object obj = null;
if (baseContext == null) {
Object[] objArr = new Object[1];
ax(new char[]{35337, 35432, 5618, 28294, 34489, 28905, 53551, 40979, 26126, 29209, 37393, 36023, 21176, 18024, 49053, 39711, 20336, 21955, 52209, 59328, 15327, 14625, 55113, 62392, 5205, 3256, 58535, 56860, 24, 4124}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.unsubcribe_content).substring(24, 25).codePointAt(0) - 32, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(null, null, 127 - View.resolveSizeAndState(0, 0, 0), new byte[]{ISOFileInfo.PROP_INFO, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.LCS_BYTE, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -119, -120, -120, ISOFileInfo.FCI_EXT, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i4 = p + 51;
r = i4 % 128;
int i5 = i4 % 2;
}
if (baseContext != null) {
int i6 = r + 23;
p = i6 % 128;
if (i6 % 2 == 0) {
baseContext.getApplicationContext();
obj.hashCode();
throw null;
}
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - View.MeasureSpec.makeMeasureSpec(0, 0), (ViewConfiguration.getWindowTouchSlop() >> 8) + 5, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1378719468);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 487, MotionEvent.axisFromString("") + 6, (char) (KeyEvent.getMaxKeyCode() >> 16))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
@Override // 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;
int i2 = r + 77;
p = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i4 = r + 27;
p = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
ax(new char[]{35337, 35432, 5618, 28294, 34489, 28905, 53551, 40979, 26126, 29209, 37393, 36023, 21176, 18024, 49053, 39711, 20336, 21955, 52209, 59328, 15327, 14625, 55113, 62392, 5205, 3256, 58535, 56860, 24, 4124}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.debit_card_cvv_desc).substring(24, 25).codePointAt(0) - 32, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 114, new byte[]{ISOFileInfo.PROP_INFO, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.LCS_BYTE, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -119, -120, -120, ISOFileInfo.FCI_EXT, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i6 = r + 53;
p = i6 % 128;
int i7 = i6 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 492, 5 - (ViewConfiguration.getScrollDefaultDelay() >> 16), (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).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(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 488, 5 - TextUtils.getOffsetAfter("", 0), (char) Color.argb(0, 0, 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();
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0076, code lost:
if (r1 > 99999) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0070, code lost:
if (r1 > 99999) goto L11;
*/
@Override // 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
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void attachBaseContext(android.content.Context r13) {
/*
Method dump skipped, instructions count: 740
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8886dYu.attachBaseContext(android.content.Context):void");
}
@Override // 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 = p + 121;
r = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = r + 45;
p = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}