what-the-bank/sources/com/scb/phone/view/activity/etb/PdfViewerActivity.java

659 lines
44 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.etb;
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.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.widget.ExpandableListView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Method;
import java.net.URLEncoder;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C10318eAn;
import o.DFY;
import o.dMB;
import o.dQY;
import o.guQ;
import o.xzZ;
/* loaded from: classes4.dex */
public class PdfViewerActivity extends dMB implements C10318eAn.RVV {
private static short[] p;
@BindView
WebView webView;
private static final byte[] $$p = {41, -51, 119, -103};
private static final int $$q = 250;
private static int $10 = 0;
private static int $11 = 1;
private static int t = 0;
private static int q = 1;
private static int k = -746579940;
/* renamed from: o, reason: collision with root package name */
private static int f7142o = 1406017026;
private static int l = -1239665281;
private static byte[] m = {Ascii.NAK, Ascii.ESC, Ascii.ETB, -31, -24, 55, 55, -82, 17, 84, -33, -18, -17, -24, Ascii.ESC, -29, Ascii.CAN, Ascii.SYN, -23, -26, Ascii.US, 1, -50, 16, 30, -26, Ascii.CAN, ISO7816.INS_CREATE_FILE, 4, 55, 6, ISOFileInfo.AB, Ascii.NAK, Ascii.SUB, 38, -33, -18, -17, -24, Ascii.ESC, -29, Ascii.CAN, 17, -22, 57, -21, Ascii.DC2, -37, 62, -61, 56, -24, ISO7816.INS_GET_RESPONSE, 57, -60, 59, -63, Ascii.ETB, 57, 16, -23, -22, ISO7816.INS_GET_RESPONSE, -22, 57, -63, Ascii.NAK, 63, Ascii.SYN, -63, 57, -21, Ascii.NAK, -22, 29, ISO7816.INS_APPEND_RECORD, Ascii.DC2, ISO7816.INS_PUT_DATA, 38, -17, Ascii.SYN, -22, -58, 62, -58, ISO7816.INS_CHANGE_CHV, Ascii.DC4, -24, -21, 16, -17, Ascii.DC4, 17, -23, 17, -24, -59, 57, 16, -57, 57, -60, 58, -63, -24, Ascii.ETB, -29, Ascii.US, ISO7816.INS_CREATE_FILE, 33, -23, Ascii.DC4, -22, -57, -21, 59, -61, 58, ISO7816.INS_PUT_DATA, ISO7816.INS_CHANGE_CHV, 16, -33, -21, Ascii.SYN, Ascii.DC4, 33, -23, Ascii.NAK, -22, -21, Ascii.DC2, -34, -24, 32, -17, 28, -24, -23, -18, ISO7816.INS_GET_RESPONSE, 37, Ascii.ETB, -60, -23, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK};
private static char[] s = {64021, 10165, 16709, 25357, 36044, 36785, 21011, 13512, 5820, 63847, 56120, 48542, 32895, 25090, 17654, 9910, 2311, 60353, 52631, 36990, 29239, 21757, 14152, 36835, 21073, 13454, 5804, 63793, 56117, 48524, 32863, 25104, 17599, 9960, 2319, 60305, 52628, 36921, 29286, 21744, 14101, 6472, 64438, 56817, 40994, 33483, 25799, 18260, 10608, 3065, 60955, 45057, 37519, 29870, 22319, 14691, 7123, 65026, 49279, 41700, 33971, 26376, 18908, 11200, 3634, 53347, 45787, 38209, 30542, 23023, 15338, 36787, 21086, 13450, 5885, 63843, 56165, 48527, 32859, 25152, 17599, 9961, 2315, 60352, 52674, 36922, 29286, 21747, 14148, 6428, 64446, 56819, 40998, 33437, 25804, 18257, 10622, 3068, 61003, 45146, 37504, 29939, 22394, 14694, 7044, 65115, 49275, 41655, 34020, 26459, 18831, 11207, 3638, 53359, 45789, 38212, 30485, 22972, 15291, 7792, 57539, 49864, 42294, 34676, 27055, 19482, 11800, 61570, 53927, 46460, 38863, 31191, 23566, 15913, 169, 36794, 21010, 13518, 5822, 63857, 56172, 48581, 32785, 25089, 17647, 9915, 2307, 60353, 52633, 36967, 29235, 21751, 14164, 6425, 64487, 56739, 41082, 33480, 25759, 18268, 10541, 2996, 61018, 45066, 37572, 29871, 22399, 14630, 7045, 65115, 49213, 41718, 34040, 26381, 18891, 11155, 3700, 53310, 45725, 38227, 30467, 23019, 15276, 7799, 57480, 49817, 42337, 34607, 27065, 19531, 11790, 61659, 53993, 46451, 38848, 31109, 23635, 15929, 234, 58109, 50448, 42888, 35297, 27751, 20000, 4239, 62288, 54534, 47093};
private static long r = 4245530158236979814L;
private static void aC(short s2, int i, short s3, Object[] objArr) {
int i2 = 110 - i;
int i3 = s2 * 3;
int i4 = s3 + 4;
byte[] bArr = $$p;
byte[] bArr2 = new byte[1 - i3];
int i5 = 0 - i3;
int i6 = -1;
if (bArr == null) {
i2 = i5 + i4;
i4 = i4;
i6 = -1;
}
while (true) {
int i7 = i6 + 1;
int i8 = i4 + 1;
bArr2[i7] = (byte) i2;
if (i7 == i5) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i2 += bArr[i8];
i4 = i8;
i6 = i7;
}
}
}
private static void aB(int i, int i2, char c, Object[] objArr) {
Object method;
int i3 = 2;
int i4 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i5 = $11 + 45;
$10 = i5 % 128;
if (i5 % i3 != 0) {
int i6 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(s[dqy.a * i])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(307 - ((byte) KeyEvent.getModifierMetaStateMask()), (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) (32796 - ExpandableListView.getPackedPositionChild(0L)));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
aC(b, (byte) (b | 12), (byte) (-1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(r), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 411, 5 - (Process.myTid() >> 22), (char) Color.green(0));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
aC(b2, (byte) (b2 | 11), (byte) (-1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 407, 5 - (Process.myTid() >> 22), (char) (29234 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte length = (byte) $$p.length;
Object[] objArr7 = new Object[1];
aC((byte) 0, length, (byte) (length - 5), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
int i7 = dqy.a;
Object[] objArr8 = {Integer.valueOf(s[i + dqy.a])};
Object obj4 = xzZ.y.get(1095064095);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(308 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 4, (char) (32797 - (ViewConfiguration.getPressedStateDuration() >> 16)));
byte b3 = (byte) 0;
Object[] objArr9 = new Object[1];
aC(b3, (byte) (b3 | 12), (byte) (-1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE);
xzZ.y.put(1095064095, obj4);
}
Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(dqy.a), Long.valueOf(r), Integer.valueOf(c)};
Object obj5 = xzZ.y.get(-548438098);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(412 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (ViewConfiguration.getTouchSlop() >> 8) + 5, (char) (1 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b4 = (byte) 0;
Object[] objArr11 = new Object[1];
aC(b4, (byte) (b4 | 11), (byte) (-1), objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj5);
}
jArr[i7] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue();
Object[] objArr12 = {dqy, dqy};
Object obj6 = xzZ.y.get(1071125919);
if (obj6 == null) {
Class cls6 = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 406, 5 - Color.green(0), (char) (29234 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte length2 = (byte) $$p.length;
Object[] objArr13 = new Object[1];
aC((byte) 0, length2, (byte) (length2 - 5), objArr13);
obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj6);
}
((Method) obj6).invoke(null, objArr12);
}
i3 = 2;
}
char[] cArr = new char[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i8 = $10 + 97;
$11 = i8 % 128;
int i9 = i8 % 2;
cArr[dqy.a] = (char) jArr[dqy.a];
Object[] objArr14 = {dqy, dqy};
Object obj7 = xzZ.y.get(1071125919);
if (obj7 != null) {
method = obj7;
} else {
Class cls7 = (Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 407, View.resolveSizeAndState(0, 0, 0) + 5, (char) (Color.red(0) + 29234));
byte length3 = (byte) $$p.length;
Object[] objArr15 = new Object[1];
aC((byte) 0, length3, (byte) (length3 - 5), objArr15);
method = cls7.getMethod((String) objArr15[0], Object.class, Object.class);
xzZ.y.put(1071125919, method);
}
((Method) method).invoke(null, objArr14);
int i10 = $11 + 115;
$10 = i10 % 128;
int i11 = i10 % 2;
}
objArr[0] = new String(cArr);
}
@Override // o.dMB, 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 onCreate(Bundle bundle) {
int i = 2 % 2;
int i2 = t + 59;
q = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.percentage).substring(0, 1).length() - 1), 2142370295 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (ViewConfiguration.getMaximumFlingVelocity() >> 16) - 5, 439211254 - MotionEvent.axisFromString(""), (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.fragment_gift_tag).substring(0, 17).codePointAt(10) - 105), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 13, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.contact_info_mcmc_topup_name_title).substring(0, 12).codePointAt(10) - 3635, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 30088), 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 baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2142370278, Gravity.getAbsoluteGravity(0, 0) + 3, KeyEvent.normalizeMetaState(0) + 439211255, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.cardless_successful_request_tag).substring(0, 30).length() - 30), objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 29, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(1) - 93, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.single_form_omnibus_address_info_remark).substring(46, 47).length() - 1), objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
int i4 = q + 61;
t = i4 % 128;
int i5 = i4 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i6 = q + 9;
t = i6 % 128;
int i7 = i6 % 2;
}
if (baseContext != null) {
int i8 = q + 99;
t = i8 % 128;
int i9 = i8 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - TextUtils.indexOf("", "", 0, 0), (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.prepaid_request_decline_terms_alert_description).substring(31, 32).codePointAt(0) - 9, 48 - TextUtils.getOffsetAfter("", 0), (char) (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(10) - 111), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2142370303, View.resolveSizeAndState(0, 0, 0) + 41, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 439211258, (byte) (Process.myPid() >> 22), objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.loan_tracking_no_loan_scb_contact).substring(13, 14).length() + 70, 64 - (ViewConfiguration.getEdgeSlop() >> 16), (char) TextUtils.indexOf("", ""), objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 122, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 61, (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1), objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.schedule_setup_remarks).substring(87, 88).length() - 1), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) + 2142370288, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 31, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 439211181, (byte) Color.alpha(0), objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ntb_pin_setup_page_title).substring(8, 12).length() - 4), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 2142370391, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 21, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_business_owner_marketplace_about_subtitle2).substring(135, 136).codePointAt(0) + 439211227, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.remittance_mobile_desc).substring(67, 68).codePointAt(0) - 32), objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 487, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) (ViewConfiguration.getMaximumFlingVelocity() >> 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, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
setContentView(R.layout.2131558719);
ButterKnife.Dg_(this);
super.Z();
ac();
this.webView.setWebChromeClient(new WebChromeClient());
this.webView.getSettings().setJavaScriptEnabled(true);
this.webView.getSettings().setBuiltInZoomControls(true);
this.webView.getSettings().setDisplayZoomControls(false);
this.webView.setWebViewClient(new C10318eAn(this));
this.webView.clearCache(true);
this.webView.clearHistory();
String stringExtra = getIntent().getStringExtra("com.scb.phone.view.activity.etb.EXTRA_HEADER");
String stringExtra2 = getIntent().getStringExtra("com.scb.phone.view.activity.etb.EXTRA_URL");
p(stringExtra);
try {
StringBuilder sb = new StringBuilder("https://docs.google.com/gview?embedded=true&url=");
sb.append(URLEncoder.encode(stringExtra2, "utf-8"));
this.webView.loadUrl(sb.toString());
} catch (UnsupportedEncodingException e) {
guQ.e(e);
}
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
int i = 2 % 2;
int i2 = q + 97;
t = i2 % 128;
if (i2 % 2 != 0) {
super.Z();
ac();
int i3 = 50 / 0;
} else {
super.Z();
ac();
}
int i4 = q + 125;
t = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.dMB, 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) {
Object[] objArr = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(10) - 111), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2142370278, 3 - View.MeasureSpec.makeMeasureSpec(0, 0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_business_owner_progress_loan_info).substring(92, 93).codePointAt(0) + 439211223, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_personal_info_otp_verify).substring(12, 17).codePointAt(1) - 79), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.opt_delay).substring(20, 21).codePointAt(0) - 27, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.changed_statement_channel_will_be_updated_next_day).substring(0, 1).codePointAt(0) - 24, (char) (ViewConfiguration.getJumpTapTimeout() >> 16), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i2 = q + 73;
t = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
int i4 = t + 61;
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(492 - Color.alpha(0), 5 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1))).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 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 5 - View.resolveSizeAndState(0, 0, 0), (char) ((Process.getThreadPriority(0) + 20) >> 6))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
int i5 = t + 35;
q = i5 % 128;
int i6 = i5 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
private static void aA(short s2, int i, int i2, int i3, byte b, Object[] objArr) {
int i4;
boolean z;
int length;
byte[] bArr;
int i5;
int i6 = 2;
int i7 = 2 % 2;
DFY dfy = new DFY();
StringBuilder sb = new StringBuilder();
try {
Object[] objArr2 = {Integer.valueOf(i2), Integer.valueOf(f7142o)};
Object obj = xzZ.y.get(-2092856797);
if (obj == null) {
Class cls = (Class) xzZ.c(338 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
aC(b2, b3, (byte) (b3 - 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj);
}
Object obj2 = null;
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
if (intValue == -1) {
int i8 = $10 + 101;
$11 = i8 % 128;
int i9 = i8 % 2;
i4 = 1;
} else {
i4 = 0;
}
if (i4 != 0) {
int i10 = $10 + 91;
$11 = i10 % 128;
if (i10 % 2 == 0) {
obj2.hashCode();
throw null;
}
byte[] bArr2 = m;
if (bArr2 != null) {
int length2 = bArr2.length;
byte[] bArr3 = new byte[length2];
int i11 = 0;
while (i11 < length2) {
int i12 = $11 + 107;
$10 = i12 % 128;
int i13 = i12 % i6;
try {
Object[] objArr4 = {Integer.valueOf(bArr2[i11])};
Object obj3 = xzZ.y.get(-1648115392);
if (obj3 == null) {
Class cls2 = (Class) xzZ.c(59 - ((byte) KeyEvent.getModifierMetaStateMask()), 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) TextUtils.indexOf("", "", 0, 0));
byte b4 = (byte) 0;
byte b5 = (byte) (b4 + 2);
Object[] objArr5 = new Object[1];
aC(b4, b5, (byte) (b5 - 3), objArr5);
obj3 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1648115392, obj3);
}
bArr3[i11] = ((Byte) ((Method) obj3).invoke(null, objArr4)).byteValue();
i11++;
i6 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
bArr2 = bArr3;
}
if (bArr2 != null) {
byte[] bArr4 = m;
Object[] objArr6 = {Integer.valueOf(i), Integer.valueOf(k)};
Object obj4 = xzZ.y.get(-2092856797);
if (obj4 == null) {
Class cls3 = (Class) xzZ.c(338 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), 5 - KeyEvent.keyCodeFromString(""), (char) TextUtils.indexOf("", "", 0, 0));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
aC(b6, b7, (byte) (b7 - 1), objArr7);
obj4 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj4);
}
intValue = (byte) (((byte) (bArr4[((Integer) ((Method) obj4).invoke(null, objArr6)).intValue()] ^ (-7303220121662775787L))) + ((int) (f7142o ^ (-7303220121662775787L))));
} else {
intValue = (short) (((short) (p[i + ((int) (k ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (f7142o ^ (-7303220121662775787L))));
}
}
if (intValue > 0) {
int i14 = $11 + 81;
$10 = i14 % 128;
int i15 = i14 % 2;
dfy.c = ((i + intValue) - 2) + ((int) (k ^ (-7303220121662775787L))) + i4;
Object[] objArr8 = {dfy, Integer.valueOf(i3), Integer.valueOf(l), sb};
Object obj5 = xzZ.y.get(1546973421);
if (obj5 == null) {
obj5 = ((Class) xzZ.c(748 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (-16777211) - Color.rgb(0, 0, 0), (char) View.resolveSizeAndState(0, 0, 0))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class);
xzZ.y.put(1546973421, obj5);
}
((StringBuilder) ((Method) obj5).invoke(null, objArr8)).append(dfy.a);
dfy.e = dfy.a;
byte[] bArr5 = m;
if (bArr5 != null) {
int i16 = $10 + 125;
$11 = i16 % 128;
if (i16 % 2 == 0) {
length = bArr5.length;
bArr = new byte[length];
i5 = 1;
} else {
length = bArr5.length;
bArr = new byte[length];
i5 = 0;
}
while (i5 < length) {
bArr[i5] = (byte) (bArr5[i5] ^ (-7303220121662775787L));
i5++;
}
bArr5 = bArr;
}
if (bArr5 != null) {
int i17 = $11 + 77;
$10 = i17 % 128;
int i18 = i17 % 2;
z = true;
} else {
z = false;
}
dfy.d = 1;
while (dfy.d < intValue) {
if (z) {
byte[] bArr6 = m;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r7] ^ (-7303220121662775787L))) + s2)) ^ b));
} else {
short[] sArr = p;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r7] ^ (-7303220121662775787L))) + s2)) ^ b));
}
sb.append(dfy.a);
dfy.e = dfy.a;
dfy.d++;
}
}
objArr[0] = sb.toString();
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
/* JADX WARN: Code restructure failed: missing block: B:28:0x0021, code lost:
r1 = com.scb.phone.view.activity.etb.PdfViewerActivity.t + 51;
com.scb.phone.view.activity.etb.PdfViewerActivity.q = r1 % 128;
r1 = r1 % 2;
r7 = (java.lang.Object[]) null;
r12 = new java.lang.Object[1];
aA((short) (android.view.ViewConfiguration.getMinimumFlingVelocity() >> 16), ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2142370278, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.point_x_tool_title).substring(0, 7).codePointAt(1) - 76, (android.view.ViewConfiguration.getScrollBarSize() >> 8) + 439211255, (byte) (((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), r12);
r5 = java.lang.Class.forName((java.lang.String) r12[0]);
r8 = new java.lang.Object[1];
aB(((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 29, (android.widget.ExpandableListView.getPackedPositionForChild(0, 0) > 0 ? 1 : (android.widget.ExpandableListView.getPackedPositionForChild(0, 0) == 0 ? 0 : -1)) + 19, (char) (((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.billpayment_bnpl_coin_more_detail_description_3_1).substring(0, 120).codePointAt(22) - 3585), r8);
r1 = (android.content.Context) r5.getMethod((java.lang.String) r8[0], new java.lang.Class[0]).invoke(null, null);
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x001f, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0018, code lost:
if (r1 == null) goto L9;
*/
@Override // o.dMB, 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 onPause() {
/*
Method dump skipped, instructions count: 456
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.etb.PdfViewerActivity.onPause():void");
}
@Override // o.dMB, 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 void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
int i2 = t + 43;
q = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aA((short) (ImageFormat.getBitsPerPixel(0) + 1), KeyEvent.normalizeMetaState(0) + 2142370295, (-6) - MotionEvent.axisFromString(""), 439211255 - (ViewConfiguration.getTapTimeout() >> 16), (byte) TextUtils.indexOf("", "", 0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(Color.red(0), Color.rgb(0, 0, 0) + 16777221, (char) (30121 - TextUtils.lastIndexOf("", '0', 0)), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i4 = t + 21;
q = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 86 / 0;
if (intValue <= 99999) {
return;
}
} else if (intValue <= 99999) {
return;
}
}
if (context != null) {
int i6 = q + 11;
t = i6 % 128;
int i7 = i6 % 2;
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(491 - TextUtils.indexOf((CharSequence) "", '0'), Drawable.resolveOpacity(0, 0) + 5, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aB(23 - (ViewConfiguration.getWindowTouchSlop() >> 8), 48 - TextUtils.getOffsetBefore("", 0), (char) View.MeasureSpec.makeMeasureSpec(0, 0), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aA((short) (MotionEvent.axisFromString("") + 1), Drawable.resolveOpacity(0, 0) + 2142370337, 41 - TextUtils.getOffsetBefore("", 0), 439211259 - (ViewConfiguration.getWindowTouchSlop() >> 8), (byte) (ViewConfiguration.getKeyRepeatDelay() >> 16), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aB(71 - (ViewConfiguration.getScrollBarSize() >> 8), 65 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) TextUtils.getTrimmedLength(""), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aB(135 - (ViewConfiguration.getFadingEdgeLength() >> 16), 74 - (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)), (char) (ViewConfiguration.getScrollDefaultDelay() >> 16), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aA((short) (ViewConfiguration.getEdgeSlop() >> 16), 2142370401 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (-18) - TextUtils.getOffsetBefore("", 0), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 439211215, (byte) ExpandableListView.getPackedPositionGroup(0L), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aA((short) KeyEvent.getDeadChar(0, 0), Gravity.getAbsoluteGravity(0, 0) + 2142370404, TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 14, TextUtils.lastIndexOf("", '0') + 439211260, (byte) View.MeasureSpec.makeMeasureSpec(0, 0), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 486, 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) (ViewConfiguration.getKeyRepeatDelay() >> 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, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
@Override // o.dMB, 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 + 51;
t = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
int i4 = 26 / 0;
}
int i5 = q + 53;
t = i5 % 128;
int i6 = i5 % 2;
}
}