what-the-bank/sources/com/scb/phone/view/activity/csent/Hilt_SensitiveCSentActivity...

447 lines
22 KiB
Java

package com.scb.phone.view.activity.csent;
import android.content.Context;
import android.graphics.Color;
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.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 com.scb.phone.view.activity.BaseActivityWithFragment;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.C13068fPo;
import o.C13073fPt;
import o.GuL;
import o.InterfaceC10258dzQ;
import o.InterfaceC17278vUG;
import o.VLM;
import o.fOV;
import o.fPA;
import o.xzZ;
import o.zUI;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes4.dex */
public abstract class Hilt_SensitiveCSentActivity extends BaseActivityWithFragment implements fPA {
private volatile C13073fPt l;
private static final byte[] $$p = {ISO7816.INS_MANAGE_CHANNEL, -18, 54, -52};
private static final int $$q = 41;
private static int $10 = 0;
private static int $11 = 1;
private static int r = 0;
private static int p = 1;
/* renamed from: o, reason: collision with root package name */
private static long f6761o = 2478699427947193587L;
private static int k = 2015661628;
private final Object m = new Object();
boolean b = false;
private static void aC(byte b, byte b2, short s, Object[] objArr) {
byte[] bArr = $$p;
int i = b + 4;
int i2 = s * 2;
int i3 = b2 + 69;
byte[] bArr2 = new byte[1 - i2];
int i4 = 0 - i2;
int i5 = -1;
if (bArr == null) {
i5 = -1;
i3 = (-i) + i3;
i = i;
}
while (true) {
int i6 = i5 + 1;
bArr2[i6] = (byte) i3;
if (i6 == i4) {
objArr[0] = new String(bArr2, 0);
return;
}
int i7 = i + 1;
i5 = i6;
i3 = (-bArr[i7]) + i3;
i = i7;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public Hilt_SensitiveCSentActivity() {
addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: com.scb.phone.view.activity.csent.Hilt_SensitiveCSentActivity.1
private Hilt_SensitiveCSentActivity b;
{
this.b = this;
}
@Override // o.InterfaceC17278vUG
public final void a(Context context) {
Hilt_SensitiveCSentActivity hilt_SensitiveCSentActivity = this.b;
if (hilt_SensitiveCSentActivity.b) {
return;
}
hilt_SensitiveCSentActivity.b = true;
((InterfaceC10258dzQ) hilt_SensitiveCSentActivity.y_()).a((SensitiveCSentActivity) hilt_SensitiveCSentActivity);
}
});
}
@Override // o.fPC
public final Object y_() {
int i = 2 % 2;
int i2 = r + 15;
p = i2 % 128;
int i3 = i2 % 2;
C13073fPt j = j();
if (i3 != 0) {
return j.y_();
}
j.y_();
throw null;
}
private C13073fPt j() {
if (this.l == null) {
synchronized (this.m) {
if (this.l == null) {
this.l = new C13073fPt(this);
}
}
}
return this.l;
}
private static void ay(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(f6761o ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
while (guL.a < a.length) {
int i3 = $11 + 15;
$10 = 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(f6761o)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(208 - KeyEvent.normalizeMetaState(0), TextUtils.getOffsetBefore("", 0) + 5, (char) (1706 - (ViewConfiguration.getDoubleTapTimeout() >> 16)));
byte b = (byte) (-1);
Object[] objArr3 = new Object[1];
aC(b, (byte) (b & ISO7816.INS_INCREASE), (byte) 0, 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(392 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (Process.myTid() >> 22) + 5, (char) ((-16777216) - Color.rgb(0, 0, 0)));
Object[] objArr5 = new Object[1];
aC((byte) (-1), (byte) (-$$p[3]), (byte) 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $10 + 57;
$11 = i6 % 128;
int i7 = i6 % 2;
} 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;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
@Override // androidx.activity.ComponentActivity, o.GvH
public VLM.LWm getDefaultViewModelProviderFactory() {
int i = 2 % 2;
int i2 = r + 5;
p = i2 % 128;
int i3 = i2 % 2;
VLM.LWm defaultViewModelProviderFactory = super.getDefaultViewModelProviderFactory();
C13068fPo.LWm a = ((C13068fPo.Sts) fOV.c(this, C13068fPo.Sts.class)).a();
Bundle bundle = null;
if (getIntent() != null) {
int i4 = r + 89;
p = i4 % 128;
if (i4 % 2 == 0) {
getIntent().getExtras();
throw null;
}
bundle = getIntent().getExtras();
}
return a.aBN_(this, bundle, defaultViewModelProviderFactory);
}
private static void aB(int i, char[] cArr, int i2, boolean z, int i3, Object[] objArr) {
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr2 = new char[i];
zui.d = 0;
while (zui.d < i) {
int i5 = $10 + 13;
$11 = i5 % 128;
int i6 = i5 % 2;
zui.c = cArr[zui.d];
cArr2[zui.d] = (char) (i2 + zui.c);
int i7 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i7]), Integer.valueOf(k)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, 6 - MotionEvent.axisFromString(""), (char) (ViewConfiguration.getScrollDefaultDelay() >> 16));
byte b = (byte) (-1);
byte b2 = (byte) (b + 1);
Object[] objArr3 = new Object[1];
aC(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr2[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 342, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) View.MeasureSpec.getMode(0));
byte b3 = (byte) (-1);
Object[] objArr5 = new Object[1];
aC(b3, (byte) (b3 & 7), (byte) 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
if (i3 > 0) {
zui.a = i3;
char[] cArr3 = new char[i];
System.arraycopy(cArr2, 0, cArr3, 0, i);
System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a);
System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a);
}
if (z) {
int i8 = $11 + 43;
$10 = i8 % 128;
int i9 = i8 % 2;
char[] cArr4 = new char[i];
zui.d = 0;
while (zui.d < i) {
int i10 = $10 + 15;
$11 = i10 % 128;
int i11 = i10 % 2;
cArr4[zui.d] = cArr2[(i - zui.d) - 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(342 - (KeyEvent.getMaxKeyCode() >> 16), 5 - ((Process.getThreadPriority(0) + 20) >> 6), (char) TextUtils.getOffsetAfter("", 0));
byte b4 = (byte) (-1);
Object[] objArr7 = new Object[1];
aC(b4, (byte) (b4 & 7), (byte) 0, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
cArr2 = cArr4;
}
objArr[0] = new String(cArr2);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x007a, code lost:
if (r1 > 99999) goto L10;
*/
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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 r23) {
/*
Method dump skipped, instructions count: 1330
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.csent.Hilt_SensitiveCSentActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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();
Object obj = null;
if (baseContext == null) {
int i2 = p + 21;
r = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ay(new char[]{60855, 4189, 60886, 27807, 41640, 23444, 38382, 58264, 8040, 32616, 20164, 64884, 2230, 29217, 31840, 52900, 13798, 17538, 29620, 56211, 9985, 22360, 26308, 54611, 20627, 10793, 5138, 42751, 24054, 15605}, ((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];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_mortgage_success_subtitle_successfull_request_nstp_hybrid_ntl).substring(30, 31).length() + 17, new char[]{65527, 65529, 65535, 2, 6, 6, 65495, '\n', 4, 65531, '\b', '\b', 11, 65529, 4, 5, 65535, '\n'}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.etb_set_detail_deduction_disclaimer_description).substring(38, 39).length() + CipherSuite.TLS_RSA_WITH_CAMELLIA_256_CBC_SHA, true, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 20, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = r + 123;
p = i4 % 128;
int i5 = i4 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i6 = r + 69;
p = i6 % 128;
try {
if (i6 % 2 == 0) {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.indexOf("", "", 0, 0) + 492, (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) View.combineMeasuredStates(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(1378719468);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - View.getDefaultSize(0, 0), '5' - AndroidCharacter.getMirror('0'), (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
obj.hashCode();
throw null;
}
Object obj4 = xzZ.y.get(125943855);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(Process.getGidForName("") + 493, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).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(488 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), TextUtils.indexOf("", "", 0) + 5, (char) TextUtils.getCapsMode("", 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();
}
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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 + 9;
p = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
getBaseContext();
obj.hashCode();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
int i3 = r + 119;
p = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
ay(new char[]{60855, 4189, 60886, 27807, 41640, 23444, 38382, 58264, 8040, 32616, 20164, 64884, 2230, 29217, 31840, 52900, 13798, 17538, 29620, 56211, 9985, 22360, 26308, 54611, 20627, 10793, 5138, 42751, 24054, 15605}, ((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];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(10) - 93, new char[]{65527, 65529, 65535, 2, 6, 6, 65495, '\n', 4, 65531, '\b', '\b', 11, 65529, 4, 5, 65535, '\n'}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.marker_title).substring(4, 18).length() + 119, true, 14 - (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)), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i5 = p + 91;
r = i5 % 128;
int i6 = i5 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - KeyEvent.normalizeMetaState(0), (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 4, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24))).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((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 486, 4 - MotionEvent.axisFromString(""), (char) TextUtils.getOffsetAfter("", 0))).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();
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0060, code lost:
if (r2 > 99999) goto L6;
*/
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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 r20) {
/*
Method dump skipped, instructions count: 876
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.csent.Hilt_SensitiveCSentActivity.attachBaseContext(android.content.Context):void");
}
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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 + 55;
p = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 == 0) {
int i4 = 62 / 0;
}
}
}