⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainmenulist.java

📁 经过反编译和部分代码修改后的ultraimpro java源代码。可在netbean环境下成功编译。供学习和分析用。
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    {
        strAccntName = s1;
        strAccntPswd = s2;
        set(1, AddAcntPrompt(strAccntName), getImage(1));
    }

    public final void b(String s1, String s2)
    {
        Exception exception;
        byte abyte0[] = s1.getBytes();
        byte abyte1[] = s2.getBytes();
        RecordStore recordstore = null;
        try
        {
            (recordstore = RecordStore.openRecordStore("UltraIMP", false)).setRecord(4, abyte0, 0, abyte0.length);
            recordstore.setRecord(5, abyte1, 0, abyte1.length);
            a(s1, s2);
        }
        catch(Exception _ex)
        {
            Close(recordstore);
            return;
        }
        finally
        {
            Close(recordstore);
        }
        Close(recordstore);
        return;
        //throw exception;
    }

    public final void UpdateServerNameAndPort(String ServerName, String ServerPort)
    {
        Exception exception;
        byte abyte0[] = ServerName.getBytes();
        byte abyte1[] = ServerPort.getBytes();
        RecordStore recordstore = null;
        try
        {
            (recordstore = RecordStore.openRecordStore("UltraIMP", false)).setRecord(7, abyte0, 0, abyte0.length);
            recordstore.setRecord(8, abyte1, 0, abyte1.length);
            strMsnServerDomainName = ServerName;
            strMsnServerPort = ServerPort;
        }
        catch(Exception _ex)
        {
            Close(recordstore);
            return;
        }
        finally
        {
            Close(recordstore);
        }
        Close(recordstore);
        return;
        //throw exception;
    }

    public final void a(int l)
    {
        if(a(11, String.valueOf(l)))
            i_int_fld = l;
    }

    public final void b(int l)
    {
        if(a(l, "1") && l == 6)
            h_java_lang_String_fld = "1";
    }

    public final void a(int l, int i1)
    {
        switch(l)
        {
        default:
            break;

        case 0: // '\0'
            if(a(12, String.valueOf(i1)))
            {
                iSignStateIndex = i1;
                Object aobj[] = GetSignInStatePrompt(i1);
                delete(2);
                insert(2, (String)aobj[0], (Image)aobj[1]);
                return;
            }
            break;

        case 6: // '\006'
            if(a(18, String.valueOf(i1)))
            {
                d_int_fld = i1;
                return;
            }
            break;

        case 2: // '\002'
            if(a(14, String.valueOf(i1)))
            {
                b_int_fld = i1;
                return;
            }
            break;

        case 7: // '\007'
            if(a(19, String.valueOf(i1)))
            {
                e_int_fld = i1;
                return;
            }
            break;

        case 1: // '\001'
            if(a(13, String.valueOf(i1)))
            {
                a_int_fld = i1;
                return;
            }
            break;

        case 3: // '\003'
            if(a(15, String.valueOf(i1)))
            {
                bj.j = i1;
                return;
            }
            break;

        case 4: // '\004'
            if(a(16, String.valueOf(i1)))
            {
                ConnectionManage_ag.a_int_static_fld = i1;
                return;
            }
            break;

        case 5: // '\005'
            if(a(17, String.valueOf(i1)))
                c_int_fld = i1;
            break;
        }
    }

    public final void InitRecordData()
    {
        RecordStore recordstore = null;
        try
        {
            byte abyte1[];
            String s1;
            if((recordstore = RecordStore.openRecordStore("UltraIMP1", false)).getNumRecords() == 4)
            {
                byte abyte0[] = "*".getBytes();
                recordstore.addRecord(abyte0, 0, abyte0.length);
            } else
            if((abyte1 = recordstore.getRecord(5)) != null && abyte1.length > 0 && !(s1 = new String(abyte1)).equals("*"))
                f_java_lang_String_fld = s1;
            if((abyte1 = recordstore.getRecord(1)) != null && abyte1.length > 0 && !(s1 = new String(abyte1)).equals("*"))
                strLastAccntName = s1;
            if((abyte1 = recordstore.getRecord(2)) != null && abyte1.length > 0)
                e_java_lang_String_fld = new String(abyte1);
            if((abyte1 = recordstore.getRecord(3)) != null && abyte1.length > 0 && !(s1 = new String(abyte1)).equals("*"))
                strSignPara = s1;
        }
        catch(RecordStoreNotFoundException _ex)
        {
            // record store not exist
            try
            {
                recordstore = RecordStore.openRecordStore("UltraIMP1", true);
                byte abyte2[] = "*".getBytes();
                recordstore.addRecord(abyte2, 0, abyte2.length);
                abyte2 = "-1/default".getBytes();
                recordstore.addRecord(abyte2, 0, abyte2.length);
                e_java_lang_String_fld = "-1/default";
                abyte2 = "*".getBytes();
                recordstore.addRecord(abyte2, 0, abyte2.length);
                InputStreamUtil_p p1 = new InputStreamUtil_p(getClass().getResourceAsStream("/emotions/mydp.png"));
                byte abyte3[] = new byte[9000];
                int l = p1.ReadBytes(abyte3);
                recordstore.addRecord(abyte3, 0, l);
                abyte2 = "*".getBytes();
                recordstore.addRecord(abyte2, 0, abyte2.length);
            }
            catch(Exception _ex2) { }
        }
        catch(Exception _ex) { }
        Close(recordstore);
    }

    public final void GetSignPara(String s1)
    {
        Exception exception;
        if(!s1.equals(strLastAccntName))
        {
            RecordStore recordstore = null;
            try
            {
                recordstore = RecordStore.openRecordStore("UltraIMP1", false);
                if(strLastAccntName == null || strLastAccntName.length() == 0)
                {
                    byte abyte0[] = recordstore.getRecord(4); // get sign in personal picture
                    //v TempV = new v();
                    //byte TempByteArray[] = TempV.ConvertByteToChar(abyte0);
                    //char TempCharArray[] = s.ConvertByteToChar(TempByteArray);
                    //String TempString = new String(TempCharArray);
                    //strSignPara = CompSignPara(null, s1, abyte0.length, TempString);
                    strSignPara = CompSignPara(null, s1, abyte0.length, new String(s.ConvertByteToChar((new v()).GetTotalChecksum(abyte0))));
                } else
                {
                    strSignPara = CompSignPara(strSignPara, s1, -1, null);
                }
                strLastAccntName = s1;
                byte abyte1[] = strLastAccntName.getBytes();
                recordstore.setRecord(1, abyte1, 0, abyte1.length); // email address
                abyte1 = strSignPara.getBytes();
                recordstore.setRecord(3, abyte1, 0, abyte1.length); // parameter
            }
            catch(Exception _ex)
            {
                //Close(recordstore);
                //return;
            }
            finally
            {
                Close(recordstore);
            }
            //Close(recordstore);
            return;
        } else
        {
            return;
        }
        //throw exception;
    }

    public static final String CompSignPara(String s1, String s2, int l, String s3)
    {
        if(l == -1)
        {
            int i1 = s1.indexOf("Size=\"") + "Size=\"".length();
            int j1 = s1.indexOf('"', i1);
            l = Integer.parseInt(s1.substring(i1, j1));
            i1 = s1.indexOf("SHA1D=\"") + "SHA1D=\"".length();
            j1 = s1.indexOf('"', i1);
            s3 = s1.substring(i1, j1);
        }
        StringBuffer stringbuffer;
        (stringbuffer = new StringBuffer()).append("Creator");
        stringbuffer.append(s2);
        stringbuffer.append("Size");
        stringbuffer.append(l);
        stringbuffer.append("Type3Locationmydp.pngFriendlyAAA=SHA1D");
        stringbuffer.append(s3);
        String s4 = new String(s.ConvertByteToChar((new v()).GetTotalChecksum(stringbuffer.toString())));
        (stringbuffer = new StringBuffer()).append("<msnobj Creator=\"");
        stringbuffer.append(s2);
        stringbuffer.append("\" Size=\"");
        stringbuffer.append(l);
        stringbuffer.append("\" Type=\"3\" Location=\"mydp.png\" Friendly=\"AAA=\" SHA1D=\"");
        stringbuffer.append(s3);
        stringbuffer.append("\" SHA1C=\"");
        stringbuffer.append(s4);
        stringbuffer.append("\"/>");
        String s5;
        return s5 = stringbuffer.toString();
    }

    public final void h()
    {
        a_bd_fld = null;
        UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(this);
    }

    public final void i()
    {
        UltraIMPro.a_UltraIMPro_static_fld.notifyDestroyed();
    }

    public final void a(int l, boolean flag)
    {
        if(l == 3)
        {
            if(flag)
                b(6);
            SignInWithAccnt();
            return;
        } else
        {
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(this);
            return;
        }
    }

    public final void b(int l, boolean flag)
    {
        if(l == 3 && flag)
            b(6);
        UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(this);
    }

    public static final void PlayMid(int l)
    {
        int i1;
        //if((i1 = a_ap_static_fld.b_int_fld) == 1)
        if((i1 = GetObject().b_int_fld) == 1)
            return;
        String s1 = null;
        switch(l)
        {
        case 0: // '\0'
            s1 = "/icons/info.mid";
            break;

        case 1: // '\001'
            s1 = "/icons/error.mid";
            break;
        }
        try
        {
            InputStream inputstream;
            Player player;
            (player = Manager.createPlayer(inputstream = a_ap_static_fld.getClass().getResourceAsStream(s1), "audio/midi")).start();
            Thread.sleep(500L);
            player.close();
            inputstream.close();
            return;
        }
        catch(Exception _ex)
        {
            return;
        }
    }

    public static final synchronized boolean a(int l, String s1)
    {
        boolean flag;
        RecordStore recordstore;
        byte abyte0[];
        flag = true;
        if(s1 == null || s1.length() == 0)
            s1 = "*";
        recordstore = null;
        abyte0 = s1.getBytes();
        try
        {
        (recordstore = RecordStore.openRecordStore("UltraIMP", false)).setRecord(l, abyte0, 0, abyte0.length);

        Close(recordstore);
        }
        catch (Exception _ex)
        {

        //break MISSING_BLOCK_LABEL_68;
        //JVM INSTR pop ;
        flag = false;
        Close(recordstore);
        //break MISSING_BLOCK_LABEL_68;
        }
        //Exception exception;
        //exception;
        //Close(recordstore);
        //throw exception;
        return flag;
    }

    public static final synchronized String GetPreviosAccnName(int l)
    {
        String s1;
            s1 = null;
            RecordStore recordstore = null;
            byte abyte0[] = null;
            try
            {
                recordstore = RecordStore.openRecordStore("UltraIMP", false);
                abyte0 = recordstore.getRecord(l);
                if(abyte0 != null && abyte0.length > 0 && (s1 = new String(abyte0)).equals("*"))
                    s1 = null;
            }
            catch(Exception _ex)
            {
                //Close(recordstore);
                //break label0;
            }
            finally
            {
                Close(recordstore);
                //throw exception;
            }
        return s1;
    }

    public final void b(String s1)
    {
        Exception exception;
        if(s1 == null || s1.length() == 0)
            return;
        RecordStore recordstore = null;
        byte abyte0[] = s1.getBytes();
        try
        {
            (recordstore = RecordStore.openRecordStore("UltraIMP1", false)).setRecord(5, abyte0, 0, abyte0.length);
            f_java_lang_String_fld = s1;
        }
        catch(Exception _ex)
        {
            Close(recordstore);
            return;
        }
        finally
        {
            Close(recordstore);
        }
        Close(recordstore);
        return;
        //throw exception;
    }

    public static final void Close(RecordStore recordstore)
    {
        if(recordstore == null)
            return;
        do
            try
            {
                recordstore.closeRecordStore();
            }
            catch(Exception _ex)
            {
                return;
            }
        while(true);
    }

    public static MainMenuList a_ap_static_fld;
    private bd a_bd_fld;
    private String strSoftLicense;
    public String strAccntName;
    public String strAccntPswd;
    private String h_java_lang_String_fld;
    private String strMsnServerDomainName;
    private String strMsnServerPort;
    private int iSignStateIndex;
    public int a_int_fld;
    public int b_int_fld;
    private int i_int_fld;
    public int c_int_fld;
    public int d_int_fld;
    public int e_int_fld;
    public int f_int_fld;
    public String strSignPara;
    public String strLastAccntName;
    public String e_java_lang_String_fld;
    public String f_java_lang_String_fld;
    public static Vector a_java_util_Vector_static_fld;
    public static int g_int_static_fld;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -