package o; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Process; import android.telephony.cdma.CdmaCellLocation; import android.text.AndroidCharacter; import android.text.TextUtils; 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.BaseActivity; import com.scb.phone.view.activity.etb.ETBSaleSheetProductListActivity; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import o.C13068fPo; import o.VLM; import org.bouncycastle.crypto.tls.CipherSuite; /* renamed from: o.dMy, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public abstract class AbstractActivityC8497dMy extends BaseActivity implements fPA { /* renamed from: o, reason: collision with root package name */ private volatile C13073fPt f8773o; private static final byte[] $$p = {61, 7, ISO7816.INS_READ_RECORD_STAMPED, 119}; private static final int $$q = CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384; private static int $10 = 0; private static int $11 = 1; private static int t = 0; private static int q = 1; private static int[] l = {-2043356982, -749558712, 917202469, 414541817, 1259447524, 151296386, 1117272154, -410653407, -914992221, 1443113406, -739600290, -1421070209, -1479210802, 447303605, 787131924, 1785393069, -678303533, -1593581778}; private static long k = 6530585202360088903L; private final Object m = new Object(); boolean b = false; private static void aD(int i, int i2, byte b, Object[] objArr) { int i3 = b + 4; int i4 = i2 * 4; int i5 = 104 - i; byte[] bArr = $$p; byte[] bArr2 = new byte[1 - i4]; int i6 = 0 - i4; int i7 = -1; if (bArr == null) { int i8 = i3 + (-i6); i3 = i3; i5 = i8; } while (true) { int i9 = i3 + 1; i7++; bArr2[i7] = (byte) i5; if (i7 == i6) { objArr[0] = new String(bArr2, 0); return; } i3 = i9; i5 += -bArr[i9]; } } public AbstractActivityC8497dMy() { addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: o.dMy.3 private AbstractActivityC8497dMy b; { this.b = this; } @Override // o.InterfaceC17278vUG public final void a(Context context) { AbstractActivityC8497dMy abstractActivityC8497dMy = this.b; if (abstractActivityC8497dMy.b) { return; } abstractActivityC8497dMy.b = true; ((InterfaceC8473dMa) abstractActivityC8497dMy.y_()).b((ETBSaleSheetProductListActivity) abstractActivityC8497dMy); } }); } @Override // o.fPC public final Object y_() { int i = 2 % 2; int i2 = t + 69; q = i2 % 128; int i3 = i2 % 2; Object y_ = j().y_(); int i4 = t + 57; q = i4 % 128; if (i4 % 2 != 0) { return y_; } Object obj = null; obj.hashCode(); throw null; } private C13073fPt j() { if (this.f8773o == null) { synchronized (this.m) { if (this.f8773o == null) { this.f8773o = new C13073fPt(this); } } } return this.f8773o; } @Override // androidx.activity.ComponentActivity, o.GvH public VLM.LWm getDefaultViewModelProviderFactory() { Bundle bundle; int i = 2 % 2; int i2 = q + 67; t = 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 = t + 109; q = i4 % 128; int i5 = i4 % 2; bundle = getIntent().getExtras(); } else { bundle = null; } return a.aBN_(this, bundle, defaultViewModelProviderFactory); } private static void aC(char[] cArr, int i, Object[] objArr) { Object method; int i2 = 2 % 2; C4593bdB c4593bdB = new C4593bdB(); c4593bdB.a = i; int length = cArr.length; long[] jArr = new long[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i3 = $11 + 19; $10 = i3 % 128; if (i3 % 2 != 0) { int i4 = c4593bdB.e; try { Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB}; Object obj = xzZ.y.get(-1229953068); if (obj == null) { Class cls = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 403, 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) (21607 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)))); byte b = (byte) 0; Object[] objArr3 = new Object[1]; aD((byte) 27, b, (byte) (b - 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj); } jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (k - (-6958928035870403642L)); Object[] objArr4 = {c4593bdB, c4593bdB}; Object obj2 = xzZ.y.get(-1143917229); if (obj2 == null) { Class cls2 = (Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 239, 5 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (char) (Process.myTid() >> 22)); byte b2 = (byte) 0; Object[] objArr5 = new Object[1]; aD((byte) 26, b2, (byte) (b2 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } else { int i5 = c4593bdB.e; Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB}; Object obj3 = xzZ.y.get(-1229953068); if (obj3 == null) { Class cls3 = (Class) xzZ.c(TextUtils.indexOf("", "") + 402, (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) (21609 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))); byte b3 = (byte) 0; Object[] objArr7 = new Object[1]; aD((byte) 27, b3, (byte) (b3 - 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1229953068, obj3); } jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (k ^ (-6958928035870403642L)); Object[] objArr8 = {c4593bdB, c4593bdB}; Object obj4 = xzZ.y.get(-1143917229); if (obj4 == null) { Class cls4 = (Class) xzZ.c(Process.getGidForName("") + 239, 5 - Color.green(0), (char) TextUtils.getOffsetBefore("", 0)); byte b4 = (byte) 0; Object[] objArr9 = new Object[1]; aD((byte) 26, b4, (byte) (b4 - 1), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj4); } ((Method) obj4).invoke(null, objArr8); } } char[] cArr2 = new char[length]; c4593bdB.e = 0; while (c4593bdB.e < cArr.length) { int i6 = $10 + 73; $11 = i6 % 128; if (i6 % 2 == 0) { cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; try { Object[] objArr10 = {c4593bdB, c4593bdB}; Object obj5 = xzZ.y.get(-1143917229); if (obj5 == null) { Class cls5 = (Class) xzZ.c(238 - View.MeasureSpec.makeMeasureSpec(0, 0), 4 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) View.getDefaultSize(0, 0)); byte b5 = (byte) 0; Object[] objArr11 = new Object[1]; aD((byte) 26, b5, (byte) (b5 - 1), objArr11); obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class); xzZ.y.put(-1143917229, obj5); } ((Method) obj5).invoke(null, objArr10); int i7 = 78 / 0; } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e]; Object[] objArr12 = {c4593bdB, c4593bdB}; Object obj6 = xzZ.y.get(-1143917229); if (obj6 != null) { method = obj6; } else { Class cls6 = (Class) xzZ.c(238 - View.resolveSizeAndState(0, 0, 0), (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) ((-1) - TextUtils.lastIndexOf("", '0', 0))); byte b6 = (byte) 0; Object[] objArr13 = new Object[1]; aD((byte) 26, b6, (byte) (b6 - 1), objArr13); method = cls6.getMethod((String) objArr13[0], Object.class, Object.class); xzZ.y.put(-1143917229, method); } ((Method) method).invoke(null, objArr12); } } objArr[0] = new String(cArr2); } private static void aB(int[] iArr, int i, Object[] objArr) { int[] iArr2; char c; int i2 = 2 % 2; C4403bZM c4403bZM = new C4403bZM(); char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length * 2]; int[] iArr3 = l; char c2 = '0'; int i3 = 1; int i4 = 0; if (iArr3 != null) { int i5 = $10 + 11; $11 = i5 % 128; int i6 = i5 % 2; int length = iArr3.length; int[] iArr4 = new int[length]; int i7 = 0; while (i7 < length) { try { Object[] objArr2 = new Object[i3]; objArr2[0] = Integer.valueOf(iArr3[i7]); Object obj = xzZ.y.get(729798706); if (obj == null) { obj = ((Class) xzZ.c(TextUtils.indexOf("", c2, 0, 0) + 16, 5 - View.getDefaultSize(0, 0), (char) ((Process.myTid() >> 22) + 58134))).getMethod("i", Integer.TYPE); xzZ.y.put(729798706, obj); } iArr4[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); i7++; c2 = '0'; i3 = 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } iArr3 = iArr4; } int length2 = iArr3.length; int[] iArr5 = new int[length2]; int[] iArr6 = l; if (iArr6 != null) { int length3 = iArr6.length; int[] iArr7 = new int[length3]; int i8 = 0; while (i8 < length3) { Object[] objArr3 = new Object[1]; objArr3[i4] = Integer.valueOf(iArr6[i8]); Object obj2 = xzZ.y.get(729798706); if (obj2 != null) { iArr2 = iArr6; c = 55346; } else { obj2 = ((Class) xzZ.c(15 - (ViewConfiguration.getPressedStateDuration() >> 16), 4 - TextUtils.lastIndexOf("", '0'), (char) (58134 - (ViewConfiguration.getDoubleTapTimeout() >> 16)))).getMethod("i", Integer.TYPE); iArr2 = iArr6; c = 55346; xzZ.y.put(729798706, obj2); } iArr7[i8] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); i8++; iArr6 = iArr2; i4 = 0; } iArr6 = iArr7; } int i9 = i4; System.arraycopy(iArr6, i9, iArr5, i9, length2); c4403bZM.b = i9; while (c4403bZM.b < iArr.length) { int i10 = $10 + 57; $11 = i10 % 128; int i11 = i10 % 2; 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 i12 = 0; for (int i13 = 16; i12 < i13; i13 = 16) { c4403bZM.e ^= iArr5[i12]; Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM}; Object obj3 = xzZ.y.get(-1196964548); if (obj3 == null) { Class cls = (Class) xzZ.c(118 - View.resolveSizeAndState(0, 0, 0), (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) View.MeasureSpec.getMode(0)); byte b = (byte) 0; byte b2 = b; Object[] objArr5 = new Object[1]; aD(b, b2, (byte) (b2 - 1), objArr5); obj3 = cls.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class); xzZ.y.put(-1196964548, obj3); } int intValue = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue(); c4403bZM.e = c4403bZM.a; c4403bZM.a = intValue; i12++; } int i14 = c4403bZM.e; c4403bZM.e = c4403bZM.a; c4403bZM.a = i14; c4403bZM.a ^= iArr5[16]; c4403bZM.e ^= iArr5[17]; int i15 = c4403bZM.e; int i16 = 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[] objArr6 = {c4403bZM, c4403bZM}; Object obj4 = xzZ.y.get(1914371176); if (obj4 == null) { Class cls2 = (Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 99, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) ((-1) - TextUtils.lastIndexOf("", '0'))); byte b3 = (byte) 2; byte b4 = (byte) (b3 - 2); Object[] objArr7 = new Object[1]; aD(b3, b4, (byte) (b4 - 1), objArr7); obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1914371176, obj4); } ((Method) obj4).invoke(null, objArr6); } objArr[0] = new String(cArr2, 0, i); } /* JADX WARN: Code restructure failed: missing block: B:10:0x0069, code lost: if (r4 > 99999) goto L10; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x0066, code lost: if (r4 > 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 r19) { /* Method dump skipped, instructions count: 1178 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8497dMy.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(); Object obj = null; if (baseContext == null) { int i2 = q + 93; t = i2 % 128; int i3 = i2 % 2; Object[] objArr = new Object[1]; aB(new int[]{-1091138978, 1259004365, 469153266, -1956105673, 2102989933, 1428882414, -1647585620, 586514367, 553377328, -2082019148, 2059776787, 1544934644, 970372060, -1432620716}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.remittance_plus_sign).substring(0, 1).codePointAt(0) - 17, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; aC(new char[]{27362, 52747, 8973, 33806, 63768, 21012, 46863, 59449, 19721, 42502, 6939, 31773, 53526, 2579, 28423, 49177, 9502, 40448}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.download_complete).substring(34, 35).codePointAt(0) + 42207, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { int i4 = q + 73; t = i4 % 128; int i5 = i4 % 2; baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(540 - AndroidCharacter.getMirror('0'), Process.getGidForName("") + 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(1378719468); if (obj3 == null) { obj3 = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 487, ExpandableListView.getPackedPositionType(0L) + 5, (char) TextUtils.indexOf("", "", 0))).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(); int i6 = t + 95; q = i6 % 128; if (i6 % 2 != 0) { return; } obj.hashCode(); throw null; } @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 = t + 69; q = i2 % 128; if (i2 % 2 == 0) { getBaseContext(); throw null; } Context baseContext = getBaseContext(); if (baseContext == null) { Object[] objArr = new Object[1]; aB(new int[]{-1091138978, 1259004365, 469153266, -1956105673, 2102989933, 1428882414, -1647585620, 586514367, 553377328, -2082019148, 2059776787, 1544934644, 970372060, -1432620716}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.billpayment_bnpl_coin_more_detail_description_2_3).substring(0, 81).length() - 55, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; aC(new char[]{27362, 52747, 8973, 33806, 63768, 21012, 46863, 59449, 19721, 42502, 6939, 31773, 53526, 2579, 28423, 49177, 9502, 40448}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.auto_kofax_verify_tutorial_dont_desc).substring(0, 2).codePointAt(1) + 42207, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { int i3 = q + 67; t = i3 % 128; int i4 = i3 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c(Color.red(0) + 492, TextUtils.indexOf("", "") + 5, (char) (Process.myPid() >> 22))).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.indexOf((CharSequence) "", '0', 0), (char) View.MeasureSpec.getSize(0))).getMethod("c", Context.class); xzZ.y.put(1633456013, obj2); } ((Method) obj2).invoke(invoke, objArr3); int i5 = t + 71; q = i5 % 128; int i6 = i5 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } super.onPause(); } /* JADX WARN: Code restructure failed: missing block: B:6:0x0065, code lost: if (r2 > 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 r19) { /* Method dump skipped, instructions count: 828 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8497dMy.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 = q + 53; t = i2 % 128; int i3 = i2 % 2; super.onStart(); int i4 = q + 113; t = i4 % 128; int i5 = i4 % 2; } }