Function at 0x401140
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x419ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4be5d0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be5d0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, dword [esp + 0x14c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [sym.imp.QL_Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
push 2
push 0x41ed64
mov dword [esp + 0x28], edi
call esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x14c], ebx
call dword [sym.imp.QL_Core.dll_public:_static_void___cdecl_QCoreApplication::addLibraryPath_class_QString_const__]
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
push 0x50501
push edi
lea ecx, [esp + 0x150]
push ecx
lea ecx, [esp + 0x50]
call dword [sym.imp.QL_Widgets.dll_public:_void___thiscall_QApplication::constructor_int___char____int_]
mov edi, 8
push edi
push str.host.ini
mov dword [esp + 0x148], 1
call esi
add esp, 8
mov dword [esp + 0x3c], eax
push ebx
push 1
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x14c], 2
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QSettings::constructor_class_QString_const___enum_QSettings::Format__class_QObject__]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 4
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
push edi
push str.Download
call esi
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 5
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QSettings::beginGroup_class_QString_const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 4
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
push 0x2a
push str._EFEB2EF6_F8E0_AE44_BABE_1BBEF2C7FD57_
call esi
add esp, 8
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x144], 6
call dword [sym.imp.QL_Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
cmp dword [eax + 0x14], edi
jb 0x401295
mov eax, dword [eax]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
cmp dword [esp + 0x12c], edi
jb 0x4012ba
mov edx, dword [esp + 0x118]
push edx
call sub.QL_CR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x12c], 7
mov dword [esp + 0x128], 0
mov word [esp + 0x118], ax
mov byte [esp + 0x140], 4
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40135e
push 7
push str.restart
call esi
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x50]
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QVariant::constructor_void_]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14c], edi
mov dword [esp + 0x20], 3
call dword [sym.imp.QL_Core.dll_public:_class_QVariant___thiscall_QSettings::value_class_QString_const___class_QVariant_const__]
mov ebx, 7
push 0
mov ecx, eax
mov dword [esp + 0x144], 9
mov dword [esp + 0x18], ebx
call dword [sym.imp.QL_Core.dll_public:_int___thiscall_QVariant::toInt_bool__const]
mov byte [esp + 0x1b], 1
test eax, eax
je 0x401363
mov byte [esp + 0x1b], 0
mov dword [esp + 0x140], edi
mov edi, dword [sym.imp.QL_Core.dll_public:_void___thiscall_QVariant::destructor_void_]
test bl, 4
je 0x401382
and ebx, 0xfffffffb
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], ebx
call edi
mov dword [esp + 0x140], 7
test bl, 2
je 0x40139f
and ebx, 0xfffffffd
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], ebx
call edi
mov dword [esp + 0x140], 4
test bl, 1
je 0x4013b9
lea ecx, [esp + 0x1c]
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
cmp byte [esp + 0x1b], 0
je 0x4014df
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push 0x41ed14
call esi
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x20]
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::constructor_void_]
mov esi, eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::constructor_void_]
mov edi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0x41ece8
push eax
mov byte [esp + 0x14c], 0xc
call dword [sym.imp.QL_Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
mov ebp, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
push 0x41ecd4
mov bl, 0xd
push ecx
mov byte [esp + 0x158], bl
call dword [sym.imp.QL_Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
push 0xffffffffffffffff
push 0
push esi
push edi
lea edx, [esp + 0x44]
push edx
push ebp
push eax
push 0
mov byte [esp + 0x178], 0xe
call dword [sym.imp.QL_Widgets.dll_public:_static_int___cdecl_QMessageBox::information_class_QWidget___class_QString_const___class_QString_const___class_QString_const___class_QString_const___class_QString_const___int__int_]
add esp, 0x38
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], bl
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0xc
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xb
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 0xa
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 4
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
push 1
call dword [sym.imp.QL_Core.dll_public:_static_void___cdecl_QCoreApplication::exit_int_]
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 1
call dword [sym.imp.QL_Core.dll_public_virtual:_void___thiscall_QSettings::destructor_void_]
lea ecx, [esp + 0x44]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.QL_Widgets.dll_public_virtual:_void___thiscall_QApplication::destructor_void_]
mov eax, 1
jmp 0x401722
lea ecx, [esp + 0x30]
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QSettings::endGroup_void_]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.QL_Core.dll_public:_static_class_QString___cdecl_QDir::currentPath_void_]
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x148], 0xf
call dword [sym.imp.QL_Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const__]
add esp, 8
test al, al
jne 0x4015ad
push 0xffffffffffffffff
lea edx, [esp + 0x30]
push 0x41ec88
push edx
call dword [sym.imp.QL_Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
mov esi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push 0x41ec74
mov bl, 0x10
push eax
mov byte [esp + 0x158], bl
call dword [sym.imp.QL_Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
add esp, 0x18
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
push eax
push 0
mov byte [esp + 0x154], 0x11
mov dword [ecx], 0x400
call dword [sym.imp.QL_Widgets.dll_public:_static_enum_QMessageBox::StandardButton___cdecl_QMessageBox::critical_class_QWidget___class_QString_const___class_QString_const___class_QFlags_enum_QMessageBox::StandardButton___enum_QMessageBox::StandardButton_]
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], bl
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xf
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
push 1
call dword [sym.imp.QL_Core.dll_public:_static_void___cdecl_QCoreApplication::exit_int_]
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 4
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
jmp 0x4014ae
cmp dword [esp + 0x148], 1
mov byte [esp + 0x1c], 0
jle 0x4015db
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push str._CONTINUE
push edx
call dword [sym.imp.QL_CR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4015db
mov byte [esp + 0x1c], 1
lea eax, [esp + 0x38]
push 0
push eax
call dword [sym.imp.QL_Core.dll_public:_static_class_QString___cdecl_QStandardPaths::writableLocation_enum_QStandardPaths::StandardLocation_]
push 0xe
mov bl, 0x12
push 0x41ec58
mov byte [esp + 0x150], bl
call esi
mov dword [esp + 0x50], eax
push str._JXHOIUC.COM.lnk
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x15c], 0x13
call fcn.00401070
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x164], 0x14
call dword [sym.imp.QL_Core.dll_public:_static_bool___cdecl_QFile::link_class_QString_const___class_QString_const__]
add esp, 0x24
lea ecx, [esp + 0x4c]
mov byte [esp + 0x140], 0x13
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x140], bl
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
push 0
lea ecx, [esp + 0x74]
call fcn.00411460
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x144], 0x15
call fcn.00408100
test al, al
jne 0x4016bd
push 1
call dword [sym.imp.QL_Core.dll_public:_static_void___cdecl_QCoreApplication::exit_int_]
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x140], bl
call fcn.0040cb10
lea ecx, [esp + 0x38]
mov byte [esp + 0x140], 0xf
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 4
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
jmp 0x4014ae
call dword [sym.imp.QL_Widgets.dll_public:_static_int___cdecl_QApplication::exec_void_]
lea ecx, [esp + 0x70]
mov esi, eax
mov byte [esp + 0x140], bl
call fcn.0040cb10
lea ecx, [esp + 0x38]
mov byte [esp + 0x140], 0xf
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 4
call dword [sym.imp.QL_Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 1
call dword [sym.imp.QL_Core.dll_public_virtual:_void___thiscall_QSettings::destructor_void_]
lea ecx, [esp + 0x44]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.QL_Widgets.dll_public_virtual:_void___thiscall_QApplication::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00419240
add esp, 0x130
ret