what-the-bank/sources/o/dDH.java

462 lines
23 KiB
Java

package o;
import android.content.Context;
import android.graphics.Color;
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.view.activity.deeplink.BillPaymentDeepLinkActivity;
import com.scb.phone.view.activity.deeplink.FacebookBillPaymentDeepLinkActivity;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
/* loaded from: classes4.dex */
public abstract class dDH extends BillPaymentDeepLinkActivity {
private boolean b = false;
private static final byte[] $$Q = {104, ISO7816.INS_READ_BINARY2, -113, -112};
private static final int $$R = 99;
private static int $10 = 0;
private static int $11 = 1;
private static int p = 0;
private static int s = 1;
private static char k = 11977;
private static char m = 18287;
private static char l = 25992;
/* renamed from: o, reason: collision with root package name */
private static char f8694o = 21311;
private static long r = -1897499523338584326L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002a). 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 bk(byte r7, int r8, int r9, java.lang.Object[] r10) {
/*
int r9 = r9 + 4
int r7 = r7 * 3
int r7 = 1 - r7
byte[] r0 = o.dDH.$$Q
int r8 = r8 + 66
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L13
r3 = r7
r8 = r9
r5 = r2
goto L2a
L13:
r3 = r2
r6 = r9
r9 = r8
r8 = r6
L17:
byte r4 = (byte) r9
int r5 = r3 + 1
r1[r3] = r4
if (r5 != r7) goto L26
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L26:
int r8 = r8 + 1
r3 = r0[r8]
L2a:
int r3 = -r3
int r9 = r9 + r3
r3 = r5
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: o.dDH.bk(byte, int, int, java.lang.Object[]):void");
}
public dDH() {
addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: o.dDH.4
private dDH e;
{
this.e = this;
}
@Override // o.InterfaceC17278vUG
public final void a(Context context) {
this.e.U_();
}
});
}
@Override // o.AbstractActivityC8197dDx, o.AbstractActivityC8166dDA
protected final void U_() {
int i = 2 % 2;
int i2 = s + 81;
int i3 = i2 % 128;
p = i3;
if (i2 % 2 != 0) {
throw null;
}
if (this.b) {
return;
}
int i4 = i3 + 17;
s = i4 % 128;
if (i4 % 2 == 0) {
this.b = false;
} else {
this.b = true;
}
((InterfaceC8190dDq) y_()).d((FacebookBillPaymentDeepLinkActivity) this);
}
private static void bj(char[] cArr, int i, Object[] objArr) {
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 + 39;
$10 = i3 % 128;
int i4 = i3 % 2;
int i5 = 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(Color.red(0) + 402, (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 21609));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
bk(b, (byte) (b | 11), (byte) (-1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i5] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (r ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((Process.myTid() >> 22) + 238, View.MeasureSpec.getMode(0) + 5, (char) Color.red(0));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
bk(b2, (byte) (b2 | 12), (byte) (-1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $11 + 9;
$10 = i6 % 128;
int i7 = i6 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i8 = $11 + 31;
$10 = i8 % 128;
if (i8 % 2 != 0) {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr6 = {c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1143917229);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 238, (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) (1 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))));
byte b3 = (byte) 0;
Object[] objArr7 = new Object[1];
bk(b3, (byte) (b3 | 12), (byte) (-1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i9 = 70 / 0;
} else {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(239 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (ViewConfiguration.getTouchSlop() >> 8) + 5, (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1));
byte b4 = (byte) 0;
Object[] objArr9 = new Object[1];
bk(b4, (byte) (b4 | 12), (byte) (-1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
}
}
objArr[0] = new String(cArr2);
}
private static void bi(char[] cArr, int i, Object[] objArr) {
int i2;
String str;
int i3 = 2;
int i4 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
int i5 = $10 + 11;
$11 = i5 % 128;
int i6 = i5 % i3;
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i7 = 58224;
int i8 = 0;
while (i8 < 16) {
int i9 = $10 + 13;
$11 = i9 % 128;
int i10 = i9 % i3;
char c = cArr3[1];
char c2 = cArr3[0];
int i11 = (c2 + i7) ^ ((c2 << 4) + ((char) (l ^ 41718355337583039L)));
int i12 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(f8694o);
objArr2[i3] = Integer.valueOf(i12);
objArr2[1] = Integer.valueOf(i11);
objArr2[0] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj != null) {
str = "";
} else {
str = "";
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 411, TextUtils.indexOf(str, str, 0, 0) + 5, (char) (ViewConfiguration.getFadingEdgeLength() >> 16));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
bk(b, b2, (byte) (b2 - 1), 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();
cArr3[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i7) ^ ((charValue << 4) + ((char) (k ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(m)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - TextUtils.indexOf(str, str, 0), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) (Process.getGidForName(str) + 1));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
bk(b3, b4, (byte) (b4 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i7 -= 40503;
i8++;
i3 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2[jtb.b] = cArr3[0];
cArr2[jtb.b + 1] = cArr3[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 != null) {
i2 = 2;
} else {
Class cls3 = (Class) xzZ.c(TextUtils.getTrimmedLength("") + 98, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) View.combineMeasuredStates(0, 0));
byte b5 = (byte) 0;
byte b6 = (byte) (b5 + 1);
Object[] objArr7 = new Object[1];
bk(b5, b6, (byte) (-b6), objArr7);
i2 = 2;
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
i3 = i2;
}
objArr[0] = new String(cArr2, 0, i);
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0069, code lost:
if (r4 > 99999) goto L6;
*/
@Override // com.scb.phone.view.activity.deeplink.BillPaymentDeepLinkActivity, o.AbstractActivityC8197dDx, 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 r19) {
/*
Method dump skipped, instructions count: 1098
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.dDH.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.deeplink.BillPaymentDeepLinkActivity, o.AbstractActivityC8197dDx, 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;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
bi(new char[]{14587, 42253, 10237, 54803, 2886, 34974, 62507, 52191, 65229, 41490, 52202, 60574, 52606, 36126, 6613, 16389, 59659, 44464, 3574, 20875, 44238, 48292, 16275, 41318, 31525, 36605}, View.MeasureSpec.makeMeasureSpec(0, 0) + 26, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
bi(new char[]{236, 49166, 59089, 17957, 48266, 16921, 26409, 8733, 37894, 14272, 54875, 32835, 7580, 23115, 6613, 16389, 27931, 22669}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.request_to_pay_input_hint).substring(19, 20).codePointAt(0) - 14, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i2 = s + 27;
p = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
int i4 = p + 5;
s = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 492, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (ViewConfiguration.getTouchSlop() >> 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((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 488, 5 - (ViewConfiguration.getLongPressTimeout() >> 16), (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).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.deeplink.BillPaymentDeepLinkActivity, o.AbstractActivityC8197dDx, 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;
int i2 = s + 79;
p = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
getBaseContext();
obj.hashCode();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
bi(new char[]{14587, 42253, 10237, 54803, 2886, 34974, 62507, 52191, 65229, 41490, 52202, 60574, 52606, 36126, 6613, 16389, 59659, 44464, 3574, 20875, 44238, 48292, 16275, 41318, 31525, 36605}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.crop_document_error_wrong_file).substring(36, 37).length() + 25, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
bi(new char[]{236, 49166, 59089, 17957, 48266, 16921, 26409, 8733, 37894, 14272, 54875, 32835, 7580, 23115, 6613, 16389, 27931, 22669}, 19 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i3 = p + 67;
s = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
int i5 = s + 63;
p = i5 % 128;
int i6 = i5 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i7 = s + 13;
p = i7 % 128;
try {
if (i7 % 2 != 0) {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0') + 493, 5 - Color.argb(0, 0, 0, 0), (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(TextUtils.indexOf("", "") + 487, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
throw null;
}
Object obj4 = xzZ.y.get(125943855);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(492 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), KeyEvent.keyCodeFromString("") + 5, (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod("a", null);
xzZ.y.put(125943855, obj4);
}
Object invoke2 = ((Method) obj4).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj5 = xzZ.y.get(1633456013);
if (obj5 == null) {
obj5 = ((Class) xzZ.c(486 - TextUtils.indexOf((CharSequence) "", '0'), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) TextUtils.indexOf("", "", 0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj5);
}
((Method) obj5).invoke(invoke2, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x006b, code lost:
if (r1 > 99999) goto L6;
*/
@Override // com.scb.phone.view.activity.deeplink.BillPaymentDeepLinkActivity, o.AbstractActivityC8197dDx, 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: 854
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.dDH.attachBaseContext(android.content.Context):void");
}
@Override // com.scb.phone.view.activity.deeplink.BillPaymentDeepLinkActivity, o.AbstractActivityC8197dDx, 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 = p + 27;
s = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 == 0) {
int i4 = 24 / 0;
}
}
}