Function at 0x14003a580
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov rcx, rbp
call fcn.14003a1b0
xor eax, eax
cmp rax, qword [rbp]
jno 0x14003a60b
mov rcx, qword [rbp + 8]
mov eax, dword [rbp + 0x10]
mov qword [rbp + 0xf8], rcx
mov qword [rbp + 0x58], rcx
mov dword [rbp + 0x60], eax
lea rdx, str.UnknownReleasing_the_single_instance_mutex...Failed_to_release_mutex
lea rcx, [rbp + 0x90]
mov r8d, 7
call fcn.1402bf990
movups xmm0, xmmword [rbp + 0x90]
movups xmm1, xmmword [rbp + 0xa0]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
cmp qword [rbp + 0xf8], 0
je 0x14003a61b
lea rcx, [rbp + 0x58]
call fcn.14027fa60
jmp 0x14003a61b
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1402d1700
mov r8, rdx
lea rcx, [rbp + 0x58]
mov rdx, rax
call fcn.1402d1970
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0xf8], rax
mov r14, qword [rbp + 0x68]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x50], 0
movaps xmm0, xmmword [0x140301eb0]
movaps xmmword [rbp + 0x40], xmm0
test r14, r14
je 0x14003a6a2
mov r15d, 0xffffffff
mov rsi, rbp
mov rdi, qword [rbp + 0xf8]
nop dword [rax]
cmp r14, r15
mov ebx, 0xffffffff
cmovb rbx, r14
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.140062070
add rdi, rbx
sub r14, rbx
jne 0x14003a680
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0xe0], rax
movaps xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0xd0], xmm0
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmm2, xmmword [rbp + 0x20]
movaps xmm3, xmmword [rbp + 0x30]
movaps xmmword [rbp + 0xc0], xmm3
movaps xmmword [rbp + 0xb0], xmm2
movaps xmmword [rbp + 0xa0], xmm1
movaps xmmword [rbp + 0x90], xmm0
lea rsi, [rbp - 0x58]
lea rdx, [rbp + 0x90]
mov rcx, rsi
call fcn.140061f80
mov qword [rbp - 0x30], rsi
lea rax, [0x140062990]
mov qword [rbp - 0x28], rax
lea rax, [0x140302918]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 1
mov qword [rbp + 0xb0], 0
lea rax, [rbp - 0x30]
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], 1
mov rsi, rbp
lea rdx, [rbp + 0x90]
mov rcx, rsi
call fcn.1402db0a0
mov rdx, qword [rbp + 0x58]
lea rax, [rdx*2]
test rax, rax
je 0x14003a775
mov r8d, 1
mov rcx, qword [rbp + 0xf8]
call fcn.140061f30
movups xmm0, xmmword [rbp]
movaps xmmword [rbp + 0x70], xmm0
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x70]
mov qword [rbp], rax
lea rax, [0x140007c00]
mov qword [rbp + 8], rax
lea rax, str.GlobalNate_
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 1
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp + 0x90]
call fcn.1402db0a0
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
add rax, rcx
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], rax
mov word [rbp + 0xa0], 0
mov dword [rbp + 0xa8], 1
mov rcx, rbp
lea rdx, [rbp + 0x90]
call fcn.140061b00
mov rdi, qword [rbp + 8]
xor ecx, ecx
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_CreateMutexW]
mov rbx, rax
inc rax
cmp rax, 1
ja 0x14003a85b
call fcn.14027f3b0
mov rbx, rax
test edx, edx
jne 0x14003a93c
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
je 0x14003a88f
mov byte [0x14049f3a0], 1
mov qword [0x14049f3a8], rbx
mov rdx, qword [rbp]
test rdx, rdx
je 0x14003a8d5
add rdx, rdx
mov r8d, 2
mov rcx, rdi
jmp 0x14003a8d0
lea rcx, str.Another_instance_is_already_running._Exiting...Failed_to_close_mutex_handle
mov edx, 0x2f
call fcn.14003ad10
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x14003a8ba
call fcn.14027f3b0
test edx, edx
jne 0x14003a976
mov rdx, qword [rbp]
test rdx, rdx
je 0x14003a8d5
mov rcx, qword [rbp + 8]
add rdx, rdx
mov r8d, 2
call fcn.140061f30
mov rdx, qword [rbp + 0xf8]
test rdx, rdx
je 0x14003a8f3
mov r8d, 1
mov rcx, qword [rbp + 0xf0]
call fcn.140061f30
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x14003a90b
mov rcx, qword [rbp + 0x78]
mov r8d, 1
call fcn.140061f30
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14003a923
mov rcx, qword [rbp - 0x18]
mov r8d, 1
call fcn.140061f30
cmp esi, 0xb7
setne al
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x90], rbx
mov dword [rbp + 0x98], edx
lea rax, [0x140302960]
mov qword [rsp + 0x20], rax
lea rcx, str.Failed_to_create_mutex
lea r9, [0x140301f08]
lea r8, [rbp + 0x90]
mov edx, 0x16
call fcn.1402fb720
jmp 0x14003a9ae
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x98], edx
lea rax, [0x1403029c8]
mov qword [rsp + 0x20], rax
lea rcx, [0x1403029a7]
lea r9, [0x140301f08]
lea r8, [rbp + 0x90]
mov edx, 0x1c
call fcn.1402fb720
ud2