Function at 0x14004f050
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Print debug messages
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1402ecca8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rdx
mov dword [rsp + 0x50], ecx
call fcn.1400180a0
test al, al
je 0x14004f0e6
lea r8, str.C92B7C82_F8B3_4CE8_BBD2_E9050A7FEF57
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x14004f0bb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._lv_detect_:_app_instance_already_run___
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0xffffffff
jmp 0x14004f36b
lea r8, str.09499CAB_E416_41D4_A537_138436A9E759
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x14004f0e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14004f0e6
mov rcx, rbx
jmp 0x14004f09e
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor ecx, ecx
test eax, eax
jns 0x14004f136
mov byte [rbp + 0x30], cl
mov r9d, eax
lea r8, str._lv_detect_:_init_COM_failed_with_err_code:_d
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp - 0x10], xmm0
mov edx, 0x40
lea rcx, [rbp - 0x10]
call fcn.1400509e0
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0xffffffff
jmp 0x14004f36b
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi - 1]
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
jns 0x14004f17e
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov byte [rbp + 0x30], al
mov r9d, ebx
lea r8, str._lv_detect_:_init_COM_security_failed_with_err_code:_d
jmp 0x14004f101
xor r8d, r8d
mov edx, 0xffffffff
lea rcx, str.VeDetector
call fcn.14007e490
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x18], SafeArrayGetLBound
mov qword [rbp - 0x20], rsi
mov byte [rbp - 0x30], sil
lea rcx, [rbp - 0x30]
call fcn.140080db0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14004f1ee
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f1e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f1e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140175928
mov rdx, qword [sym.imp.VEConfig.dll_char_const__const___ptr64_const___ptr64_VEConfig::product::ORGANIZATIONNAME]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_static_void___cdecl_QCoreApplication::setOrganizationName_class_QString_const____ptr64_]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdx, qword [sym.imp.VEConfig.dll_char_const__const___ptr64_const___ptr64_VEConfig::product::ORGANIZATIONNAMEDOMAIN]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_static_void___cdecl_QCoreApplication::setOrganizationDomain_class_QString_const____ptr64_]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rdx, qword [sym.imp.VEConfig.dll_char_const__const___ptr64_const___ptr64_VEConfig::product::NAME]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_static_void___cdecl_QCoreApplication::setApplicationName_class_QString_const____ptr64_]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov r9d, 0x60202
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Widgets.dll_public:_void___cdecl_QApplication::constructor_int____ptr64__char____ptr64____ptr64__int____ptr64]
nop
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14000e190
nop
mov ecx, 0x32
call qword [sym.imp.Qt6Core.dll_private:_static_enum_Qt::TimerType___cdecl_QTimer::defaultTypeFor_int_]
mov ebx, eax
mov ecx, SafeArrayPutElement
call fcn.1401758ec
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14004f2d0
mov dword [rax], 1
lea rcx, [0x14004f390]
mov qword [rax + 8], rcx
lea rcx, [rsp + 0x70]
mov qword [rax + 0x10], rcx
jmp 0x14004f2d3
mov rax, rsi
mov r9, rax
xor r8d, r8d
mov edx, ebx
lea ecx, [r8 + 0x32]
call qword [sym.imp.Qt6Core.dll_private:_static_void___cdecl_QTimer::singleShotImpl_int__enum_Qt::TimerType__class_QObject_const____ptr64__class_QtPrivate::QSlotObjectBase____ptr64_]
lea rdx, str.msgSimulateDetectWnd
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140056380
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.Qt6Widgets.dll_public_virtual:_void___cdecl_QWidget::setVisible_bool____ptr64]
call qword [sym.imp.Qt6Widgets.dll_public:_static_int___cdecl_QApplication::exec_void_]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.Qt6Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rbp - 0x70]
call qword [sym.imp.Qt6Widgets.dll_public_virtual:_void___cdecl_QWidget::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call fcn.14000e840
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt6Widgets.dll_public_virtual:_void___cdecl_QApplication::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140175f30
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret