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

496 lines
22 KiB
Java

package o;
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.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
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.MwSearchMarketMallActivity;
import java.lang.reflect.Method;
import o.C13068fPo;
import o.VLM;
/* renamed from: o.dYl, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public abstract class AbstractActivityC8877dYl extends BaseActivity implements fPA {
private volatile C13073fPt m;
private static final byte[] $$g = {55, -34, 73, 110};
private static final int $$h = 151;
private static int $10 = 0;
private static int $11 = 1;
private static int s = 0;
private static int p = 1;
private static long l = -3622479077420010635L;
private static char[] k = {16376, 16372, 16336, 16324, 16335, 16316, 16306, 16319, 16333, 16318, 16334, 16321, 16332, 16308, 16317, 16307, 16305, 16304, 16320, 16315, 16323, 16383, 16379, 16382, 16309, 16314, 16378, 16381, 16327, 16377, 16326, 16313, 16322, 16368, 16380, 16369};
private static int q = 1934311019;
private static boolean r = true;
private static boolean t = true;
/* renamed from: o, reason: collision with root package name */
private final Object f8875o = new Object();
boolean b = false;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002d). 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(byte r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 2
int r0 = 1 - r6
int r7 = r7 + 65
int r8 = r8 * 3
int r8 = 4 - r8
byte[] r1 = o.AbstractActivityC8877dYl.$$g
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L17
r7 = r6
r3 = r8
r4 = r2
goto L2d
L17:
r3 = r2
L18:
byte r4 = (byte) r7
r0[r3] = r4
if (r3 != r6) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L25:
r4 = r1[r8]
int r3 = r3 + 1
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2d:
int r8 = -r8
int r3 = r3 + 1
int r7 = r7 + r8
r8 = r3
r3 = r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8877dYl.az(byte, byte, byte, java.lang.Object[]):void");
}
public AbstractActivityC8877dYl() {
addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: o.dYl.5
private AbstractActivityC8877dYl a;
{
this.a = this;
}
@Override // o.InterfaceC17278vUG
public final void a(Context context) {
AbstractActivityC8877dYl abstractActivityC8877dYl = this.a;
if (abstractActivityC8877dYl.b) {
return;
}
abstractActivityC8877dYl.b = true;
((InterfaceC11165eaG) abstractActivityC8877dYl.y_()).a((MwSearchMarketMallActivity) abstractActivityC8877dYl);
}
});
}
@Override // o.fPC
public final Object y_() {
int i = 2 % 2;
int i2 = s + 103;
p = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
h().y_();
obj.hashCode();
throw null;
}
Object y_ = h().y_();
int i3 = s + 103;
p = i3 % 128;
if (i3 % 2 != 0) {
return y_;
}
throw null;
}
private C13073fPt h() {
if (this.m == null) {
synchronized (this.f8875o) {
if (this.m == null) {
this.m = new C13073fPt(this);
}
}
}
return this.m;
}
private static void ax(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(l ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
while (guL.a < a.length) {
int i3 = $10 + 115;
$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(l)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 207, (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) (1706 - Color.blue(0)));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
az(b, (byte) (b | 54), b, 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();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 392, 5 - Color.argb(0, 0, 0, 0), (char) View.MeasureSpec.makeMeasureSpec(0, 0));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
az(b2, (byte) (b2 | 56), b2, 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;
}
}
String str = new String(a, 4, a.length - 4);
int i6 = $11 + 39;
$10 = i6 % 128;
int i7 = i6 % 2;
objArr[0] = str;
}
@Override // androidx.activity.ComponentActivity, o.GvH
public VLM.LWm getDefaultViewModelProviderFactory() {
Bundle bundle;
int i = 2 % 2;
VLM.LWm defaultViewModelProviderFactory = super.getDefaultViewModelProviderFactory();
C13068fPo.LWm a = ((C13068fPo.Sts) fOV.c(this, C13068fPo.Sts.class)).a();
if (getIntent() != null) {
bundle = getIntent().getExtras();
int i2 = s + 123;
p = i2 % 128;
int i3 = i2 % 2;
} else {
int i4 = s + 59;
p = i4 % 128;
int i5 = i4 % 2;
bundle = null;
}
return a.aBN_(this, bundle, defaultViewModelProviderFactory);
}
private static void ay(int[] iArr, char[] cArr, int i, byte[] bArr, Object[] objArr) {
int i2;
int i3 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr2 = k;
long j = 0;
char c = '0';
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i4 = 0;
while (i4 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i4])};
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtime() > j ? 1 : (SystemClock.elapsedRealtime() == j ? 0 : -1)) + 336, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (AndroidCharacter.getMirror(c) - '0'));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
az(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr3[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i4++;
j = 0;
c = '0';
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i5 = $11 + 19;
$10 = i5 % 128;
int i6 = i5 % 2;
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(q)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(284 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 5 - View.resolveSize(0, 0), (char) (View.resolveSizeAndState(0, 0, 0) + 39813));
byte b3 = (byte) 0;
Object[] objArr5 = new Object[1];
az(b3, (byte) (b3 | 57), b3, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (t) {
c3614bBe.c = bArr.length;
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i7 = $11 + 7;
$10 = i7 % 128;
if (i7 % 2 != 0) {
cArr4[c3614bBe.a] = (char) (cArr2[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(39 - TextUtils.indexOf((CharSequence) "", '0', 0), Drawable.resolveOpacity(0, 0) + 5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
} else {
cArr4[c3614bBe.a] = (char) (cArr2[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 40, TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0)))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
}
objArr[0] = new String(cArr4);
return;
}
if (r) {
c3614bBe.c = cArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr2[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
Object[] objArr8 = {c3614bBe, c3614bBe};
Object obj5 = xzZ.y.get(1779759091);
if (obj5 == null) {
obj5 = ((Class) xzZ.c(TextUtils.getTrimmedLength("") + 40, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (Process.myPid() >> 22))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj5);
}
((Method) obj5).invoke(null, objArr8);
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i8 = $11 + 61;
$10 = i8 % 128;
if (i8 % 2 != 0) {
cArr6[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c >> 1) * c3614bBe.a] / i] >> intValue);
i2 = c3614bBe.a - 1;
} else {
cArr6[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
i2 = c3614bBe.a + 1;
}
c3614bBe.a = i2;
}
objArr[0] = new String(cArr6);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x00ab, code lost:
if (r1 > 99999) goto L10;
*/
@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 r15) {
/*
Method dump skipped, instructions count: 1030
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8877dYl.onCreate(android.os.Bundle):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 onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i2 = p + 85;
s = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ax(new char[]{34216, 34249, 31604, 53296, 52518, 39702, 31419, 31671, 10607, 11471, 53182, 54451, 56473, 32638, 25330, 8283, 32785, 51765, 37150, 32164, 14206, 9943, 50598, 52956, 55988, 29038, 30920, 6680, 36409, 52234}, TextUtils.lastIndexOf("", '0', 0, 0) + 1, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{38399, 38300, 55020, 32179, 8363, 30349, 41377, 41133, 14642, 33104, 8739, 4038, 52447, 53990, 36707, 64262, 36964, 26543, 31891, 42686, 10032, 35656}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = p + 13;
s = i4 % 128;
int i5 = i4 % 2;
baseContext = baseContext.getApplicationContext();
int i6 = p + 9;
s = i6 % 128;
int i7 = i6 % 2;
}
if (baseContext != null) {
int i8 = s + 23;
p = i8 % 128;
int i9 = i8 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 492, 5 - (Process.myPid() >> 22), (char) (ViewConfiguration.getKeyRepeatDelay() >> 16))).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((ViewConfiguration.getScrollBarSize() >> 8) + 487, Drawable.resolveOpacity(0, 0) + 5, (char) KeyEvent.getDeadChar(0, 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();
int i10 = s + 91;
p = i10 % 128;
int i11 = i10 % 2;
}
@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;
Context baseContext = getBaseContext();
Object obj = null;
if (baseContext == null) {
int i2 = s + 33;
p = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ax(new char[]{34216, 34249, 31604, 53296, 52518, 39702, 31419, 31671, 10607, 11471, 53182, 54451, 56473, 32638, 25330, 8283, 32785, 51765, 37150, 32164, 14206, 9943, 50598, 52956, 55988, 29038, 30920, 6680, 36409, 52234}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{38399, 38300, 55020, 32179, 8363, 30349, 41377, 41133, 14642, 33104, 8739, 4038, 52447, 53990, 36707, 64262, 36964, 26543, 31891, 42686, 10032, 35656}, Process.myPid() >> 22, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i4 = p + 41;
s = i4 % 128;
int i5 = i4 % 2;
}
if (baseContext != null) {
int i6 = p + 43;
s = i6 % 128;
int i7 = i6 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i8 = s + 7;
p = i8 % 128;
int i9 = i8 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 492, TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, (char) Gravity.getAbsoluteGravity(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1633456013);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(KeyEvent.keyCodeFromString("") + 487, 5 - View.MeasureSpec.getSize(0), (char) (ViewConfiguration.getKeyRepeatDelay() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i10 = s + 105;
p = i10 % 128;
if (i10 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x005f, code lost:
if (r1 > 99999) goto L6;
*/
@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: 722
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8877dYl.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 = s + 67;
p = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = s + 59;
p = i4 % 128;
int i5 = i4 % 2;
}
}