package com.scb.phone.view.activity.easycash; import android.content.Context; import android.graphics.Color; import android.graphics.ImageFormat; import android.graphics.drawable.Drawable; import android.media.AudioTrack; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.view.KeyEvent; import android.view.MotionEvent; 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.deeplink.BaseDeepLinkActivity; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import o.IRS; import o.InterfaceC17278vUG; import o.InterfaceC8400dJz; import o.jTb; import o.xzZ; /* loaded from: classes4.dex */ public abstract class Hilt_EasycashReferralSendDfwDeepLinkActivity extends BaseDeepLinkActivity { private boolean b = false; private static final byte[] $$p = {9, -71, 104, 33}; private static final int $$q = 255; private static int $10 = 0; private static int $11 = 1; private static int q = 0; private static int t = 1; private static char m = 50886; private static char k = 45608; /* renamed from: o, reason: collision with root package name */ private static char f7083o = 37921; private static char l = 16172; private static char[] p = {49111, 49088, 49110, 49118, 49114, 49105, 49033, 49091, 49119, 49025, 49090, 49052, 49095, 49115, 49117, 49089, 49104, 49112, 49093, 49116, 49094, 49108, 48169, 49106, 49053}; private static char s = 35372; /* 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:0x002b). 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 aN(byte r6, int r7, int r8, java.lang.Object[] r9) { /* int r6 = r6 * 2 int r6 = 1 - r6 int r7 = r7 + 66 byte[] r0 = com.scb.phone.view.activity.easycash.Hilt_EasycashReferralSendDfwDeepLinkActivity.$$p int r8 = r8 * 3 int r8 = 4 - r8 byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L15 r7 = r6 r3 = r8 r4 = r2 goto L2b L15: r3 = r2 L16: byte r4 = (byte) r7 r1[r3] = r4 int r3 = r3 + 1 if (r3 != r6) goto L25 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L25: r4 = r0[r8] r5 = r3 r3 = r8 r8 = r4 r4 = r5 L2b: int r8 = -r8 int r7 = r7 + r8 int r8 = r3 + 1 r3 = r4 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.easycash.Hilt_EasycashReferralSendDfwDeepLinkActivity.aN(byte, int, int, java.lang.Object[]):void"); } /* JADX INFO: Access modifiers changed from: package-private */ public Hilt_EasycashReferralSendDfwDeepLinkActivity() { addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: com.scb.phone.view.activity.easycash.Hilt_EasycashReferralSendDfwDeepLinkActivity.4 private Hilt_EasycashReferralSendDfwDeepLinkActivity a; { this.a = this; } @Override // o.InterfaceC17278vUG public final void a(Context context) { this.a.U_(); } }); } @Override // o.AbstractActivityC8166dDA public final void U_() { int i = 2 % 2; int i2 = t + 95; q = i2 % 128; Object obj = null; if (i2 % 2 != 0) { obj.hashCode(); throw null; } if (!this.b) { this.b = true; ((InterfaceC8400dJz) y_()).d((EasycashReferralSendDfwDeepLinkActivity) this); int i3 = q + 107; t = i3 % 128; if (i3 % 2 == 0) { int i4 = 4 % 2; } } int i5 = q + 89; t = i5 % 128; if (i5 % 2 != 0) { return; } obj.hashCode(); throw null; } private static void aF(char[] cArr, int i, Object[] objArr) { int i2; int i3 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; int i4 = 0; jtb.b = 0; char[] cArr3 = new char[2]; int i5 = $11 + 79; $10 = i5 % 128; if (i5 % 2 != 0) { int i6 = 4 / 4; } while (jtb.b < cArr.length) { int i7 = $11 + 111; $10 = i7 % 128; int i8 = 58224; if (i7 % 2 != 0) { cArr3[1] = cArr[jtb.b]; cArr3[i4] = cArr[jtb.b / i4]; i2 = 1; } else { cArr3[i4] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; i2 = i4; } while (i2 < 16) { char c = cArr3[1]; char c2 = cArr3[i4]; char[] cArr4 = cArr3; try { Object[] objArr2 = {Integer.valueOf(c), Integer.valueOf((c2 + i8) ^ ((c2 << 4) + ((char) (f7083o ^ 41718355337583039L)))), Integer.valueOf(c2 >>> 5), Integer.valueOf(l)}; Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 411, 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) KeyEvent.keyCodeFromString("")); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; aN(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) (m ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(k)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(412 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 4, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24)); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr5 = new Object[1]; aN(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; i2++; int i9 = $11 + 79; $10 = i9 % 128; if (i9 % 2 != 0) { int i10 = 4 % 4; } cArr3 = cArr4; i4 = 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(97 - Process.getGidForName(""), (Process.myPid() >> 22) + 5, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0))); byte b5 = (byte) 0; byte b6 = (byte) (b5 + 1); Object[] objArr7 = new Object[1]; aN(b5, b6, (byte) (b6 - 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); cArr3 = cArr5; i4 = 0; } objArr[0] = new String(cArr2, 0, i); } /* JADX WARN: Code restructure failed: missing block: B:6:0x00ab, code lost: if (r2 > 99999) goto L10; */ @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: 1142 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.easycash.Hilt_EasycashReferralSendDfwDeepLinkActivity.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 = q + 43; t = i2 % 128; int i3 = i2 % 2; Context baseContext = getBaseContext(); Object obj = null; if (baseContext == null) { Object[] objArr = new Object[1]; aF(new char[]{38872, 7586, 4199, 24845, 47288, 53675, 52340, 50562, 8395, 44973, 55306, 59395, 21124, 1563, 64605, 19248, 24881, 17392, 21036, 63107, 56400, 60538, 29898, 47835, 31867, 46513}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 8, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; aF(new char[]{16076, 29773, 30415, 33736, 46461, 37929, 16947, 7633, 21917, 530, 43511, 8633, 15812, 36826, 64605, 19248, 25943, 21240}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 16, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { int i4 = t + 27; q = i4 % 128; if (i4 % 2 != 0) { baseContext.getApplicationContext(); obj.hashCode(); throw null; } baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(491 - TextUtils.indexOf((CharSequence) "", '0', 0), ImageFormat.getBitsPerPixel(0) + 6, (char) (ViewConfiguration.getTapTimeout() >> 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(487 - TextUtils.indexOf("", "", 0), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) TextUtils.indexOf("", ""))).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(); } @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; Context baseContext = getBaseContext(); Object obj = null; if (baseContext == null) { Object[] objArr = new Object[1]; aF(new char[]{38872, 7586, 4199, 24845, 47288, 53675, 52340, 50562, 8395, 44973, 55306, 59395, 21124, 1563, 64605, 19248, 24881, 17392, 21036, 63107, 56400, 60538, 29898, 47835, 31867, 46513}, 26 - (ViewConfiguration.getScrollDefaultDelay() >> 16), objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; aF(new char[]{16076, 29773, 30415, 33736, 46461, 37929, 16947, 7633, 21917, 530, 43511, 8633, 15812, 36826, 64605, 19248, 25943, 21240}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.deposit_export_date_format).substring(0, 5).length() + 13, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { int i2 = t + 125; q = i2 % 128; if (i2 % 2 != 0) { baseContext.getApplicationContext(); obj.hashCode(); throw null; } baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { int i3 = t + 63; q = i3 % 128; int i4 = i3 % 2; try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 492, (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) ExpandableListView.getPackedPositionGroup(0L))).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.getEdgeSlop() >> 16) + 487, (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) ((-16777216) - Color.rgb(0, 0, 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(); } private static void aG(char[] cArr, byte b, int i, Object[] objArr) { int i2; Object obj; int i3 = 2; int i4 = 2 % 2; IRS irs = new IRS(); char[] cArr2 = p; Object obj2 = null; if (cArr2 != null) { int length = cArr2.length; char[] cArr3 = new char[length]; int i5 = 0; while (i5 < length) { int i6 = $11 + 43; $10 = i6 % 128; int i7 = i6 % i3; try { Object[] objArr2 = {Integer.valueOf(cArr2[i5])}; Object obj3 = xzZ.y.get(-1987398494); if (obj3 == null) { Class cls = (Class) xzZ.c(298 - Color.blue(0), 5 - Color.blue(0), (char) (KeyEvent.getMaxKeyCode() >> 16)); byte b2 = (byte) 0; Object[] objArr3 = new Object[1]; aN(b2, (byte) (b2 | 51), b2, objArr3); obj3 = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(-1987398494, obj3); } cArr3[i5] = ((Character) ((Method) obj3).invoke(null, objArr2)).charValue(); i5++; i3 = 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2 = cArr3; } Object[] objArr4 = {Integer.valueOf(s)}; Object obj4 = xzZ.y.get(-1987398494); if (obj4 == null) { Class cls2 = (Class) xzZ.c(297 - MotionEvent.axisFromString(""), (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) Color.argb(0, 0, 0, 0)); byte b3 = (byte) 0; Object[] objArr5 = new Object[1]; aN(b3, (byte) (b3 | 51), b3, objArr5); obj4 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-1987398494, obj4); } char charValue = ((Character) ((Method) obj4).invoke(null, objArr4)).charValue(); char[] cArr4 = new char[i]; if (i % 2 != 0) { i2 = i - 1; cArr4[i2] = (char) (cArr[i2] - b); } else { i2 = i; } if (i2 > 1) { irs.e = 0; while (irs.e < i2) { int i8 = $10 + 9; $11 = i8 % 128; int i9 = i8 % 2; irs.b = cArr[irs.e]; irs.c = cArr[irs.e + 1]; if (irs.b == irs.c) { cArr4[irs.e] = (char) (irs.b - b); cArr4[irs.e + 1] = (char) (irs.c - b); int i10 = $10 + 73; $11 = i10 % 128; int i11 = i10 % 2; obj = obj2; } else { Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs}; Object obj5 = xzZ.y.get(822107368); if (obj5 == null) { Class cls3 = (Class) xzZ.c(233 - ((Process.getThreadPriority(0) + 20) >> 6), (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (KeyEvent.keyCodeFromString("") + 22024)); byte b4 = (byte) 0; Object[] objArr7 = new Object[1]; aN(b4, (byte) (b4 | 54), b4, objArr7); obj5 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class); xzZ.y.put(822107368, obj5); } if (((Integer) ((Method) obj5).invoke(null, objArr6)).intValue() == irs.j) { int i12 = $11 + 33; $10 = i12 % 128; int i13 = i12 % 2; Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs}; Object obj6 = xzZ.y.get(-1152873385); if (obj6 == null) { Class cls4 = (Class) xzZ.c(327 - (ViewConfiguration.getWindowTouchSlop() >> 8), 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (TextUtils.indexOf((CharSequence) "", '0') + 1)); byte b5 = (byte) 0; Object[] objArr9 = new Object[1]; aN(b5, (byte) (b5 | ISO7816.INS_DECREASE_STAMPED), b5, objArr9); obj6 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class); xzZ.y.put(-1152873385, obj6); } obj = null; int intValue = ((Integer) ((Method) obj6).invoke(null, objArr8)).intValue(); int i14 = (irs.d * charValue) + irs.j; cArr4[irs.e] = cArr2[intValue]; cArr4[irs.e + 1] = cArr2[i14]; } else { obj = null; if (irs.a == irs.d) { irs.f = ((irs.f + charValue) - 1) % charValue; irs.j = ((irs.j + charValue) - 1) % charValue; int i15 = (irs.a * charValue) + irs.f; int i16 = (irs.d * charValue) + irs.j; cArr4[irs.e] = cArr2[i15]; cArr4[irs.e + 1] = cArr2[i16]; } else { int i17 = (irs.a * charValue) + irs.j; int i18 = (irs.d * charValue) + irs.f; cArr4[irs.e] = cArr2[i17]; cArr4[irs.e + 1] = cArr2[i18]; } } } irs.e += 2; obj2 = obj; } } for (int i19 = 0; i19 < i; i19++) { cArr4[i19] = (char) (cArr4[i19] ^ 13722); } objArr[0] = new String(cArr4); } /* JADX WARN: Code restructure failed: missing block: B:4:0x006f, code lost: if (r2 > 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 r18) { /* Method dump skipped, instructions count: 852 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.easycash.Hilt_EasycashReferralSendDfwDeepLinkActivity.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 = t + 57; q = i2 % 128; int i3 = i2 % 2; super.onStart(); int i4 = t + 59; q = i4 % 128; int i5 = i4 % 2; } }