what-the-bank/sources/com/kofax/mobile/sdk/capture/bill/BillExtractActivity.java

484 lines
33 KiB
Java

package com.kofax.mobile.sdk.capture.bill;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
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 com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.dagger.Injector;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.kofax.mobile.sdk.capture.ExtractActivity;
import com.scb.phone.R;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.InterfaceC13391fZD;
import o.jTb;
import o.xzZ;
import org.bouncycastle.crypto.signers.PSSSigner;
import org.jmrtd.cbeff.ISO781611;
/* loaded from: classes3.dex */
public class BillExtractActivity extends ExtractActivity<BillExtractorResponse> {
private static short[] i;
@InterfaceC13391fZD
BillExtractor Zw;
private static final byte[] $$d = {101, 120, 60, 69};
private static final int $$e = 206;
private static int $10 = 0;
private static int $11 = 1;
private static int h = 0;
private static int n = 1;
private static char e = 49050;
private static char d = 22906;
private static char a = 40632;
private static char b = 41081;
private static int c = -1717539631;
private static int g = 1406017053;
private static int j = -2145956652;
private static byte[] f = {110, ISOFileInfo.DATA_BYTES2, 73, -103, 95, -67, 69, PSSSigner.TRAILER_IMPLICIT, ISOFileInfo.FCP_BYTE, -107, 104, 94, 110, 109, ISOFileInfo.FCI_BYTE, ISOFileInfo.A5, 97, 107, 106, 110, 93, ISO7816.INS_READ_RECORD2, ISO7816.INS_REHABILITATE_CHV, PSSSigner.TRAILER_IMPLICIT, 88, -67, 94, -67, 70, -67, 105, 99, -108, ISOFileInfo.FCI_BYTE, 89, ISO7816.INS_READ_BINARY, -107, 89, -65, 88, -65, 97, 71, 105, 99, 107, -66, 89, PSSSigner.TRAILER_IMPLICIT, 109, -108, ISO7816.INS_MANAGE_CHANNEL, 117, -104, 74, 125, 58, -103, ISO7816.INS_MSE, -101, 75, 35, -104, 39, -102, 32, 118, -104, 115, 72, 117, 35, 117, -104, 32, 116, -98, 113, 32, -104, 74, 116, 117, 124, 77, 125, 37, ISOFileInfo.DATA_BYTES2, 78, 113, 117, 33, -103, 33, ISOFileInfo.FCI_EXT, 119, 75, 74, 115, 78, 119, ISO7816.INS_MANAGE_CHANNEL, 72, ISO7816.INS_MANAGE_CHANNEL, 75, ISO7816.INS_CHANGE_CHV, -104, 115, 38, -104, 39, ISOFileInfo.PROP_INFO, 32, 75, ISO7816.INS_APPEND_RECORD, -86, -47, -41, Byte.MIN_VALUE, -44, ISO7816.INS_DELETE_FILE, ISOFileInfo.SECURITY_ATTR_COMPACT, -25, ISOFileInfo.FCI_EXT, -31, -35, -104, -44, -45, -47, ISO7816.INS_APPEND_RECORD, -86, ISO7816.INS_UPDATE_BINARY, -41, -44, -33, -101, -43, -19, -88, -39, -43, -86, ISOFileInfo.AB, ISOFileInfo.ENV_TEMP_EF, -26, ISO7816.INS_WRITE_BINARY, ISOFileInfo.DATA_BYTES2, -86, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK};
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002f). 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 q(int r6, int r7, int r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 4
int r0 = 1 - r6
byte[] r1 = com.kofax.mobile.sdk.capture.bill.BillExtractActivity.$$d
int r8 = 110 - r8
int r7 = r7 * 2
int r7 = 3 - r7
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L17
r3 = r8
r4 = r2
r8 = r7
goto L2f
L17:
r3 = r2
L18:
int r7 = r7 + 1
byte r4 = (byte) r8
r0[r3] = r4
int r4 = r3 + 1
if (r3 != r6) goto L29
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L29:
r3 = r1[r7]
r5 = r8
r8 = r7
r7 = r3
r3 = r5
L2f:
int r7 = r7 + r3
r3 = r4
r5 = r8
r8 = r7
r7 = r5
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.bill.BillExtractActivity.q(int, int, int, java.lang.Object[]):void");
}
@Override // com.kofax.mobile.sdk.capture.ExtractActivity, android.app.Activity
public void onCreate(Bundle bundle) {
int i2 = 2 % 2;
int i3 = h + 7;
n = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
o(new char[]{46011, 4048, 59241, 37178, 11895, 64463, 11407, 45720, 41068, 30470, 27062, 35970, 10432, 24605, 278, 41085, 14200, 25142}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.sum_insurance_hint).substring(0, 4).length() + 14, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
p((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 141), 898731321 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.single_form_icon_risk_level).substring(5, 8).length(), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 16, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 740732331, (byte) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == 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 baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
o(new char[]{46011, 4048, 59241, 37178, 11895, 64463, 11407, 45720, 57026, 6017, 12934, 11650, 32823, 33234, 29144, 21679, 32125, 33835, 50902, 30323, 38193, 2767, 18783, 41559, 61535, 49773}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.material_minute_suffix).substring(0, 5).codePointAt(1) - 23, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
o(new char[]{37781, 32590, 17186, 25342, 44657, 33251, 11991, 28689, 9167, 12570, 46313, 60083, 21667, 49908, 29144, 21679, 3987, 38004}, KeyEvent.getDeadChar(0, 0) + 18, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i5 = n + 43;
h = i5 % 128;
int i6 = i5 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((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)) + 492, TextUtils.getOffsetAfter("", 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[] objArr5 = new Object[1];
p((short) (View.combineMeasuredStates(0, 0) - 123), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 898731294, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 6, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 740732238, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
p((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 110), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 898731341, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_landing_info_item_2_business_owner).substring(17, 18).codePointAt(0) + 24, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 740732290, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.account_selector_cardless_footnote).substring(0, 2).length() - 2), objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
o(new char[]{20669, 18666, 58378, 45126, 57082, 9273, 31913, 23701, 2519, 30024, 42370, 42834, 30047, 54282, 14355, 29102, 4663, 41423, 49631, 3714, 34903, 28117, 39135, 21456, 25642, 31319, 3175, 8283, 2764, 52833, 5196, 59277, 5612, 65333, 30615, 15424, 46680, 37098, 48838, 48379, 42932, 49753, 6912, 61715, 54568, 6593, 10744, 57244, 50631, 4779, 36840, 46298, 16238, 61869, 61046, 16458, 33452, 5390, 39545, 19328, 53082, 48045, 43777, 53315}, 64 - TextUtils.indexOf("", ""), objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
o(new char[]{44959, 56149, 62196, 9648, 20522, 38372, 42910, 51789, 38877, 11130, 63510, 47644, 61907, 48546, 62676, 10965, 21983, 14738, 9144, 252, 56876, 34352, 30713, 44219, 40139, 24674, 36481, 24308, 54476, 4311, 39714, 15662, 22695, 44432, 20631, 1393, 14826, 62606, 9692, 9637, 40978, 54614, 54185, 33208, 23728, 3443, 40978, 54614, 13616, 27983, 61907, 48546, 40567, 7185, 57026, 6017, 52120, 34270, 60631, 31643, 35622, 58392, 64544, 21188, 46186, 736, 16089, 61980, 52712, 20556, 44657, 33251, 36605, 38022}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_single_form_check_eligibility_omnibus_remark).substring(128, ISO781611.BIOMETRIC_SUBTYPE_TAG).codePointAt(0) - 37, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
o(new char[]{36351, 29125, 38264, 15085, 9355, 45868}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_verify_national_ID_description).substring(58, 59).length() + 4, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
p((short) (60 - ImageFormat.getBitsPerPixel(0)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.etb_personal_info_current_mailing_address).substring(17, 18).codePointAt(0) + 898731406, ExpandableListView.getPackedPositionGroup(0L) + 28, 740732323 - TextUtils.lastIndexOf("", '0', 0, 0), (byte) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), 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(487 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), 4 - TextUtils.lastIndexOf("", '0', 0), (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1))).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;
}
}
}
Injector.getInjector(this).inject(this);
super.onCreate(bundle);
this.Zw.setParameters(getParameters(bundle).getExtractionParameters());
setExtract(this.Zw);
int i7 = n + 81;
h = i7 % 128;
int i8 = i7 % 2;
}
private static void o(char[] cArr, int i2, Object[] objArr) {
int i3;
int i4 = 2;
int i5 = 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 i6 = $11 + 35;
$10 = i6 % 128;
if (i6 % i4 != 0) {
cArr3[1] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b];
} else {
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
}
int i7 = 58224;
int i8 = 0;
while (i8 < 16) {
int i9 = $11 + 73;
$10 = i9 % 128;
int i10 = i9 % i4;
char c2 = cArr3[1];
char c3 = cArr3[0];
int i11 = (c3 + i7) ^ ((c3 << 4) + ((char) (a ^ 41718355337583039L)));
int i12 = c3 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(b);
objArr2[i4] = Integer.valueOf(i12);
objArr2[1] = Integer.valueOf(i11);
objArr2[0] = Integer.valueOf(c2);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf("", "", 0, 0) + 412, 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
q(b2, b3, (byte) (b3 | ISO7816.INS_UNBLOCK_CHV), 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) (e ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(d)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getLongPressTimeout() >> 16), 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) KeyEvent.keyCodeFromString(""));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
q(b4, b5, (byte) (b5 | ISO7816.INS_UNBLOCK_CHV), 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++;
i4 = 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) {
i3 = 2;
} else {
Class cls3 = (Class) xzZ.c(98 - (ViewConfiguration.getLongPressTimeout() >> 16), (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) ((-1) - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
q(b6, b7, (byte) (b7 | 43), objArr7);
i3 = 2;
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
i4 = i3;
}
objArr[0] = new String(cArr2, 0, i2);
}
@Override // com.kofax.mobile.sdk.capture.ExtractActivity, android.app.Activity
public void onResume() {
int i2 = 2 % 2;
int i3 = n + 9;
h = i3 % 128;
if (i3 % 2 != 0) {
getBaseContext();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
o(new char[]{46011, 4048, 59241, 37178, 11895, 64463, 11407, 45720, 57026, 6017, 12934, 11650, 32823, 33234, 29144, 21679, 32125, 33835, 50902, 30323, 38193, 2767, 18783, 41559, 61535, 49773}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(3) - 20, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
o(new char[]{37781, 32590, 17186, 25342, 44657, 33251, 11991, 28689, 9167, 12570, 46313, 60083, 21667, 49908, 29144, 21679, 3987, 38004}, 17 - TextUtils.indexOf((CharSequence) "", '0'), 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 = h + 95;
n = i4 % 128;
try {
if (i4 % 2 == 0) {
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, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) (ViewConfiguration.getKeyRepeatDelay() >> 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.getOffsetBefore("", 0) + 487, 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) TextUtils.getOffsetBefore("", 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i5 = 50 / 0;
} else {
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 493, View.combineMeasuredStates(0, 0) + 5, (char) (Process.myTid() >> 22))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj4 = xzZ.y.get(1378719468);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(View.getDefaultSize(0, 0) + 487, 5 - KeyEvent.normalizeMetaState(0), (char) TextUtils.getCapsMode("", 0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj4);
}
((Method) obj4).invoke(invoke2, objArr4);
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
@Override // com.kofax.mobile.sdk.capture.ExtractActivity, android.app.Activity
public void onPause() {
int i2 = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
o(new char[]{46011, 4048, 59241, 37178, 11895, 64463, 11407, 45720, 57026, 6017, 12934, 11650, 32823, 33234, 29144, 21679, 32125, 33835, 50902, 30323, 38193, 2767, 18783, 41559, 61535, 49773}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(3) - 20, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
o(new char[]{37781, 32590, 17186, 25342, 44657, 33251, 11991, 28689, 9167, 12570, 46313, 60083, 21667, 49908, 29144, 21679, 3987, 38004}, Gravity.getAbsoluteGravity(0, 0) + 18, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i3 = h + 107;
n = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
int i5 = n + 91;
h = i5 % 128;
int i6 = i5 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(491 - TextUtils.lastIndexOf("", '0'), 5 - View.combineMeasuredStates(0, 0), (char) View.MeasureSpec.getMode(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(487 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 5 - Color.red(0), (char) KeyEvent.getDeadChar(0, 0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i7 = h + 109;
n = i7 % 128;
int i8 = i7 % 2;
}
/* JADX WARN: Removed duplicated region for block: B:36:0x01af */
/* JADX WARN: Removed duplicated region for block: B:45:0x01f4 */
/* JADX WARN: Removed duplicated region for block: B:49:0x0248 */
/* JADX WARN: Removed duplicated region for block: B:61:0x027b */
/* JADX WARN: Removed duplicated region for block: B:65:0x0284 */
/* JADX WARN: Removed duplicated region for block: B:78:0x027d */
/* JADX WARN: Removed duplicated region for block: B:80:0x01f5 A[Catch: all -> 0x02ec, TryCatch #0 {all -> 0x02ec, blocks: (B:43:0x01d1, B:46:0x0232, B:80:0x01f5), top: B:42:0x01d1 }] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void p(short r19, int r20, int r21, int r22, byte r23, java.lang.Object[] r24) {
/*
Method dump skipped, instructions count: 773
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.bill.BillExtractActivity.p(short, int, int, int, byte, java.lang.Object[]):void");
}
@Override // com.kofax.mobile.sdk.capture.ExtractActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
int i2 = 2 % 2;
int i3 = h + 99;
n = i3 % 128;
int i4 = i3 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
o(new char[]{46011, 4048, 59241, 37178, 11895, 64463, 11407, 45720, 41068, 30470, 27062, 35970, 10432, 24605, 278, 41085, 14200, 25142}, View.resolveSize(0, 0) + 18, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
p((short) ((-128) - (ViewConfiguration.getTapTimeout() >> 16)), Process.getGidForName("") + 898731325, View.combineMeasuredStates(0, 0) - 3, 740732331 + (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (byte) ExpandableListView.getPackedPositionGroup(0L), 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 i5 = n + 49;
h = i5 % 128;
int i6 = i5 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 4 - Process.getGidForName(""), (char) ('0' - AndroidCharacter.getMirror('0')))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
p((short) ((-123) - View.MeasureSpec.getMode(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)) + 898731328, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 40, 740732272 - Color.alpha(0), (byte) ((Process.getThreadPriority(0) + 20) >> 6), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
p((short) ((-98) - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 898731375, Color.argb(0, 0, 0, 0) + 56, 740732324 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (byte) (1 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1))), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
o(new char[]{20669, 18666, 58378, 45126, 57082, 9273, 31913, 23701, 2519, 30024, 42370, 42834, 30047, 54282, 14355, 29102, 4663, 41423, 49631, 3714, 34903, 28117, 39135, 21456, 25642, 31319, 3175, 8283, 2764, 52833, 5196, 59277, 5612, 65333, 30615, 15424, 46680, 37098, 48838, 48379, 42932, 49753, 6912, 61715, 54568, 6593, 10744, 57244, 50631, 4779, 36840, 46298, 16238, 61869, 61046, 16458, 33452, 5390, 39545, 19328, 53082, 48045, 43777, 53315}, (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 64, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
o(new char[]{44959, 56149, 62196, 9648, 20522, 38372, 42910, 51789, 38877, 11130, 63510, 47644, 61907, 48546, 62676, 10965, 21983, 14738, 9144, 252, 56876, 34352, 30713, 44219, 40139, 24674, 36481, 24308, 54476, 4311, 39714, 15662, 22695, 44432, 20631, 1393, 14826, 62606, 9692, 9637, 40978, 54614, 54185, 33208, 23728, 3443, 40978, 54614, 13616, 27983, 61907, 48546, 40567, 7185, 57026, 6017, 52120, 34270, 60631, 31643, 35622, 58392, 64544, 21188, 46186, 736, 16089, 61980, 52712, 20556, 44657, 33251, 36605, 38022}, 73 - TextUtils.lastIndexOf("", '0', 0), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
o(new char[]{36351, 29125, 38264, 15085, 9355, 45868}, 5 - TextUtils.indexOf("", "", 0, 0), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
p((short) (View.combineMeasuredStates(0, 0) + 61), 898731439 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), 29 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), 740732324 - KeyEvent.keyCodeFromString(""), (byte) Color.red(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((ViewConfiguration.getScrollDefaultDelay() >> 16) + 487, 5 - KeyEvent.getDeadChar(0, 0), (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1))).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 // com.kofax.mobile.sdk.capture.ExtractActivity, android.app.Activity
public void onStart() {
int i2 = 2 % 2;
int i3 = n + 47;
h = i3 % 128;
int i4 = i3 % 2;
super.onStart();
int i5 = n + 3;
h = i5 % 128;
int i6 = i5 % 2;
}
}