what-the-bank/sources/com/scb/phone/view/activity/easycash/creditpower/EasycashCreditPowerSummaryA...

428 lines
20 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.easycash.creditpower;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.fragment.app.Fragment;
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.custom.common.CustomDialog;
import com.scb.phone.view.fragment.easycash.creditpower.EasycashCreditPowerSummaryFragment;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import o.C14957gcv;
import o.GuL;
import o.JM;
import o.xzZ;
/* loaded from: classes4.dex */
public final class EasycashCreditPowerSummaryActivity extends Hilt_EasycashCreditPowerSummaryActivity {
public static final LWm b;
private static long l;
private static char[] m;
/* renamed from: o, reason: collision with root package name */
private static long f7096o;
private static int t;
private static final byte[] $$g = {70, -37, 38, -31};
private static final int $$h = 237;
private static int $10 = 0;
private static int $11 = 1;
private static int q = 1;
/* 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: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(byte r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
int r8 = 121 - r8
byte[] r0 = com.scb.phone.view.activity.easycash.creditpower.EasycashCreditPowerSummaryActivity.$$g
int r7 = r7 * 2
int r1 = 1 - r7
int r6 = r6 * 2
int r6 = 4 - r6
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L17
r8 = r6
r3 = r7
r4 = r2
goto L2e
L17:
r3 = r2
L18:
byte r4 = (byte) r8
r1[r3] = r4
if (r3 != r7) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
int r3 = r3 + 1
r4 = r0[r6]
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2e:
int r6 = -r6
int r6 = r6 + r3
int r8 = r8 + 1
r3 = r4
r5 = r8
r8 = r6
r6 = r5
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.easycash.creditpower.EasycashCreditPowerSummaryActivity.az(byte, byte, byte, java.lang.Object[]):void");
}
/* loaded from: classes4.dex */
public static final class LWm {
private LWm() {
}
public static void b(Context context, List<JM> list, String str) {
C14957gcv.e(context, "");
C14957gcv.e(list, "");
C14957gcv.e(str, "");
Intent intent = new Intent(context, (Class<?>) EasycashCreditPowerSummaryActivity.class);
intent.putParcelableArrayListExtra("product_displays", new ArrayList<>(list));
intent.putExtra("ncb_accepted_flag", str);
context.startActivity(intent);
}
public /* synthetic */ LWm(byte b) {
this();
}
}
private static void ax(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(f7096o ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
int i4 = $10 + 53;
$11 = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 5 / 5;
}
while (guL.a < a.length) {
int i6 = $10 + 59;
$11 = 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(f7096o)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(208 - TextUtils.getOffsetBefore("", 0), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (char) (1706 - Color.green(0)));
byte b2 = (byte) 0;
byte b3 = b2;
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();
try {
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(392 - (ViewConfiguration.getFadingEdgeLength() >> 16), 5 - Color.alpha(0), (char) ((-1) - MotionEvent.axisFromString("")));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
az(b4, b5, b5, 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;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
String str = new String(a, 4, a.length - 4);
int i9 = $11 + 107;
$10 = i9 % 128;
if (i9 % 2 == 0) {
objArr[0] = str;
} else {
int i10 = 32 / 0;
objArr[0] = str;
}
}
/* JADX WARN: Removed duplicated region for block: B:30:0x03ef */
/* JADX WARN: Removed duplicated region for block: B:32:0x03f0 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void ay(int r21, int r22, char r23, java.lang.Object[] r24) {
/*
Method dump skipped, instructions count: 1017
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.easycash.creditpower.EasycashCreditPowerSummaryActivity.ay(int, int, char, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Code restructure failed: missing block: B:18:0x009c, code lost:
if (r6 > 99999) goto L10;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0099, code lost:
if (r6 > 99999) goto L10;
*/
/* JADX WARN: Removed duplicated region for block: B:9:0x038b */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ java.lang.Object e(java.lang.Object[] r20) {
/*
Method dump skipped, instructions count: 1323
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.easycash.creditpower.EasycashCreditPowerSummaryActivity.e(java.lang.Object[]):java.lang.Object");
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
int i = 2 % 2;
int i2 = q + 95;
t = i2 % 128;
int i3 = i2 % 2;
super.Z();
setTitle(R.string.credit_power_summary_title);
S();
int i4 = q + 29;
t = i4 % 128;
int i5 = i4 % 2;
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public final void onBackPressed() {
int i = 2 % 2;
Fragment findFragmentById = getSupportFragmentManager().findFragmentById(R.id.container);
if (!(findFragmentById instanceof EasycashCreditPowerSummaryFragment)) {
super.onBackPressed();
int i2 = t + 61;
q = i2 % 128;
int i3 = i2 % 2;
return;
}
int i4 = t + 63;
q = i4 % 128;
if (i4 % 2 == 0) {
Object e = ((EasycashCreditPowerSummaryFragment) findFragmentById).c.e();
C14957gcv.c(e, "");
((CustomDialog) e).isShowing();
Object obj = null;
obj.hashCode();
throw null;
}
EasycashCreditPowerSummaryFragment easycashCreditPowerSummaryFragment = (EasycashCreditPowerSummaryFragment) findFragmentById;
Object e2 = easycashCreditPowerSummaryFragment.c.e();
C14957gcv.c(e2, "");
if (((CustomDialog) e2).isShowing()) {
return;
}
Object e3 = easycashCreditPowerSummaryFragment.c.e();
C14957gcv.c(e3, "");
((CustomDialog) e3).show();
}
@Override // com.scb.phone.view.activity.easycash.creditpower.Hilt_EasycashCreditPowerSummaryActivity, 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;
int i2 = q + 53;
t = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i4 = q + 83;
t = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
ax(new char[]{32013, 40815, 32108, 59439, 52266, 54864, 19997, 12195, 12750, 209, 6985, 36947, 58420, 29596, 55281, 17575, 39752, 42531, 25601, 2492, 20427, 6877, 12637, 64024, 517, 19840, 52719, 44776, 45412, 32824}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(9) - 103, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{62478, 18846, 62573, 28247, 6848, 13315, 51315, 52720, 47303, 54823, 40225, 29295, 27942, 42349, 20885, 42675, 4713, 28880, 57977, 60399, 50897, 52267}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 33, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i6 = t + 71;
q = i6 % 128;
int i7 = i6 % 2;
}
if (baseContext != null) {
int i8 = q + 43;
t = i8 % 128;
int i9 = i8 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 492, View.combineMeasuredStates(0, 0) + 5, (char) (ViewConfiguration.getTapTimeout() >> 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(TextUtils.lastIndexOf("", '0', 0, 0) + 488, 4 - TextUtils.lastIndexOf("", '0', 0), (char) Color.blue(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.easycash.creditpower.Hilt_EasycashCreditPowerSummaryActivity, 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) {
int i2 = q + 95;
t = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ax(new char[]{32013, 40815, 32108, 59439, 52266, 54864, 19997, 12195, 12750, 209, 6985, 36947, 58420, 29596, 55281, 17575, 39752, 42531, 25601, 2492, 20427, 6877, 12637, 64024, 517, 19840, 52719, 44776, 45412, 32824}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_single_form_check_eligibility_scbs_account).substring(84, 85).codePointAt(0) - 31, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(new char[]{62478, 18846, 62573, 28247, 6848, 13315, 51315, 52720, 47303, 54823, 40225, 29295, 27942, 42349, 20885, 42675, 4713, 28880, 57977, 60399, 50897, 52267}, 1 - TextUtils.getOffsetBefore("", 0), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(491 - ExpandableListView.getPackedPositionChild(0L), View.MeasureSpec.getSize(0) + 5, (char) ((-16777216) - Color.rgb(0, 0, 0)))).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((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 487, Process.getGidForName("") + 6, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i4 = q + 117;
t = i4 % 128;
int i5 = i4 % 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 (r3 > 99999) goto L11;
*/
@Override // com.scb.phone.view.activity.easycash.creditpower.Hilt_EasycashCreditPowerSummaryActivity, 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 final void attachBaseContext(android.content.Context r19) {
/*
Method dump skipped, instructions count: 771
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.easycash.creditpower.EasycashCreditPowerSummaryActivity.attachBaseContext(android.content.Context):void");
}
static void h() {
f7096o = 4582409232951708532L;
m = new char[]{36791, 5799, 48586, 17650, 60344, 29379, 6508, 41034, 18191, 60968, 29958, 7193, 41716, 18895, 53415, 30650, 7828, 42337, 19581, 54101, 31357, 263, 43081, 20215, 54729, 31963, 948, 43740, 12644, 55408, 32592, 1571, 44293, 13330, 56041, 24982, 2267, 44985, 14042, 56625, 25724, 2847, 37493, 14649, 49171, 26344, 3526, 38025, 15334, 49805, 27082, 61552, 38685, 15913, 50493, 27713, 62178, 39342, 8405, 51111, 28288, 62923, 39969, 8990, 50909, 24526, 62628, 3529, 41600, 15346, 20486, 59689, 3629, 42817, 15470, 21792, 60366, 190, 39374, 16083, 22521, 60430, 1291, 39532, 13078, 18494, 57633, 1924, 40098, 13796, 19164, 58292, 30731, 37190, 13929, 20292, 58476, 32122, 37767, 10488};
l = -5210598591099103547L;
}
@Override // com.scb.phone.view.activity.easycash.creditpower.Hilt_EasycashCreditPowerSummaryActivity, 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 = t + 67;
q = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 == 0) {
throw null;
}
int i4 = t + 11;
q = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 51 / 0;
}
}
@Override // com.scb.phone.view.activity.easycash.creditpower.Hilt_EasycashCreditPowerSummaryActivity, 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 - 1885596680;
e(new Object[]{this, bundle});
}
static {
t = 0;
h();
b = new LWm((byte) 0);
int i = q + 99;
t = i % 128;
if (i % 2 != 0) {
int i2 = 57 / 0;
}
}
}