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

473 lines
22 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
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 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.deeplink.BaseDeepLinkActivity;
import com.scb.phone.view.activity.deeplink.CardActivationDeepLinkActivity;
import java.lang.reflect.Method;
/* renamed from: o.dDE, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public abstract class AbstractActivityC8168dDE extends BaseDeepLinkActivity {
private boolean b = false;
private static final byte[] $$H = {30, 79, -15, -75};
private static final int $$I = 33;
private static int $10 = 0;
private static int $11 = 1;
private static int l = 0;
private static int m = 1;
/* renamed from: o, reason: collision with root package name */
private static int[] f8691o = {-696383722, -1589530515, 1322480489, -398003510, 504618624, 1364248675, 838733937, 1475562348, 1162461845, 538232504, 161356218, 1453665165, 1237249919, -1031138898, 1232672578, -574705050, -1684131952, 1978551029};
private static long k = 8621597897996443436L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002a). 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 aP(int r6, int r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 3
int r6 = 4 - r6
byte[] r0 = o.AbstractActivityC8168dDE.$$H
int r7 = r7 * 4
int r1 = r7 + 1
int r8 = 104 - r8
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L15
r8 = r6
r3 = r7
r4 = r2
goto L2a
L15:
r3 = r2
r5 = r8
r8 = r6
r6 = r5
L19:
byte r4 = (byte) r6
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L28:
r3 = r0[r8]
L2a:
int r3 = -r3
int r6 = r6 + r3
int r8 = r8 + 1
r3 = r4
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8168dDE.aP(int, int, short, java.lang.Object[]):void");
}
public AbstractActivityC8168dDE() {
addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: o.dDE.1
private AbstractActivityC8168dDE b;
{
this.b = this;
}
@Override // o.InterfaceC17278vUG
public final void a(Context context) {
this.b.U_();
}
});
}
@Override // o.AbstractActivityC8166dDA
protected final void U_() {
int i = 2 % 2;
if (!this.b) {
int i2 = l + 7;
m = i2 % 128;
if (i2 % 2 == 0) {
this.b = false;
} else {
this.b = true;
}
((InterfaceC8142dCd) y_()).b((CardActivationDeepLinkActivity) this);
}
int i3 = m + 51;
l = i3 % 128;
int i4 = i3 % 2;
}
/* JADX WARN: Removed duplicated region for block: B:22:0x0186 */
/* JADX WARN: Removed duplicated region for block: B:24:0x0187 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aO(char[] r19, int r20, java.lang.Object[] r21) {
/*
Method dump skipped, instructions count: 409
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8168dDE.aO(char[], int, java.lang.Object[]):void");
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x009d, code lost:
if (r2 > 99999) goto L11;
*/
@Override // com.scb.phone.view.activity.deeplink.BaseDeepLinkActivity, o.AbstractActivityC8166dDA, 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 r17) {
/*
Method dump skipped, instructions count: 1214
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8168dDE.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.deeplink.BaseDeepLinkActivity, o.AbstractActivityC8166dDA, 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 = l + 19;
m = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
Object obj = null;
if (baseContext == null) {
int i4 = l + 75;
m = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
aO(new char[]{3211, 56557, 44124, 32163, 19745, 7822, 61176, 48667, 36803, 24363, 10368, 63559, 51271, 39388, 26912, 15012, 2572, 55930, 44028, 31576, 17546, 5151, 58782, 46560, 34131, 22223}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 53319, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aN(new int[]{-1723881007, -713568186, -155835032, -429386562, -23959347, 1514411556, -9577041, -523204028, 299470123, -1136657336}, 17 - TextUtils.indexOf((CharSequence) "", '0'), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i6 = m + 95;
l = i6 % 128;
if (i6 % 2 != 0) {
baseContext.getApplicationContext();
obj.hashCode();
throw null;
}
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i7 = m + 79;
l = i7 % 128;
try {
if (i7 % 2 != 0) {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(493 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), 5 - Color.green(0), (char) (TextUtils.indexOf((CharSequence) "", '0', 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(487 - View.MeasureSpec.getMode(0), (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
int i8 = 71 / 0;
} else {
Object obj4 = xzZ.y.get(125943855);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(492 - (ViewConfiguration.getScrollDefaultDelay() >> 16), 5 - Gravity.getAbsoluteGravity(0, 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod("a", null);
xzZ.y.put(125943855, obj4);
}
Object invoke2 = ((Method) obj4).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj5 = xzZ.y.get(1378719468);
if (obj5 == null) {
obj5 = ((Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 487, 5 - KeyEvent.keyCodeFromString(""), (char) Color.argb(0, 0, 0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj5);
}
((Method) obj5).invoke(invoke2, objArr4);
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
private static void aN(int[] iArr, int i, Object[] objArr) {
int[] iArr2;
char c;
int i2 = 2;
int i3 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr3 = f8691o;
int i4 = 1;
int i5 = 0;
if (iArr3 != null) {
int length = iArr3.length;
int[] iArr4 = new int[length];
int i6 = 0;
while (i6 < length) {
int i7 = $11 + 35;
$10 = i7 % 128;
if (i7 % i2 != 0) {
try {
Object[] objArr2 = new Object[i4];
objArr2[0] = Integer.valueOf(iArr3[i6]);
Object obj = xzZ.y.get(729798706);
if (obj == null) {
obj = ((Class) xzZ.c(15 - (ViewConfiguration.getScrollBarSize() >> 8), 6 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) ((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)) + 58134))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj);
}
iArr4[i6] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
Object[] objArr3 = {Integer.valueOf(iArr3[i6])};
Object obj2 = xzZ.y.get(729798706);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(15 - TextUtils.getOffsetBefore("", 0), (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (58134 - TextUtils.indexOf("", "")))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj2);
}
iArr4[i6] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i6++;
}
i2 = 2;
i4 = 1;
}
iArr3 = iArr4;
}
int length2 = iArr3.length;
int[] iArr5 = new int[length2];
int[] iArr6 = f8691o;
if (iArr6 != null) {
int length3 = iArr6.length;
int[] iArr7 = new int[length3];
int i8 = 0;
while (i8 < length3) {
int i9 = $10 + 121;
$11 = i9 % 128;
int i10 = i9 % 2;
Object[] objArr4 = new Object[1];
objArr4[i5] = Integer.valueOf(iArr6[i8]);
Object obj3 = xzZ.y.get(729798706);
if (obj3 != null) {
iArr2 = iArr6;
c = 55346;
} else {
iArr2 = iArr6;
Method method = ((Class) xzZ.c(15 - View.MeasureSpec.makeMeasureSpec(0, 0), 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) (58134 - TextUtils.indexOf("", "", 0)))).getMethod("i", Integer.TYPE);
c = 55346;
xzZ.y.put(729798706, method);
obj3 = method;
}
iArr7[i8] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
i8++;
iArr6 = iArr2;
i5 = 0;
}
iArr6 = iArr7;
}
int i11 = i5;
System.arraycopy(iArr6, i11, iArr5, i11, length2);
c4403bZM.b = i11;
int i12 = $11 + 65;
$10 = i12 % 128;
int i13 = i12 % 2;
while (c4403bZM.b < iArr.length) {
cArr[0] = (char) (iArr[c4403bZM.b] >> 16);
cArr[1] = (char) iArr[c4403bZM.b];
cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16);
cArr[3] = (char) iArr[c4403bZM.b + 1];
c4403bZM.e = (cArr[0] << 16) + cArr[1];
c4403bZM.a = (cArr[2] << 16) + cArr[3];
C4403bZM.d(iArr5);
int i14 = 0;
for (int i15 = 16; i14 < i15; i15 = 16) {
c4403bZM.e ^= iArr5[i14];
try {
Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(-1196964548);
if (obj4 == null) {
Class cls = (Class) xzZ.c(((Process.getThreadPriority(0) + 20) >> 6) + 118, Color.argb(0, 0, 0, 0) + 5, (char) Drawable.resolveOpacity(0, 0));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr6 = new Object[1];
aP(b, b2, b2, objArr6);
obj4 = cls.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i14++;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
int i16 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i16;
c4403bZM.a ^= iArr5[16];
c4403bZM.e ^= iArr5[17];
int i17 = c4403bZM.e;
int i18 = c4403bZM.a;
cArr[0] = (char) (c4403bZM.e >>> 16);
cArr[1] = (char) c4403bZM.e;
cArr[2] = (char) (c4403bZM.a >>> 16);
cArr[3] = (char) c4403bZM.a;
C4403bZM.d(iArr5);
cArr2[c4403bZM.b * 2] = cArr[0];
cArr2[(c4403bZM.b * 2) + 1] = cArr[1];
cArr2[(c4403bZM.b * 2) + 2] = cArr[2];
cArr2[(c4403bZM.b * 2) + 3] = cArr[3];
Object[] objArr7 = {c4403bZM, c4403bZM};
Object obj5 = xzZ.y.get(1914371176);
if (obj5 == null) {
Class cls2 = (Class) xzZ.c(98 - Color.argb(0, 0, 0, 0), TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr8 = new Object[1];
aP(b3, b4, (byte) (b4 + 2), objArr8);
obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj5);
}
((Method) obj5).invoke(null, objArr7);
int i19 = $11 + 17;
$10 = i19 % 128;
int i20 = i19 % 2;
}
objArr[0] = new String(cArr2, 0, i);
}
@Override // com.scb.phone.view.activity.deeplink.BaseDeepLinkActivity, o.AbstractActivityC8166dDA, 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 = l + 47;
m = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aO(new char[]{3211, 56557, 44124, 32163, 19745, 7822, 61176, 48667, 36803, 24363, 10368, 63559, 51271, 39388, 26912, 15012, 2572, 55930, 44028, 31576, 17546, 5151, 58782, 46560, 34131, 22223}, 53353 - Color.green(0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aN(new int[]{-1723881007, -713568186, -155835032, -429386562, -23959347, 1514411556, -9577041, -523204028, 299470123, -1136657336}, TextUtils.getOffsetBefore("", 0) + 18, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i3 = m + 15;
l = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - (ViewConfiguration.getJumpTapTimeout() >> 16), TextUtils.indexOf((CharSequence) "", '0') + 6, (char) (KeyEvent.getMaxKeyCode() >> 16))).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((ViewConfiguration.getDoubleTapTimeout() >> 16) + 487, 5 - KeyEvent.keyCodeFromString(""), (char) (ViewConfiguration.getMaximumFlingVelocity() >> 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 i5 = m + 1;
l = i5 % 128;
if (i5 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
getBaseContext();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x006d, code lost:
if (r1 > 99999) goto L6;
*/
@Override // com.scb.phone.view.activity.deeplink.BaseDeepLinkActivity, o.AbstractActivityC8166dDA, 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 r19) {
/*
Method dump skipped, instructions count: 850
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8168dDE.attachBaseContext(android.content.Context):void");
}
@Override // com.scb.phone.view.activity.deeplink.BaseDeepLinkActivity, o.AbstractActivityC8166dDA, 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 = l + 49;
m = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = l + 9;
m = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}