Code with Finding: |
/*
* Decompiled with CFR 0_128.
*
* Could not load the following classes:
* android.app.PendingIntent
* android.content.BroadcastReceiver
* android.content.Context
* android.content.Intent
* android.content.IntentFilter
* android.telephony.gsm.SmsManager
* fr.pcsoft.wdjava.core.application.WDAppManager
* fr.pcsoft.wdjava.core.application.WDProjet
* fr.pcsoft.wdjava.core.d.c
* fr.pcsoft.wdjava.core.d.f
* fr.pcsoft.wdjava.core.d.h
* fr.pcsoft.wdjava.core.debug.a
* fr.pcsoft.wdjava.core.f.b
* fr.pcsoft.wdjava.i.e
*/
package fr.pcsoft.wdjava.i;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.telephony.gsm.SmsManager;
import fr.pcsoft.wdjava.core.application.WDAppManager;
import fr.pcsoft.wdjava.core.application.WDProjet;
import fr.pcsoft.wdjava.core.d.c;
import fr.pcsoft.wdjava.core.d.f;
import fr.pcsoft.wdjava.core.d.h;
import fr.pcsoft.wdjava.core.debug.a;
import fr.pcsoft.wdjava.i.e;
import java.lang.reflect.Method;
import java.util.ArrayList;
final class b
extends c {
private static final String[] z;
final String val$strMessageSMS;
final String val$strNumeroSMS;
static {
String string = b.z(b.z("X\n,e&P\u0000fc,U\u00018&W\u001dfD$J))y(^\u0001:"));
String[] arrstring = new String[]{string, string = b.z(b.z("^\u0001<S,_\u0005={=")), string = b.z(b.z("|\u0007 r*\u0019\u0000-7%XD%\u00fe=Q\u000b,ri]C-y?V\rhs,\u00197\u0005DiJ\u0014\u00a1t _\r9b,\u0019\u0005=7\u000eX\b)o0\u00197\u0001^iJ\u000b=dix\n,e&P\u0000")), string = b.z(b.z("j)\u001bH\u001a|*\u001c")), string = b.z(b.z("J\u0001&s\u0004L\b<~9X\u0016<C,A\u0010\u0005r:J\u0005/r"))};
z = arrstring;
}
b(String string, String string2) {
this.val$strMessageSMS = string;
this.val$strNumeroSMS = string2;
}
/*
* Enabled aggressive block sorting
*/
private static String z(char[] arrc) {
int n = arrc.length;
int n2 = 0;
int n3 = n;
do {
if (n3 <= n2) {
String string = new String(arrc);
return string.intern();
}
char c2 = arrc[n2];
n = n2 % 5;
switch (n) {
default: {
n = 73;
break;
}
case 0: {
n = 57;
break;
}
case 1: {
n = 100;
break;
}
case 2: {
n = 72;
break;
}
case 3: {
n = 23;
}
}
arrc[n2] = n = (int)((char)(n ^ c2));
n2 = n = n2 + 1;
} while (true);
}
private static char[] z(String string) {
int n;
char[] arrc = string.toCharArray();
int n2 = arrc.length;
if (n2 < (n = 2)) {
n2 = 0;
arrc[0] = n = (int)((char)(arrc[0] ^ 73));
}
return arrc;
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
protected void c() {
int n;
Object[] arrobject;
int n2;
ArrayList<Object> arrayList;
Object object;
Object object2;
int n3;
Object object3;
Object object4;
int n4;
int n5;
int n6;
int n7;
Object object5;
String string;
block22 : {
block21 : {
int n8;
block20 : {
n5 = 2;
n6 = 1;
n2 = 0;
object4 = null;
string = z[3];
object = WDAppManager.i();
arrayList = new ArrayList<Object>(string);
arrobject = PendingIntent.getBroadcast((Context)object, (int)0, (Intent)arrayList, (int)0);
super(this);
super(string);
WDAppManager.a((BroadcastReceiver)object, (IntentFilter)arrayList, (boolean)n6);
string = SmsManager.getDefault();
n8 = this.val$strMessageSMS.length();
object = null;
for (n3 = 0; n3 < n8; ++n3) {
object2 = this.val$strMessageSMS;
n = object2.charAt(n3);
if (n <= (n7 = 127)) continue;
n3 = 0;
object = null;
break block20;
}
n3 = n6;
}
arrayList = f.GALAXY_SII;
n8 = h.a((f)arrayList) ? 1 : 0;
if (n8 == 0 || (n8 = (int)((arrayList = WDProjet.getInstance()).isVersionCompatible(n = (object2 = fr.pcsoft.wdjava.core.f.b.ICE_CREAM_SANDWICH).getNumero()) ? 1 : 0)) == 0) break block21;
break block22;
}
n6 = 0;
object5 = null;
}
if (n3 != 0 && n6 == 0) {
object5 = this.val$strNumeroSMS;
object = this.val$strMessageSMS;
arrayList = arrobject;
n2 = 0;
object4 = null;
string.sendTextMessage((String)object5, null, (String)object, (PendingIntent)arrobject, null);
return;
}
object = this.val$strMessageSMS;
object = string.divideMessage((String)object);
n = object.size();
arrayList = new ArrayList<Object>(n);
while (n2 < (n = object.size())) {
n = 0;
object2 = null;
arrayList.add(null);
++n2;
}
n2 = arrayList.size() + -1;
arrayList.set(n2, ((PendingIntent)arrobject));
if (n6 == 0) {
object5 = this.val$strNumeroSMS;
n2 = 0;
object4 = null;
string.sendMultipartTextMessage(object5, null, (ArrayList)object, arrayList, null);
return;
}
try {
object5 = z;
n2 = 0;
object4 = null;
object5 = object5[0];
object5 = Class.forName((String)object5);
object4 = z;
n4 = 1;
object4 = object4[n4];
n4 = 0;
arrobject = null;
arrobject = new Class[]{};
object5 = object5.getMethod((String)object4, (Class<?>[])arrobject);
n2 = 0;
object4 = null;
n4 = 0;
arrobject = null;
arrobject = new Object[]{};
object5 = object5.invoke(null, arrobject);
n2 = 9;
object4 = new Class[n2];
n4 = 0;
arrobject = null;
object4[0] = object2 = String.class;
n4 = 1;
object2 = String.class;
object4[n4] = object2;
n4 = 2;
object2 = ArrayList.class;
object4[n4] = object2;
n4 = 3;
object2 = ArrayList.class;
object4[n4] = object2;
n4 = 4;
object2 = ArrayList.class;
object4[n4] = object2;
n4 = 5;
object2 = Boolean.TYPE;
object4[n4] = object2;
n4 = 6;
object2 = Integer.TYPE;
object4[n4] = object2;
n4 = 7;
}
catch (Exception exception) {
a.a((String)z[n5], (Exception)exception);
String string2 = this.val$strNumeroSMS;
n2 = 0;
object4 = null;
string.sendMultipartTextMessage(string2, null, (ArrayList)object, arrayList, null);
return;
}
object2 = Integer.TYPE;
object4[n4] = object2;
n4 = 8;
object2 = Integer.TYPE;
object4[n4] = object2;
arrobject = object5.getClass();
object2 = z;
n7 = 4;
object2 = object2[n7];
object4 = arrobject.getMethod((String)object2, object4);
n4 = 9;
arrobject = new Object[n4];
n = 0;
object2 = null;
arrobject[0] = object3 = this.val$strNumeroSMS;
n = 1;
n7 = 0;
object3 = null;
arrobject[n] = null;
n = 2;
arrobject[n] = object;
n = 3;
arrobject[n] = arrayList;
n = 4;
n7 = 0;
object3 = null;
arrobject[n] = null;
n = 5;
n7 = 0;
object3 = null;
arrobject[n] = object3 = Boolean.valueOf(false);
n = 6;
n7 = 0;
object3 = null;
arrobject[n] = object3 = Integer.valueOf(0);
n = 7;
n7 = 0;
object3 = null;
arrobject[n] = object3 = Integer.valueOf(0);
n = 8;
n7 = 0;
object3 = null;
arrobject[n] = object3 = Integer.valueOf(0);
object4.invoke(object5, arrobject);
}
}
|