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

684 lines
22 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Color;
import android.text.TextUtils;
import android.view.ViewConfiguration;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
import java.io.IOException;
import java.lang.reflect.Method;
import java.nio.charset.Charset;
import java.util.Map;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractC1958aTW;
import okhttp3.Headers;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec;
import retrofit2.Response;
/* renamed from: o.bkO, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C4977bkO extends ZTC {
private final C0177Arq a;
private final TDT b;
private final QYT e;
private static final byte[] $$d = {105, ISOFileInfo.A5, 80, 53};
private static final int $$e = CipherSuite.TLS_PSK_WITH_NULL_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 0;
private static int f = 1;
private static long d = 2606400974977685467L;
public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ~(i4 | i2);
int i6 = ~i2;
int i7 = (i * 615) + (i2 * (-613)) + ((i3 | i5 | (~(i6 | i))) * 614);
int i8 = ~i3;
int i9 = i7 + ((i5 | (~(i4 | i8)) | (~(i8 | i2))) * (-1228)) + (((~(i | i8 | i2)) | (~(i4 | i6 | i8))) * 614);
return i9 != 1 ? i9 != 2 ? a(objArr) : b(objArr) : d(objArr);
}
private static void g(byte b, byte b2, int i, Object[] objArr) {
byte[] bArr = $$d;
int i2 = (b2 * 2) + 119;
int i3 = i * 2;
int i4 = b + 4;
byte[] bArr2 = new byte[i3 + 1];
int i5 = -1;
if (bArr == null) {
i2 = i4 + (-i2);
i4 = i4;
}
while (true) {
i5++;
bArr2[i5] = (byte) i2;
int i6 = i4 + 1;
if (i5 == i3) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i2 += -bArr[i6];
i4 = i6;
}
}
}
private static void i(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(d ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
while (guL.a < a.length) {
int i4 = $11 + 93;
$10 = i4 % 128;
int i5 = i4 % 2;
guL.c = guL.a - i3;
int i6 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(d)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(208 - (ViewConfiguration.getFadingEdgeLength() >> 16), 6 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) (1706 - TextUtils.getOffsetBefore("", 0)));
byte b = (byte) (-1);
byte b2 = (byte) (b + 1);
Object[] objArr3 = new Object[1];
g(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(393 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), 4 - TextUtils.lastIndexOf("", '0', 0, 0), (char) Color.red(0));
byte b3 = (byte) (-1);
byte b4 = (byte) (-b3);
Object[] objArr5 = new Object[1];
g(b3, b4, (byte) (b4 - 1), 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;
}
}
String str = new String(a, 4, a.length - 4);
int i7 = $10 + 81;
$11 = i7 % 128;
int i8 = i7 % 2;
objArr[0] = str;
}
@InterfaceC13391fZD
public C4977bkO(C0177Arq c0177Arq, TDT tdt) {
this.e = new QYT(c0177Arq);
this.a = c0177Arq;
this.b = tdt;
}
public final Zvo b(Response<AkW<SingleDataEntity<WYA>>> response) throws IOException {
int i = 2 % 2;
Headers headers = response.headers();
String str = headers.get("Api-Auth");
String str2 = headers.get("Api-Refresh");
AkW<SingleDataEntity<WYA>> body = response.body();
if (!BET.SUCCESS.status.equals(e(body).e)) {
int i2 = f + 95;
c = i2 % 128;
if (i2 % 2 == 0) {
DiG.a(body);
} else {
DiG.a(body);
throw null;
}
}
if (TextUtils.isEmpty(str)) {
yzb yzbVar = new yzb();
yzbVar.e = "1999";
DiG.e(yzbVar);
}
iKd e = this.e.e(body.c.getData());
Zvo zvo = new Zvo();
zvo.d = str;
zvo.e = str2;
zvo.a = e;
int i3 = c + 45;
f = i3 % 128;
int i4 = i3 % 2;
return zvo;
}
public final Zvo a(Response<SingleDataEntity<WYA>> response) throws IOException {
int i = 2 % 2;
int i2 = f + 25;
c = i2 % 128;
int i3 = i2 % 2;
Headers headers = response.headers();
String str = headers.get("Api-Auth");
String str2 = headers.get("Api-Refresh");
SingleDataEntity<WYA> body = response.body();
WYA data = body.getData();
iJI e = e(body);
if (!BET.SUCCESS.status.equals(e.e) && !"3040".equals(e.a)) {
DiG.a(body);
}
if (body.getStatus() != null) {
int i4 = c + 51;
f = i4 % 128;
if (i4 % 2 == 0) {
AbstractC1958aTW.ZnX.d.a.equals(body.getStatus().e);
Object obj = null;
obj.hashCode();
throw null;
}
if (AbstractC1958aTW.ZnX.d.a.equals(body.getStatus().e)) {
DiG.e(body.getStatus());
}
}
if (TextUtils.isEmpty(str) && !"3040".equals(e.a)) {
yzb yzbVar = new yzb();
yzbVar.e = "1999";
DiG.e(yzbVar);
}
iKd e2 = this.e.e(data);
Zvo zvo = new Zvo();
zvo.d = str;
zvo.e = str2;
zvo.a = e2;
zvo.b = e.a;
return zvo;
}
public final MGR a(Czl czl) {
int i = 2 % 2;
int i2 = c + 123;
f = i2 % 128;
int i3 = i2 % 2;
MGR mgr = new MGR(gjJ.b((CharSequence) czl.d) ? this.a.a() : czl.d);
int i4 = f + 65;
c = i4 % 128;
if (i4 % 2 == 0) {
return mgr;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final srd e(C0556Jhj c0556Jhj) {
String str;
int i = 2 % 2;
int i2 = c + 87;
f = i2 % 128;
if (i2 % 2 != 0) {
if (gjJ.b((CharSequence) c0556Jhj.d)) {
str = this.a.a();
int i3 = c + 117;
f = i3 % 128;
int i4 = i3 % 2;
} else {
str = c0556Jhj.d;
}
return new srd(str);
}
gjJ.b((CharSequence) c0556Jhj.d);
throw null;
}
private static /* synthetic */ Object a(Object[] objArr) {
QtZ qtZ = (QtZ) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
byte[] bArr = null;
if (gjJ.b((CharSequence) qtZ.e)) {
throw new EntityMappingException("data must not be null or empty", null);
}
int i2 = f + 15;
c = i2 % 128;
int i3 = i2 % 2;
Object[] objArr2 = new Object[1];
i(new char[]{49883, 37833, 49899, 62030, 6955}, TextUtils.indexOf("", "", 0, 0), objArr2);
if (((String) objArr2[0]).intern().equals(qtZ.e)) {
uWB uwb = new uWB(qtZ.e);
int i4 = f + 97;
c = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 87 / 0;
}
return uwb;
}
String str2 = qtZ.e;
String substring = str2.substring(0, 3);
Charset charset = C15192gjm.a;
if (str != null) {
bArr = str.getBytes(charset);
int i6 = c + 103;
f = i6 % 128;
int i7 = i6 % 2;
}
String a = C15190gjk.a(C15189gjj.c(McElieceCCA2KeyGenParameterSpec.SHA1).digest(bArr));
String substring2 = str2.substring(3);
StringBuilder sb = new StringBuilder();
sb.append(substring2.substring(0, substring2.length() - 3));
sb.append("scb");
String obj = sb.toString();
StringBuilder sb2 = new StringBuilder();
sb2.append(a);
sb2.append(obj);
String c2 = c(((Integer) d(new Object[]{str2.substring(str2.length() - 2)}, 192613180, -192613179, (int) System.currentTimeMillis())).intValue(), sb2.toString());
String lowerCase = gjF.a(((Integer) d(new Object[]{substring}, 192613180, -192613179, (int) System.currentTimeMillis())).intValue() - c2.length()).toLowerCase();
StringBuilder sb3 = new StringBuilder();
sb3.append(c2);
sb3.append(lowerCase);
return new uWB(sb3.toString());
}
private static /* synthetic */ Object d(Object[] objArr) {
String str = (String) objArr[0];
int i = 2 % 2;
int i2 = f + 105;
c = i2 % 128;
try {
if (i2 % 2 != 0) {
Integer.parseInt(str);
Object obj = null;
obj.hashCode();
throw null;
}
int parseInt = Integer.parseInt(str);
int i3 = f + 123;
c = i3 % 128;
if (i3 % 2 == 0) {
return Integer.valueOf(parseInt);
}
int i4 = 16 / 0;
return Integer.valueOf(parseInt);
} catch (NumberFormatException unused) {
return 0;
}
}
private static String c(int i, String str) {
int i2 = 2 % 2;
int i3 = i % 5;
if (i3 == 0) {
return C15190gjk.a(C15189gjj.c("MD5").digest(str != null ? str.getBytes(C15192gjm.a) : null));
}
if (i3 != 1) {
int i4 = c;
int i5 = i4 + 123;
f = i5 % 128;
int i6 = i5 % 2;
if (i3 == 2) {
return C15190gjk.a(C15189gjj.c(McElieceCCA2KeyGenParameterSpec.SHA256).digest(str != null ? str.getBytes(C15192gjm.a) : null));
}
if (i3 != 3) {
int i7 = i4 + 125;
f = i7 % 128;
if (i7 % 2 == 0) {
if (i3 != 3) {
return "";
}
} else if (i3 != 4) {
return "";
}
return C15190gjk.a(C15189gjj.c(McElieceCCA2KeyGenParameterSpec.SHA512).digest(str != null ? str.getBytes(C15192gjm.a) : null));
}
return C15190gjk.a(C15189gjj.c(McElieceCCA2KeyGenParameterSpec.SHA384).digest(str != null ? str.getBytes(C15192gjm.a) : null));
}
return C15190gjk.a(C15189gjj.c(McElieceCCA2KeyGenParameterSpec.SHA1).digest(str != null ? str.getBytes(C15192gjm.a) : null));
}
public final WGt b(oql oqlVar) {
int i = 2 % 2;
uBV ubv = new uBV(this.b.m, this.b.g, this.b.f);
C17675ynF c17675ynF = new C17675ynF(this.b.p, this.b.f8370o, this.b.d, this.b.y);
C17286vYv c17286vYv = new C17286vYv(this.b.k);
sjs sjsVar = new sjs(this.b.n, this.b.r, this.b.t);
Kax kax = new Kax(this.b.b, this.b.a);
IIX iix = new IIX(this.b.s, this.b.i, this.b.h, this.b.l, this.b.c);
Map<String, Boolean> map = this.b.j;
JZh jZh = new JZh(this.b.q);
XKc xKc = new XKc(this.b.e);
if (oqlVar != null) {
ubv = d(oqlVar.a);
c17675ynF = b(oqlVar.e);
c17286vYv = d(oqlVar.j);
kax = d(oqlVar.d);
sjsVar = (sjs) d(new Object[]{this, oqlVar.f}, -2075579029, 2075579031, System.identityHashCode(this));
iix = d(oqlVar.c);
if (oqlVar.b != null) {
map = oqlVar.b;
int i2 = f + 105;
c = i2 % 128;
int i3 = i2 % 2;
}
jZh = e(oqlVar.g);
xKc = a(oqlVar.i);
int i4 = c + 101;
f = i4 % 128;
int i5 = i4 % 2;
}
return new WGt(ubv, c17675ynF, c17286vYv, kax, sjsVar, iix, map, jZh, xKc);
}
private uBV d(C11804emJ c11804emJ) {
boolean z;
int i = 2 % 2;
boolean z2 = this.b.m;
boolean z3 = this.b.g;
boolean z4 = this.b.f;
if (c11804emJ != null) {
int i2 = c + 61;
f = i2 % 128;
if (i2 % 2 == 0) {
Boolean bool = c11804emJ.d;
Object obj = null;
obj.hashCode();
throw null;
}
z2 = c11804emJ.d != null ? c11804emJ.d.booleanValue() : this.b.m;
if (c11804emJ.e != null) {
int i3 = c + 75;
f = i3 % 128;
int i4 = i3 % 2;
z = c11804emJ.e.booleanValue();
} else {
z = this.b.g;
}
z3 = z;
z4 = c11804emJ.c != null ? c11804emJ.c.booleanValue() : this.b.f;
}
return new uBV(z2, z3, z4);
}
private C17675ynF b(EYF eyf) {
int i = 2 % 2;
boolean z = this.b.p;
boolean z2 = this.b.f8370o;
boolean z3 = this.b.d;
boolean z4 = this.b.y;
if (eyf != null) {
if (eyf.c != null) {
int i2 = c + 77;
f = i2 % 128;
int i3 = i2 % 2;
z = eyf.c.booleanValue();
} else {
z = this.b.p;
}
if (eyf.a != null) {
int i4 = f + 71;
c = i4 % 128;
if (i4 % 2 != 0) {
z2 = eyf.a.booleanValue();
int i5 = 81 / 0;
} else {
z2 = eyf.a.booleanValue();
}
} else {
z2 = this.b.f8370o;
}
z3 = eyf.e != null ? eyf.e.booleanValue() : this.b.d;
if (eyf.b != null) {
int i6 = c + 95;
f = i6 % 128;
int i7 = i6 % 2;
z4 = eyf.b.booleanValue();
} else {
z4 = this.b.y;
int i8 = f + 105;
c = i8 % 128;
int i9 = i8 % 2;
}
}
return new C17675ynF(z, z2, z3, z4);
}
private C17286vYv d(BWs bWs) {
int i = 2 % 2;
int i2 = c + 65;
f = i2 % 128;
if (i2 % 2 != 0) {
boolean z = this.b.k;
if (bWs != null) {
if (bWs.a != null) {
z = bWs.a.booleanValue();
} else {
z = this.b.k;
int i3 = f + 3;
c = i3 % 128;
int i4 = i3 % 2;
}
}
return new C17286vYv(z);
}
boolean z2 = this.b.k;
Object obj = null;
obj.hashCode();
throw null;
}
private Kax d(FOz fOz) {
Boolean bool;
int i = 2 % 2;
Boolean bool2 = this.b.b;
Boolean bool3 = this.b.a;
if (fOz != null) {
int i2 = c + 103;
f = i2 % 128;
int i3 = i2 % 2;
if (fOz.e != null) {
int i4 = c + 57;
f = i4 % 128;
int i5 = i4 % 2;
bool2 = fOz.e;
int i6 = f + 71;
c = i6 % 128;
int i7 = i6 % 2;
} else {
bool2 = this.b.b;
}
if (fOz.d != null) {
bool = fOz.d;
int i8 = f + 5;
c = i8 % 128;
if (i8 % 2 != 0) {
int i9 = 4 % 2;
}
} else {
bool = this.b.a;
}
bool3 = bool;
}
return new Kax(bool2, bool3);
}
private static /* synthetic */ Object b(Object[] objArr) {
C4977bkO c4977bkO = (C4977bkO) objArr[0];
Hro hro = (Hro) objArr[1];
int i = 2 % 2;
boolean z = c4977bkO.b.n;
boolean z2 = c4977bkO.b.r;
boolean z3 = c4977bkO.b.t;
if (hro != null) {
int i2 = f + 123;
c = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
Boolean bool = hro.a;
throw null;
}
if (hro.a != null) {
int i3 = c + 113;
f = i3 % 128;
int i4 = i3 % 2;
z = hro.a.booleanValue();
} else {
z = c4977bkO.b.n;
}
if (hro.d != null) {
int i5 = c + 21;
f = i5 % 128;
if (i5 % 2 == 0) {
hro.d.booleanValue();
obj.hashCode();
throw null;
}
z2 = hro.d.booleanValue();
} else {
z2 = c4977bkO.b.r;
}
if (hro.e != null) {
int i6 = c + 113;
f = i6 % 128;
int i7 = i6 % 2;
z3 = hro.e.booleanValue();
} else {
z3 = c4977bkO.b.t;
int i8 = c + 11;
f = i8 % 128;
int i9 = i8 % 2;
}
}
return new sjs(z, z2, z3);
}
private IIX d(BJJ bjj) {
int i = 2 % 2;
boolean z = this.b.s;
boolean z2 = this.b.i;
boolean z3 = this.b.h;
boolean z4 = this.b.l;
boolean z5 = this.b.c;
if (bjj != null) {
z = bjj.e != null ? bjj.e.booleanValue() : this.b.s;
if (bjj.b != null) {
z2 = bjj.b.booleanValue();
} else {
z2 = this.b.i;
int i2 = f + 103;
c = i2 % 128;
int i3 = i2 % 2;
}
z3 = bjj.a != null ? bjj.a.booleanValue() : this.b.h;
z4 = bjj.d != null ? bjj.d.booleanValue() : this.b.l;
if (bjj.c != null) {
int i4 = f + 71;
c = i4 % 128;
int i5 = i4 % 2;
z5 = bjj.c.booleanValue();
int i6 = f + 21;
c = i6 % 128;
int i7 = i6 % 2;
} else {
z5 = this.b.c;
}
}
return new IIX(z, z2, z3, z4, z5);
}
private JZh e(C9194dfC c9194dfC) {
boolean z;
int i = 2 % 2;
if (c9194dfC == null) {
return new JZh(this.b.q);
}
if (c9194dfC.b != null) {
int i2 = f + 19;
c = i2 % 128;
int i3 = i2 % 2;
z = c9194dfC.b.booleanValue();
int i4 = c + 53;
f = i4 % 128;
int i5 = i4 % 2;
} else {
z = this.b.q;
}
return new JZh(z);
}
/* JADX WARN: Code restructure failed: missing block: B:15:0x001b, code lost:
if (r4.d != null) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0016, code lost:
if (r4.d != null) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x001d, code lost:
r4 = r4.d.booleanValue();
*/
/* JADX WARN: Removed duplicated region for block: B:10:0x0038 A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:12:0x0039 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private o.XKc a(o.C4497bbK r4) {
/*
r3 = this;
r0 = 2
int r1 = r0 % r0
if (r4 == 0) goto L24
int r1 = o.C4977bkO.f
int r1 = r1 + 39
int r2 = r1 % 128
o.C4977bkO.c = r2
int r1 = r1 % r0
if (r1 == 0) goto L19
java.lang.Boolean r1 = r4.d
r2 = 11
int r2 = r2 / 0
if (r1 == 0) goto L24
goto L1d
L19:
java.lang.Boolean r1 = r4.d
if (r1 == 0) goto L24
L1d:
java.lang.Boolean r4 = r4.d
boolean r4 = r4.booleanValue()
goto L28
L24:
o.TDT r4 = r3.b
boolean r4 = r4.e
L28:
o.XKc r1 = new o.XKc
r1.<init>(r4)
int r4 = o.C4977bkO.f
int r4 = r4 + 5
int r2 = r4 % 128
o.C4977bkO.c = r2
int r4 = r4 % r0
if (r4 != 0) goto L39
return r1
L39:
r4 = 0
throw r4
*/
throw new UnsupportedOperationException("Method not decompiled: o.C4977bkO.a(o.bbK):o.XKc");
}
public static uWB a(QtZ qtZ, String str) throws EntityMappingException {
return (uWB) d(new Object[]{qtZ, str}, -1341511003, 1341511003, (int) System.currentTimeMillis());
}
private sjs a(Hro hro) {
return (sjs) d(new Object[]{this, hro}, -2075579029, 2075579031, System.identityHashCode(this));
}
private static int h(String str) {
return ((Integer) d(new Object[]{str}, 192613180, -192613179, (int) System.currentTimeMillis())).intValue();
}
}