Function at 0x140011f80
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x80
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
call fcn.14000b700
mov rbx, rax
lea r9, str.CheckInstanceExist
lea rax, str.Entry.
mov edx, 2
mov qword [rsp + 0x28], rax
lea r8, str.C:BITDIRAVRETAILqhav_sourceupgradeupguiupgui.cpp
mov rcx, rbx
mov dword [rsp + 0x20], 0x61
call fcn.14000a8e0
test rsi, rsi
jne 0x14001200f
lea rax, str.Invalid_parameters._Exit.
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, str.CheckInstanceExist
lea r8, str.C:BITDIRAVRETAILqhav_sourceupgradeupguiupgui.cpp
mov dword [rsp + 0x20], 0x65
lea edx, [rsi + 1]
call fcn.14000a8e0
xor al, al
jmp 0x14001223d
lea r8, str.GlobalSingleQHUpgrade
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [0x1401fcde0], rax
test rax, rax
je 0x140012066
lea rax, str.OpenMutex_Succeed._Instance_already_exist._Exit.
mov edx, 2
mov qword [rsp + 0x28], rax
lea r9, str.CheckInstanceExist
lea r8, str.C:BITDIRAVRETAILqhav_sourceupgradeupguiupgui.cpp
mov dword [rsp + 0x20], 0x6d
mov rcx, rbx
call fcn.14000a8e0
mov byte [rsi], 1
jmp 0x14001223b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str.CheckInstanceExist
lea rax, str.OpenMutex_failed._Err__u_._Instance_doesnot_running._Exit.
mov edx, 2
mov qword [rsp + 0x28], rax
lea r8, str.C:BITDIRAVRETAILqhav_sourceupgradeupguiupgui.cpp
mov rcx, rbx
mov dword [rsp + 0x20], 0x74
call fcn.14000a8e0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400111e0
test eax, eax
jne 0x1400120fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str.CheckInstanceExist
lea rax, str.CreateSecurityAttributeForEveryone___is_failed._Exit.
mov edx, 1
mov qword [rsp + 0x28], rax
lea r8, str.C:BITDIRAVRETAILqhav_sourceupgradeupguiupgui.cpp
mov rcx, rbx
mov dword [rsp + 0x20], 0x84
call fcn.14000a8e0
xor al, al
jmp 0x14001223d
lea r8, str.GlobalSingleQHUpgrade
mov edx, 1
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401fcde0], rax
test rax, rax
jne 0x1400121ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str.CheckInstanceExist
lea rax, str.CreateMutex_is_failed_on_NT_platform._Err__u_._Exit.
mov edx, 1
mov qword [rsp + 0x28], rax
lea r8, str.C:BITDIRAVRETAILqhav_sourceupgradeupguiupgui.cpp
mov rcx, rbx
mov dword [rsp + 0x20], 0x90
call fcn.14000a8e0
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012171
call qword [0x1401fcdd8]
test rbx, rbx
je 0x14001217f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001218f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x1401fcdd0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov qword [0x1401fcdd0], 0
jmp 0x14001223d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x98], rdi
mov rdi, qword [rsp + 0x48]
test rcx, rcx
je 0x1400121cb
call qword [0x1401fcdd8]
test rdi, rdi
je 0x1400121d9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x98]
test rcx, rcx
je 0x1400121f1
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x1401fcdd0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, str.Previous_instance_does_not_existed._Exit.
mov qword [0x1401fcdd0], 0
mov qword [rsp + 0x28], rax
lea r9, str.CheckInstanceExist
lea r8, str.C:BITDIRAVRETAILqhav_sourceupgradeupguiupgui.cpp
mov dword [rsp + 0x20], 0x9b
mov edx, 2
mov byte [rsi], 0
mov rcx, rbx
call fcn.14000a8e0
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140016d70
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rsi
ret