what-the-bank/sources/com/scb/phone/view/activity/prepaid/AddNewCurrencyActivity.java

804 lines
44 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.prepaid;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
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 androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
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 com.scb.phone.view.activity.prepaid.PrepaidTravelForeignCurrencyWalletDetailActivity;
import java.lang.reflect.Method;
import java.util.ArrayList;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractC14961gcz;
import o.C10383eCj;
import o.C11530ehA;
import o.C14957gcv;
import o.C7522cps;
import o.Dwh;
import o.GuL;
import o.IRS;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9552dlr;
import o.UA;
import o.UE;
import o.ZI;
import o.fZZ;
import o.xzZ;
import org.jnbis.internal.NistHelper;
/* loaded from: classes5.dex */
public final class AddNewCurrencyActivity extends Hilt_AddNewCurrencyActivity implements InterfaceC9552dlr.HBt, C11530ehA.LWm {
public static final IeS b;
private static char[] p;
private static char r;
private static int s;
private static long t;
private final InterfaceC13393fZL k;
private C11530ehA m;
@InterfaceC13391fZD
public C7522cps mPresenter;
@BindView
public RecyclerView mRecyclerView;
/* renamed from: o, reason: collision with root package name */
private UE f7755o;
private static final byte[] $$g = {ISOFileInfo.FCI_BYTE, -31, ISO7816.INS_MANAGE_CHANNEL, 54};
private static final int $$h = 253;
private static int $10 = 0;
private static int $11 = 1;
private static int q = 1;
/* 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:0x002e). 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(int r6, byte r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 2
int r6 = 3 - r6
int r7 = r7 + 117
int r8 = r8 * 3
int r0 = 1 - r8
byte[] r1 = com.scb.phone.view.activity.prepaid.AddNewCurrencyActivity.$$g
byte[] r0 = new byte[r0]
r2 = 0
int r8 = 0 - r8
if (r1 != 0) goto L17
r7 = r6
r4 = r8
r3 = r2
goto L2e
L17:
r3 = r2
r5 = r7
r7 = r6
r6 = r5
L1b:
byte r4 = (byte) r6
r0[r3] = r4
if (r3 != r8) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L28:
int r7 = r7 + 1
r4 = r1[r7]
int r3 = r3 + 1
L2e:
int r4 = -r4
int r6 = r6 + r4
goto L1b
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.prepaid.AddNewCurrencyActivity.az(int, byte, short, java.lang.Object[]):void");
}
public AddNewCurrencyActivity() {
Sts sts = Sts.c;
C14957gcv.e(sts, "");
this.k = new fZZ(sts);
}
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
private static void ay(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(t ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
int i4 = $11 + 31;
$10 = i4 % 128;
int i5 = i4 % 2;
while (guL.a < a.length) {
int i6 = $11 + 105;
$10 = i6 % 128;
int i7 = i6 % 2;
guL.c = guL.a - i3;
int i8 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(t)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 207, 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 1705));
byte b2 = (byte) 0;
byte b3 = (byte) (b2 + 2);
Object[] objArr3 = new Object[1];
az(b2, b3, (byte) (b3 - 2), objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i8] = ((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(392 - TextUtils.getCapsMode("", 0, 0), (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1));
byte length = (byte) $$g.length;
Object[] objArr5 = new Object[1];
az((byte) 0, length, (byte) (length - 4), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
i3 = 4;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object e(Object[] objArr) {
final C7522cps c7522cps;
AddNewCurrencyActivity addNewCurrencyActivity = (AddNewCurrencyActivity) objArr[0];
Bundle bundle = (Bundle) objArr[1];
int i = 2 % 2;
Object[] objArr2 = new Object[1];
ay(new char[]{18561, 21156, 42542, 55568, 18656, 51221, 37876, 2559, 9106, 21654, 1904, 58663, 40470, 8960, 43702, 32469, 2695, 36760, 56959, 51812, 58626, 6680}, -ImageFormat.getBitsPerPixel(0), objArr2);
Class<?> cls = Class.forName((String) objArr2[0]);
Object[] objArr3 = new Object[1];
ay(new char[]{53779, 35092, 41779, 42118, 53886, 5042, 38616, 29810, 47371}, (ViewConfiguration.getScrollBarSize() >> 8) + 1, objArr3);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr3[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = addNewCurrencyActivity.getBaseContext();
if (baseContext == null) {
Object[] objArr4 = new Object[1];
ax(new char[]{4, '\r', 22, '\'', 4, '+', ' ', '.', 0, 5, 11, '.', 18, 17, ' ', '/', 4, '/', '\"', 19, ')', '0', '(', 22, 4, 27}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_offline_success_contact).substring(10, 11).codePointAt(0) + 6), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 13, objArr4);
Class<?> cls2 = Class.forName((String) objArr4[0]);
Object[] objArr5 = new Object[1];
ay(new char[]{54200, 48885, 34362, 41081, 54235, 9311, 46070, 28822, 47265, 47296, 10100, 39969, 1328, 53074, 35552, 1925, 37295, 25543, 65148, 45825, 32295, 63060}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 33, objArr5);
baseContext = (Context) cls2.getMethod((String) objArr5[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i2 = q + 67;
s = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
int i4 = q + 41;
s = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getEdgeSlop() >> 16) + 492, Color.red(0) + 5, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0)))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr6 = new Object[1];
ax(new char[]{'\n', '\b', 26, 7, 2, 14, ')', 2, 7, 19, 20, 1, 5, 7, 7, '*', 7, 5, 14, '$', 7, NistHelper.SEP_FS, 0, 20, ',', '\t', 15, 23, 17, 15, 23, 11, '\b', 23, '%', 7, '(', 23, 13901, 13901, 14, 22, 15, 21, 14, '%', 27, 22}, (byte) (85 - ExpandableListView.getPackedPositionGroup(0L)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 35, objArr6);
String str = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ax(new char[]{'!', 19, 5, 23, 5, '\t', NistHelper.SEP_FS, 21, 27, 23, 16, 1, 16, 1, '\b', '\n', 0, 23, '\b', 16, 23, '\t', 0, 27, 1, 3, ',', 15, 16, 15, '*', '$', 13776, 13776, 27, 1, 21, '$', 13851, 13851, 5, '\t', 0, 3, 23, '\b', 5, '\t', 21, '\'', '#', '\t', 14, '%', 26, '\b', '%', 14, 7, '%', 5, '\t', 5, 27}, (byte) (KeyEvent.getDeadChar(0, 0) + 35), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 51, objArr7);
String str2 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ax(new char[]{0, ')', '*', 1, 0, 1, 13886, 13886, 16, 15, 5, 21, 7, 26, '*', '$', 5, '\r', '$', ',', '\b', ',', '\b', 14, 14, '%', '(', 23, '%', 0, 18, 21, 26, 7, 1, 27, 29, 22, 13802, 13802, 29, 1, 21, 1, ',', 23, 5, 23, 19, '!', 14, '$', 0, 16, ',', '$', '0', 1, ')', 2, 21, '$', 14, '\t'}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 50), (ViewConfiguration.getKeyRepeatDelay() >> 16) + 64, objArr8);
String str3 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
ax(new char[]{'(', '\"', ' ', 5, 2, '-', 13786, 13786, 4, '-', '\r', 6, 15, 2, 13852, 13852, 22, '(', 18, ',', 1, '\"', '\r', 5, '\f', '\t', '(', ' ', '#', '%', 27, 5, 30, 19, 0, 4, ' ', '(', 24, ')', 1, ')', 24, 4, '&', '-', 1, ')', 25, '(', 15, 2, 6, 20, 0, 5, '0', 11, 4, 18, 21, 27, 5, 31, '\f', 6, 20, '\b', '!', '\f', 25, '\f', 31, 5}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.prepaid_point_m_card).substring(15, 16).length() + 36), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.successful_qr_code_bill_payment_header).substring(19, 20).length() + 73, objArr9);
String str4 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
ax(new char[]{18, '#', '$', '(', 13749}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(2) - 98), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(9) - 99, objArr10);
String str5 = (String) objArr10[0];
Object[] objArr11 = new Object[1];
ay(new char[]{40275, 53170, 61876, 28986, 40246, 21772, 50232, 41363, 63051, 51664, 20666, 19731, 19334, 48723, 64818, 54986, 57157, 4812, 35250, 25113, 12434, 34636, 4663, 4054, 33885, 31644, 48893, 39710, 6537, 53270, 19232, 9438, 27904, 17556, 55285, 45070, 50823, 14648, 24603, 23842}, -ImageFormat.getBitsPerPixel(0), objArr11);
Object[] objArr12 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr11[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - KeyEvent.normalizeMetaState(0), KeyEvent.normalizeMetaState(0) + 5, (char) (ViewConfiguration.getScrollDefaultDelay() >> 16))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr12);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
}
super.onCreate(bundle);
addNewCurrencyActivity.setContentView(R.layout.2131558732);
ButterKnife.Dg_(addNewCurrencyActivity);
C7522cps c7522cps2 = addNewCurrencyActivity.mPresenter;
if (c7522cps2 == null) {
C14957gcv.a("");
c7522cps2 = null;
}
c7522cps2.e((C7522cps) addNewCurrencyActivity);
addNewCurrencyActivity.Z();
addNewCurrencyActivity.setTitle(R.string.prepaid_add_currency_title);
addNewCurrencyActivity.ac();
RecyclerView recyclerView = addNewCurrencyActivity.mRecyclerView;
if (recyclerView == null) {
C14957gcv.a("");
recyclerView = null;
}
recyclerView.setLayoutManager(new LinearLayoutManager(1, false));
recyclerView.d(new C10383eCj(), -1);
UE ue = (UE) addNewCurrencyActivity.getIntent().getParcelableExtra("EXTRA_PREPAID_TRAVEL_WALLET_SUMMARY");
if (ue != null) {
addNewCurrencyActivity.f7755o = ue;
C7522cps c7522cps3 = addNewCurrencyActivity.mPresenter;
if (c7522cps3 != null) {
int i6 = s + 117;
q = i6 % 128;
if (i6 % 2 == 0) {
throw null;
}
c7522cps = c7522cps3;
} else {
C14957gcv.a("");
c7522cps = null;
}
C14957gcv.e(ue, "");
c7522cps.c = ue.b;
ZI.IeS ieS = new ZI.IeS(c7522cps) { // from class: o.cpr
private C7522cps b;
@Override // o.ZI.IeS
public final void e(Object obj3) {
C7522cps.a(this.b, (InterfaceC9552dlr.HBt) obj3);
}
{
this.b = c7522cps;
}
};
if (c7522cps.f != 0) {
int i7 = s + 85;
q = i7 % 128;
if (i7 % 2 != 0) {
ieS.e(c7522cps.f);
}
}
}
((Dwh) addNewCurrencyActivity.k.e()).c(((BaseActivity) addNewCurrencyActivity).scbAnalytics, "planetscb_conversion_new_currency_screen");
return null;
}
@Override // o.InterfaceC9552dlr.HBt
public final void d(ArrayList<UA> arrayList) {
int i = 2 % 2;
C14957gcv.e(arrayList, "");
this.m = new C11530ehA(arrayList, this);
RecyclerView recyclerView = this.mRecyclerView;
C11530ehA c11530ehA = null;
if (recyclerView == null) {
C14957gcv.a("");
recyclerView = null;
}
C11530ehA c11530ehA2 = this.m;
if (c11530ehA2 == null) {
C14957gcv.a("");
int i2 = s + 43;
q = i2 % 128;
int i3 = i2 % 2;
} else {
c11530ehA = c11530ehA2;
}
recyclerView.setAdapter(c11530ehA);
int i4 = q + 95;
s = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 58 / 0;
}
}
@Override // o.C11530ehA.LWm
public final void d(final UA ua) {
int i = 2 % 2;
C14957gcv.e(ua, "");
final C7522cps c7522cps = this.mPresenter;
if (c7522cps != null) {
int i2 = q + 21;
s = i2 % 128;
int i3 = i2 % 2;
} else {
C14957gcv.a("");
c7522cps = null;
}
C14957gcv.e(ua, "");
ZI.IeS ieS = new ZI.IeS(ua, c7522cps) { // from class: o.cpq
private C7522cps a;
private UA b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7522cps.d(this.b, this.a, (InterfaceC9552dlr.HBt) obj);
}
{
this.b = ua;
this.a = c7522cps;
}
};
if (c7522cps.f != 0) {
ieS.e(c7522cps.f);
}
int i4 = q + 15;
s = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9552dlr.HBt
public final void c(UA ua, ArrayList<String> arrayList) {
int i = 2 % 2;
C14957gcv.e(ua, "");
C14957gcv.e(arrayList, "");
UE ue = this.f7755o;
if (ue != null) {
int i2 = s + 5;
q = i2 % 128;
int i3 = i2 % 2;
PrepaidTravelForeignCurrencyWalletDetailActivity.HBt hBt = PrepaidTravelForeignCurrencyWalletDetailActivity.f7774o;
startActivity(PrepaidTravelForeignCurrencyWalletDetailActivity.HBt.akJ_(this, ua, ue, arrayList));
}
int i4 = q + 109;
s = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public final void onDestroy() {
int i = 2 % 2;
int i2 = s + 95;
q = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
obj.hashCode();
throw null;
}
C7522cps c7522cps = this.mPresenter;
if (c7522cps == null) {
C14957gcv.a("");
c7522cps = null;
}
c7522cps.w_();
super.onDestroy();
int i3 = s + 11;
q = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
}
@Override // com.scb.phone.view.activity.prepaid.Hilt_AddNewCurrencyActivity, 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 final void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i2 = s + 113;
q = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ax(new char[]{4, '\r', 22, '\'', 4, '+', ' ', '.', 0, 5, 11, '.', 18, 17, ' ', '/', 4, '/', '\"', 19, ')', '0', '(', 22, 4, 27}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.common_ndid_idp_no_enrolled_description).substring(51, 52).length() + 113), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(12) - 75, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(new char[]{54200, 48885, 34362, 41081, 54235, 9311, 46070, 28822, 47265, 47296, 10100, 39969, 1328, 53074, 35552, 1925, 37295, 25543, 65148, 45825, 32295, 63060}, 1 - (ViewConfiguration.getKeyRepeatDelay() >> 16), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = q + 103;
s = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 492, 5 - TextUtils.getOffsetBefore("", 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).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(487 - View.MeasureSpec.getSize(0), 5 - KeyEvent.getDeadChar(0, 0), (char) View.getDefaultSize(0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).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.prepaid.Hilt_AddNewCurrencyActivity, 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 final void onPause() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ax(new char[]{4, '\r', 22, '\'', 4, '+', ' ', '.', 0, 5, 11, '.', 18, 17, ' ', '/', 4, '/', '\"', 19, ')', '0', '(', 22, 4, 27}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 80), ((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];
ay(new char[]{54200, 48885, 34362, 41081, 54235, 9311, 46070, 28822, 47265, 47296, 10100, 39969, 1328, 53074, 35552, 1925, 37295, 25543, 65148, 45825, 32295, 63060}, -TextUtils.lastIndexOf("", '0'), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = q + 79;
s = i2 % 128;
if (i2 % 2 != 0) {
baseContext = baseContext.getApplicationContext();
int i3 = 27 / 0;
} else {
baseContext = baseContext.getApplicationContext();
}
}
if (baseContext != null) {
int i4 = s + 117;
q = i4 % 128;
try {
if (i4 % 2 == 0) {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 491, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).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((ViewConfiguration.getFadingEdgeLength() >> 16) + 487, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i5 = 90 / 0;
} else {
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(492 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (-16777211) - Color.rgb(0, 0, 0), (char) TextUtils.getCapsMode("", 0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj4 = xzZ.y.get(1633456013);
if (obj4 == null) {
obj4 = ((Class) xzZ.c((ViewConfiguration.getEdgeSlop() >> 16) + 487, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj4);
}
((Method) obj4).invoke(invoke2, objArr4);
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i6 = q + 33;
s = i6 % 128;
int i7 = i6 % 2;
}
private static void ax(char[] cArr, byte b2, int i, Object[] objArr) {
int i2;
int length;
char[] cArr2;
int i3 = 2 % 2;
IRS irs = new IRS();
char[] cArr3 = p;
int i4 = 6;
if (cArr3 != null) {
int i5 = $11 + 17;
$10 = i5 % 128;
if (i5 % 2 != 0) {
length = cArr3.length;
cArr2 = new char[length];
} else {
length = cArr3.length;
cArr2 = new char[length];
}
int i6 = 0;
while (i6 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i6])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(298 - TextUtils.indexOf("", "", 0, 0), TextUtils.indexOf((CharSequence) "", '0') + i4, (char) Color.alpha(0));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr3 = new Object[1];
az(b3, b4, b4, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr2[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
i4 = 6;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr2;
}
Object[] objArr4 = {Integer.valueOf(r)};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(298 - KeyEvent.keyCodeFromString(""), 5 - Color.blue(0), (char) TextUtils.getTrimmedLength(""));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr5 = new Object[1];
az(b5, b6, b6, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
int i7 = $10 + 109;
$11 = i7 % 128;
int i8 = i7 % 2;
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b2);
} else {
i2 = i;
}
if (i2 > 1) {
irs.e = 0;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
int i9 = $11 + 7;
$10 = i9 % 128;
int i10 = i9 % 2;
cArr4[irs.e] = (char) (irs.b - b2);
cArr4[irs.e + 1] = (char) (irs.c - b2);
} else {
try {
Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj3 = xzZ.y.get(822107368);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(233 - Color.blue(0), 5 - KeyEvent.getDeadChar(0, 0), (char) (ExpandableListView.getPackedPositionGroup(0L) + 22024));
byte b7 = (byte) 0;
byte b8 = (byte) (b7 + 3);
Object[] objArr7 = new Object[1];
az(b7, b8, (byte) (b8 - 3), objArr7);
obj3 = 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, obj3);
}
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
int i11 = $11 + 73;
$10 = i11 % 128;
int i12 = i11 % 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 obj4 = xzZ.y.get(-1152873385);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(327 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) (ViewConfiguration.getTapTimeout() >> 16));
byte b9 = (byte) 0;
byte b10 = (byte) (b9 + 1);
Object[] objArr9 = new Object[1];
az(b9, b10, (byte) (b10 - 1), objArr9);
obj4 = 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, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
int i13 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr3[intValue];
cArr4[irs.e + 1] = cArr3[i13];
} else if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i14 = (irs.a * charValue) + irs.f;
int i15 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr3[i14];
cArr4[irs.e + 1] = cArr3[i15];
} else {
int i16 = (irs.a * charValue) + irs.j;
int i17 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr3[i16];
cArr4[irs.e + 1] = cArr3[i17];
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
irs.e += 2;
}
}
int i18 = 0;
while (i18 < i) {
int i19 = $11 + 111;
$10 = i19 % 128;
if (i19 % 2 != 0) {
cArr4[i18] = (char) (cArr4[i18] ^ 25380);
i18 += 76;
} else {
cArr4[i18] = (char) (cArr4[i18] ^ 13722);
i18++;
}
}
objArr[0] = new String(cArr4);
}
@Override // com.scb.phone.view.activity.prepaid.Hilt_AddNewCurrencyActivity, 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
public final void attachBaseContext(Context context) {
int i = 2 % 2;
int i2 = s + 61;
q = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
ay(new char[]{18561, 21156, 42542, 55568, 18656, 51221, 37876, 2559, 9106, 21654, 1904, 58663, 40470, 8960, 43702, 32469, 2695, 36760, 56959, 51812, 58626, 6680}, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(new char[]{53779, 35092, 41779, 42118, 53886, 5042, 38616, 29810, 47371}, 1 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context applicationContext = context != null ? context.getApplicationContext() : context;
if (applicationContext != null) {
int i4 = s + 51;
q = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - ((Process.getThreadPriority(0) + 20) >> 6), ExpandableListView.getPackedPositionType(0L) + 5, (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
ax(new char[]{'\n', '\b', 26, 7, 2, 14, ')', 2, 7, 19, 20, 1, 5, 7, 7, '*', 7, 5, 14, '$', 7, NistHelper.SEP_FS, 0, 20, ',', '\t', 15, 23, 17, 15, 23, 11, '\b', 23, '%', 7, '(', 23, 13901, 13901, 14, 22, 15, 21, 14, '%', 27, 22}, (byte) (85 - (ViewConfiguration.getScrollDefaultDelay() >> 16)), 49 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
ax(new char[]{'!', 19, 5, 23, 5, '\t', NistHelper.SEP_FS, 21, 27, 23, 16, 1, 16, 1, '\b', '\n', 0, 23, '\b', 16, 23, '\t', 0, 27, 1, 3, ',', 15, 16, 15, '*', '$', 13776, 13776, 27, 1, 21, '$', 13851, 13851, 5, '\t', 0, 3, 23, '\b', 5, '\t', 21, '\'', '#', '\t', 14, '%', 26, '\b', '%', 14, 7, '%', 5, '\t', 5, 27}, (byte) (35 - Drawable.resolveOpacity(0, 0)), 64 - Drawable.resolveOpacity(0, 0), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
ax(new char[]{0, ')', '*', 1, 0, 1, 13886, 13886, 16, 15, 5, 21, 7, 26, '*', '$', 5, '\r', '$', ',', '\b', ',', '\b', 14, 14, '%', '(', 23, '%', 0, 18, 21, 26, 7, 1, 27, 29, 22, 13802, 13802, 29, 1, 21, 1, ',', 23, 5, 23, 19, '!', 14, '$', 0, 16, ',', '$', '0', 1, ')', 2, 21, '$', 14, '\t'}, (byte) (63 - View.getDefaultSize(0, 0)), (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)) + 64, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ax(new char[]{'(', '\"', ' ', 5, 2, '-', 13786, 13786, 4, '-', '\r', 6, 15, 2, 13852, 13852, 22, '(', 18, ',', 1, '\"', '\r', 5, '\f', '\t', '(', ' ', '#', '%', 27, 5, 30, 19, 0, 4, ' ', '(', 24, ')', 1, ')', 24, 4, '&', '-', 1, ')', 25, '(', 15, 2, 6, 20, 0, 5, '0', 11, 4, 18, 21, 27, 5, 31, '\f', 6, 20, '\b', '!', '\f', 25, '\f', 31, 5}, (byte) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 36), TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 75, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ax(new char[]{18, '#', '$', '(', 13749}, (byte) (View.resolveSizeAndState(0, 0, 0) + 11), 5 - ExpandableListView.getPackedPositionGroup(0L), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ay(new char[]{40275, 53170, 61876, 28986, 40246, 21772, 50232, 41363, 63051, 51664, 20666, 19731, 19334, 48723, 64818, 54986, 57157, 4812, 35250, 25113, 12434, 34636, 4663, 4054, 33885, 31644, 48893, 39710, 6537, 53270, 19232, 9438, 27904, 17556, 55285, 45070, 50823, 14648, 24603, 23842}, 1 - Gravity.getAbsoluteGravity(0, 0), objArr8);
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 488, 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) Color.red(0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<Dwh> {
public static final Sts c = new Sts();
@Override // o.InterfaceC14890gbN
public final /* synthetic */ Dwh invoke() {
return new Dwh();
}
Sts() {
super(0);
}
}
static void j() {
t = -4455955989190917504L;
p = new char[]{49024, 49116, 49029, 49088, 49091, 49093, 49106, 49028, 49112, 49026, 49054, 49117, 49105, 49052, 49034, 49025, 49104, 49138, 49049, 49045, 49098, 49031, 49030, 49044, 49048, 49111, 49110, 49108, 49040, 49119, 49042, 49090, 49055, 49095, 49127, 49035, 49089, 49109, 49094, 49053, 49050, 49115, 49041, 49027, 49033, 49043, 49114, 49051, 49118};
r = (char) 35374;
}
@Override // com.scb.phone.view.activity.prepaid.Hilt_AddNewCurrencyActivity, 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 final void onStart() {
int i = 2 % 2;
int i2 = s + 115;
q = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 == 0) {
throw null;
}
}
@Override // com.scb.phone.view.activity.prepaid.Hilt_AddNewCurrencyActivity, 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 final void onCreate(Bundle bundle) {
int i = ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 1686707307;
e(new Object[]{this, bundle});
}
static {
s = 0;
j();
b = new IeS((byte) 0);
int i = q + 111;
s = i % 128;
int i2 = i % 2;
}
}