what-the-bank/sources/com/scb/phone/view/activity/common/Hilt_ThirdPartyWebActivity....

499 lines
23 KiB
Java

package com.scb.phone.view.activity.common;
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.text.TextUtils;
import android.util.TypedValue;
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.R;
import com.scb.phone.view.activity.BaseActivity;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C13073fPt;
import o.GuL;
import o.InterfaceC10242dzA;
import o.InterfaceC17278vUG;
import o.fPA;
import o.jTb;
import o.xzZ;
/* loaded from: classes4.dex */
public abstract class Hilt_ThirdPartyWebActivity extends BaseActivity implements fPA {
private volatile C13073fPt l;
private static final byte[] $$g = {ISO7816.INS_CHANGE_CHV, ISOFileInfo.A1, ISO7816.INS_ENVELOPE, -12};
private static final int $$h = 92;
private static int $10 = 0;
private static int $11 = 1;
private static int p = 0;
private static int r = 1;
private static long m = 8129943748300994474L;
private static char k = 39673;
private static char t = 21296;
private static char q = 50505;
private static char s = 34756;
/* renamed from: o, reason: collision with root package name */
private final Object f6747o = 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:0x0027). 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, short r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.$$g
int r7 = r7 * 2
int r7 = 4 - r7
int r6 = r6 + 66
int r8 = r8 * 4
int r8 = 1 - r8
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L15
r3 = r6
r6 = r8
r5 = r2
goto L27
L15:
r3 = r2
L16:
byte r4 = (byte) r6
int r5 = r3 + 1
r1[r3] = r4
if (r5 != r8) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
r3 = r0[r7]
L27:
int r7 = r7 + 1
int r6 = r6 + r3
r3 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.az(short, byte, short, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public Hilt_ThirdPartyWebActivity() {
addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.5
private Hilt_ThirdPartyWebActivity d;
{
this.d = this;
}
@Override // o.InterfaceC17278vUG
public final void a(Context context) {
Hilt_ThirdPartyWebActivity hilt_ThirdPartyWebActivity = this.d;
if (hilt_ThirdPartyWebActivity.b) {
return;
}
hilt_ThirdPartyWebActivity.b = true;
((InterfaceC10242dzA) hilt_ThirdPartyWebActivity.y_()).e((ThirdPartyWebActivity) hilt_ThirdPartyWebActivity);
}
});
}
@Override // o.fPC
public final Object y_() {
int i = 2 % 2;
int i2 = r + 101;
p = i2 % 128;
if (i2 % 2 == 0) {
return h().y_();
}
int i3 = 2 / 0;
return h().y_();
}
private C13073fPt h() {
if (this.l == null) {
synchronized (this.f6747o) {
if (this.l == null) {
this.l = new C13073fPt(this);
}
}
}
return this.l;
}
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;
int i3 = $10 + 39;
$11 = i3 % 128;
int i4 = i3 % 2;
while (guL.a < a.length) {
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(Process.getGidForName("") + 209, View.MeasureSpec.getMode(0) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0') + 1707));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
az((byte) 53, b, 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((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 392, 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (1 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1))));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
az((byte) 55, b2, b2, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $10 + 55;
$11 = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 4 % 5;
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x003d, code lost:
if (getIntent() != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0026, code lost:
if (getIntent() != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0048, code lost:
r3 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x003f, code lost:
r3 = getIntent().getExtras();
*/
@Override // androidx.activity.ComponentActivity, o.GvH
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public o.VLM.LWm getDefaultViewModelProviderFactory() {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.p
int r1 = r1 + 39
int r2 = r1 % 128
com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.r = r2
int r1 = r1 % r0
if (r1 != 0) goto L29
o.VLM$LWm r1 = super.getDefaultViewModelProviderFactory()
java.lang.Class<o.fPo$Sts> r2 = o.C13068fPo.Sts.class
java.lang.Object r2 = o.fOV.c(r5, r2)
o.fPo$Sts r2 = (o.C13068fPo.Sts) r2
o.fPo$LWm r2 = r2.a()
android.content.Intent r3 = r5.getIntent()
r4 = 9
int r4 = r4 / 0
if (r3 == 0) goto L48
goto L3f
L29:
o.VLM$LWm r1 = super.getDefaultViewModelProviderFactory()
java.lang.Class<o.fPo$Sts> r2 = o.C13068fPo.Sts.class
java.lang.Object r2 = o.fOV.c(r5, r2)
o.fPo$Sts r2 = (o.C13068fPo.Sts) r2
o.fPo$LWm r2 = r2.a()
android.content.Intent r3 = r5.getIntent()
if (r3 == 0) goto L48
L3f:
android.content.Intent r3 = r5.getIntent()
android.os.Bundle r3 = r3.getExtras()
goto L49
L48:
r3 = 0
L49:
o.VLM$LWm r1 = r2.aBN_(r5, r3, r1)
int r2 = com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.r
int r2 = r2 + 109
int r3 = r2 % 128
com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.p = r3
int r2 = r2 % r0
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.getDefaultViewModelProviderFactory():o.VLM$LWm");
}
private static void ay(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i3 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
int i4 = $10 + 113;
$11 = i4 % 128;
int i5 = i4 % 2;
while (jtb.b < cArr.length) {
int i6 = $10 + 39;
$11 = i6 % 128;
int i7 = i6 % 2;
cArr3[i3] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i8 = 58224;
int i9 = i3;
while (i9 < 16) {
int i10 = $10 + 75;
$11 = i10 % 128;
int i11 = i10 % 2;
char c = cArr3[1];
char c2 = cArr3[i3];
char[] cArr4 = cArr3;
try {
Object[] objArr2 = {Integer.valueOf(c), Integer.valueOf((c2 + i8) ^ ((c2 << 4) + ((char) (q ^ 41718355337583039L)))), Integer.valueOf(c2 >>> 5), Integer.valueOf(s)};
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.getOffsetBefore("", 0) + 412, 5 - TextUtils.getOffsetAfter("", 0), (char) ((-1) - TextUtils.indexOf((CharSequence) "", '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, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr4[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i8) ^ ((charValue << 4) + ((char) (k ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(t)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 412, 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((-16777216) - Color.rgb(0, 0, 0)));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
az(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i8 -= 40503;
i9++;
cArr3 = cArr4;
i3 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getWindowTouchSlop() >> 8) + 98, 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) View.MeasureSpec.getSize(0));
byte b5 = (byte) 1;
byte b6 = (byte) (b5 - 1);
Object[] objArr7 = new Object[1];
az(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
cArr3 = cArr5;
i3 = 0;
}
objArr[0] = new String(cArr2, 0, i);
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x009b, code lost:
if (r2 > 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
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onCreate(android.os.Bundle r22) {
/*
Method dump skipped, instructions count: 1188
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.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) {
Object[] objArr = new Object[1];
ay(new char[]{60011, 47623, 17109, 12792, 63329, 13292, 57837, 31306, 41017, 48788, 49111, 31279, 6207, 35692, 9629, 35343, 28539, 30670, 10883, 47312, 50983, 47827, 45140, 57628, 17303, 4887}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 13, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{36704, 36611, 35189, 9973, 589, 11466, 24021, 9063, 12497, 59090, 7559, 58168, 61624, 42648, 56755, 41764, 45183, 26213, 40287, 25592, 28767, 9822}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.landing_percentage).substring(0, 6).length() - 5, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = p + 37;
r = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = p + 103;
r = i4 % 128;
try {
if (i4 % 2 == 0) {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 491, TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) (ViewConfiguration.getFadingEdgeLength() >> 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.getPressedStateDuration() >> 16) + 487, Color.green(0) + 5, (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
throw null;
}
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(492 - Drawable.resolveOpacity(0, 0), Color.blue(0) + 5, (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj4 = xzZ.y.get(1378719468);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(TextUtils.getOffsetBefore("", 0) + 487, (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (TextUtils.lastIndexOf("", '0') + 1))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj4);
}
((Method) obj4).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.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 = p + 75;
r = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ay(new char[]{60011, 47623, 17109, 12792, 63329, 13292, 57837, 31306, 41017, 48788, 49111, 31279, 6207, 35692, 9629, 35343, 28539, 30670, 10883, 47312, 50983, 47827, 45140, 57628, 17303, 4887}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_external_authentication_intro).substring(109, 110).length() + 25, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{36704, 36611, 35189, 9973, 589, 11466, 24021, 9063, 12497, 59090, 7559, 58168, 61624, 42648, 56755, 41764, 45183, 26213, 40287, 25592, 28767, 9822}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_external_instruction_main_title).substring(21, 22).codePointAt(0) - 31, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = p + 89;
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(492 - (KeyEvent.getMaxKeyCode() >> 16), TextUtils.indexOf("", "", 0) + 5, (char) ExpandableListView.getPackedPositionGroup(0L))).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(Color.red(0) + 487, 4 - TextUtils.lastIndexOf("", '0', 0), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).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();
int i6 = r + 59;
p = i6 % 128;
if (i6 % 2 != 0) {
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0063, 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 r17) {
/*
Method dump skipped, instructions count: 840
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.common.Hilt_ThirdPartyWebActivity.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 = r + 61;
p = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
throw null;
}
}
}