1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
|
__int64 __fastcall main(int a1, char **a2, char **a3)
{
volatile signed __int32 *v3; // rsi
int v4; // edx
int v5; // ecx
int v6; // er8
int v7; // er9
TForm010Ed *v8; // rdi
__int64 (__fastcall ***v9)(_QWORD); // rax
QMetaObject *v10; // rax
const char *v11; // rax
int v12; // edx
volatile signed __int32 *v13; // rax
__int64 v14; // rdx
char *v15; // rsi
QApplication *v16; // r14
const QString *v17; // rdx
__int64 v18; // r14
TForm010Ed *v19; // rdi
unsigned int v20; // er15
int v21; // eax
QObject *v22; // r14
const char *v23; // rdx
QApplication *v24; // rdi
unsigned int v25; // er13
QTimer *v26; // rdx
__int64 v27; // r14
volatile signed __int32 **v28; // r13
volatile signed __int32 *v29; // rax
volatile signed __int32 **v30; // r8
volatile signed __int32 **i; // rdx
int v33; // edx
QDesktopWidget *v34; // rax
__int64 v35; // rsi
const char *v36; // rcx
QWidget *v37; // [rsp+0h] [rbp-178h]
int v38; // [rsp+0h] [rbp-178h]
QWidget *v39; // [rsp+0h] [rbp-178h]
QWidget *v40; // [rsp+0h] [rbp-178h]
QWidget *v41; // [rsp+0h] [rbp-178h]
char v42; // [rsp+8h] [rbp-170h]
int v43; // [rsp+8h] [rbp-170h]
int v44; // [rsp+10h] [rbp-168h]
int v45; // [rsp+10h] [rbp-168h]
void *v46; // [rsp+18h] [rbp-160h] BYREF
int v47[2]; // [rsp+20h] [rbp-158h] BYREF
QTimer *v48; // [rsp+28h] [rbp-150h]
QTimer *v49[2]; // [rsp+30h] [rbp-148h] BYREF
QDateTime *v50; // [rsp+40h] [rbp-138h] BYREF
char v51; // [rsp+48h] [rbp-130h]
int v52; // [rsp+50h] [rbp-128h] BYREF
char v53; // [rsp+58h] [rbp-120h]
__int64 v54; // [rsp+60h] [rbp-118h] BYREF
int v55; // [rsp+68h] [rbp-110h]
int v56; // [rsp+70h] [rbp-108h] BYREF
char v57; // [rsp+78h] [rbp-100h]
int v58; // [rsp+80h] [rbp-F8h] BYREF
char v59; // [rsp+88h] [rbp-F0h]
int v60; // [rsp+90h] [rbp-E8h] BYREF
char v61; // [rsp+98h] [rbp-E0h]
int v62[2]; // [rsp+A0h] [rbp-D8h] BYREF
char v63; // [rsp+A8h] [rbp-D0h]
char v64[32]; // [rsp+B0h] [rbp-C8h] BYREF
char v65[104]; // [rsp+D0h] [rbp-A8h] BYREF
unsigned __int64 v66; // [rsp+138h] [rbp-40h]
v66 = __readfsqword(0x28u);
qInstallMessageHandler(&R_MessageOutput, a2, a3);
sub_5680C0();
nullsub_31();
RProgress::CreateProgress((RProgress *)&R_MessageOutput);
QCoreApplication::setAttribute(20LL, 1LL);
QCoreApplication::setAttribute(13LL, 1LL);
v3 = (volatile signed __int32 *)&v46 + 1;
sub_5943F0((QObject *)v65, v37, v42, v44, (int)v46, (int)&QArrayData::shared_null, (char)v48);
dword_10B8F10 = (RApplication *)v65;
sub_595D00((unsigned int)v65, (unsigned int)&v46 + 4, v4, v5, v6, v7, v38, v43, v45, (char)v46);
v8 = (TForm010Ed *)v49;
QCoreApplication::arguments((QCoreApplication *)v49);
if ( !(unsigned int)TForm010Ed::CheckRunOnlyOnce((TForm010Ed *)v49)
|| (v8 = dword_10B8F10, !(unsigned int)sub_594C60(dword_10B8F10)) )
{
TForm010Ed::CheckDebugFlags(v8);
v9 = (__int64 (__fastcall ***)(_QWORD))QApplication::style(v8);
v10 = (QMetaObject *)(**v9)(v9);
v11 = (const char *)QMetaObject::className(v10);
v12 = -1;
if ( v11 )
v12 = strlen(v11);
QString::fromUtf8_helper((QString *)v62, v11, v12);
v13 = *(volatile signed __int32 **)v47;
v14 = *(_QWORD *)v62;
*(_QWORD *)v62 = *(_QWORD *)v47;
*(_QWORD *)v47 = v14;
if ( !**(_DWORD **)v62 || **(_DWORD **)v62 != -1 && !_InterlockedDecrement(v13) )
QArrayData::deallocate(*(_QWORD *)v62, 2LL, 8LL);
v15 = "QCleanlooksStyle";
if ( (unsigned __int8)QString::operator==(v47, "QCleanlooksStyle")
|| (v15 = "QCDEStyle", (unsigned __int8)QString::operator==(v47, "QCDEStyle"))
|| (v15 = "QPlastiqueStyle", (unsigned __int8)QString::operator==(v47, "QPlastiqueStyle"))
|| (v15 = "QMotifStyle", (unsigned __int8)QString::operator==(v47, "QMotifStyle"))
|| (v15 = "QWindowsStyle", (unsigned __int8)QString::operator==(v47, "QWindowsStyle"))
|| (v15 = "QGtkStyle", (unsigned __int8)QString::operator==(v47, "QGtkStyle"))
|| (v15 = "QFusionStyle", (unsigned __int8)QString::operator==(v47, "QFusionStyle")) )
{
v16 = (QApplication *)operator new(0x10uLL);
sub_56DC50(v16);
QApplication::setStyle(v16, (QStyle *)v15);
}
R_InitializeCustomCodecs();
QGuiApplication::setLayoutDirection(0LL);
RStandardPaths::GetProgDir((RStandardPaths *)&v54, 1);
v39 = (QWidget *)&v54;
operator+((QString *)&v56);
RStandardPaths::GetProgDir((RStandardPaths *)&v50, 1);
operator+((QString *)&v52);
RHelp::Initialize((RHelp *)&v52, (const QString *)&v56, v17);
QString::~QString((QString *const)&v52);
QString::~QString((QString *const)&v50);
QString::~QString((QString *const)&v56);
QString::~QString((QString *const)&v54);
if ( (int)sub_45E320() < 0 )
goto LABEL_42;
v18 = operator new(0x50uLL);
sub_52F000(v18);
unk_10B8F38 = v18;
sub_52FD20(v18);
if ( !*((_DWORD *)dword_10B8F10 + 8) )
RRegister::DecreaseNumUsesLeft(unk_10B8F38);
RRegister::CheckPortableInstallLicenseFromLocal(unk_10B8F38);
v19 = (TForm010Ed *)unk_10B8F38;
v20 = RRegister::CheckStatus(unk_10B8F38, 13, 18887);
if ( *((_DWORD *)dword_10B8F10 + 8) && v20 != 219 )
{
v19 = (TForm010Ed *)unk_10B8F38;
RRegister::DecreaseNumUsesLeft(unk_10B8F38);
}
v21 = TForm010Ed::CheckNoUserInterface(v19);
unk_10B8FA5 = v21 != 0;
if ( !v21 && (!(unsigned int)sub_5A8A90() || v20 != 219) )
{
*(_QWORD *)v62 = QString::fromAscii_helper((QString *)":/Icons/resources/Splash.png", (const char *)0x1C, v33);
QPixmap::QPixmap(v64, v62, 0LL, 0LL);
QString::~QString((QString *const)v62);
v34 = (QDesktopWidget *)QApplication::desktop((QApplication *)v62);
v35 = QDesktopWidget::screen(v34, -1);
v39 = (QWidget *)operator new(0x40uLL);
sub_59A250(v39, v35, v64, 0x40000LL, v20);
qword_10B8EF0 = v39;
QWidget::show(v39);
QSplashScreen::repaint(qword_10B8EF0);
QCoreApplication::processEvents(0LL);
QTimer::singleShot((QTimer *)0x9C4, (int)dword_10B8F10, (const QObject *)"1on_CloseSplash()", v36);
QPixmap::~QPixmap((QPixmap *)v64);
}
v22 = (QObject *)operator new(0x1288uLL);
sub_5D92B0(
v22,
(__int64)v39,
(int)&v56,
(int)v62,
v46,
v47[0],
v48,
v49[0],
v49[1],
v50,
v51,
v52,
v53,
v54,
v55,
v56,
v57,
v58,
v59,
v60,
v61,
v62[0],
v63);
qword_10B8EF8 = v22;
QWidget::setUpdatesEnabled(v22, 0);
sub_584E10(v64, unk_10B8F00);
QApplication::setPalette((QApplication *)v64, 0LL, v23);
if ( (unsigned int)sub_5B5A80(qword_10B8EF8) == -1 )
goto LABEL_46;
if ( v20 == 375
|| v20 == 47
|| v20 == 237
|| v20 == 275
|| v20 == 524 && (unsigned int)RRegister::CheckForNotice(unk_10B8F38) )
{
QString::fromUtf8_helper((QString *)&v58, ":/Icons/resources/010_icon_32x32.png", 36);
QIcon::QIcon((QIcon *)&v60, (const QString *)&v58);
QApplication::setWindowIcon((QApplication *)&v60, (const QIcon *)&v58);
QIcon::~QIcon((QIcon *)&v60);
QString::~QString((QString *const)&v58);
if ( !qword_10B9690 )
{
v41 = (QWidget *)operator new(0x1C0uLL);
sub_72FF40(v41);
qword_10B9690 = v41;
}
sub_72DF80(qword_10B9690);
RApplication::on_CloseSplash((RApplication *)v65);
if ( !(*(unsigned int (__fastcall **)(QObject *, __int64))(*(_QWORD *)qword_10B9690 + 424LL))(qword_10B9690, 1LL)
&& *((_DWORD *)qword_10B9690 + 102) )
{
v25 = -1;
goto LABEL_47;
}
if ( qword_10B9690 )
(*(void (__fastcall **)(QObject *))(*(_QWORD *)qword_10B9690 + 32LL))(qword_10B9690);
v40 = (QWidget *)operator new(0x1C0uLL);
sub_72FF40(v40);
qword_10B9690 = v40;
}
if ( unk_10B8FA5 )
{
sub_5D85A0(qword_10B8EF8, (__int64)v40);
}
else if ( *((_DWORD *)qword_10B8EF8 + 1049) )
{
QWidget::showNormal(qword_10B8EF8);
QWidget::showMaximized(qword_10B8EF8);
}
else
{
QWidget::show(qword_10B8EF8);
}
QWidget::setUpdatesEnabled(qword_10B8EF8, 1);
sub_5D50C0(qword_10B8EF8);
v24 = qword_10B8EF8;
TForm010Ed::RunCommandLineParams(qword_10B8EF8);
if ( unk_10B8FAA || unk_10B8FA5 && (v24 = qword_10B8EF8, !(unsigned int)sub_5B2BE0(qword_10B8EF8)) )
LABEL_46:
v25 = unk_10B8F98;
else
v25 = QApplication::exec(v24);
LABEL_47:
QPalette::~QPalette((QPalette *)v64);
goto LABEL_43;
}
RApplication::SendBringToFrontMessage(dword_10B8F10);
v26 = v49[0];
v27 = 1LL;
if ( *((_DWORD *)v49[0] + 3) - *((_DWORD *)v49[0] + 2) > 1 )
{
do
{
if ( *(_DWORD *)v26 > 1u )
{
v28 = (volatile signed __int32 **)((char *)v49[0] + 8 * *((int *)v49[0] + 2) + 16);
v29 = (volatile signed __int32 *)QListData::detach((QListData *)v49, *((_DWORD *)v49[0] + 1));
v3 = (volatile signed __int32 *)*((int *)v49[0] + 3);
v30 = (volatile signed __int32 **)((char *)v49[0] + 8 * (_QWORD)v3 + 16);
for ( i = (volatile signed __int32 **)((char *)v49[0] + 8 * *((int *)v49[0] + 2) + 16); v30 != i; ++v28 )
{
if ( i )
{
v3 = *v28;
*i = *v28;
if ( (unsigned int)(*v3 + 1) > 1 )
_InterlockedAdd(v3, 1u);
}
++i;
}
if ( !*v29 || *v29 != -1 && !_InterlockedSub(v29, 1u) )
QList<QString>::dealloc(v29);
v26 = v49[0];
}
TForm010Ed::SendLoadFileMessage(
(QTimer *)((char *)v26 + 8 * v27 + 8 * *((int *)v26 + 2) + 16),
(const QString *)v3);
v26 = v49[0];
++v27;
}
while ( (int)v27 < *((_DWORD *)v49[0] + 3) - *((_DWORD *)v49[0] + 2) );
}
LABEL_42:
v25 = 0;
LABEL_43:
QList<QLabel *>::~QList(v49);
sub_45E4E0((QApplication *)v65);
QString::~QString((QString *const)v47);
return v25;
}
|