Function at 0x140006750
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
lea r8, str.WeaselDeployerMutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400067d0
xor eax, eax
cmp eax, 1
je 0x140006786
jmp 0x1400067c6
lea rcx, [rsp + 0x30]
call fcn.1400022c0
mov rcx, rax
call fcn.1400022c0
lea rdx, str.Error_creating_WeaselDeployerMutex.
mov rcx, rax
call fcn.1400092b0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x31]
call fcn.1400022c0
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
mov rcx, rax
call fcn.1400019c0
mov eax, 1
jmp 0x140006ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400068dc
xor eax, eax
cmp eax, 1
je 0x1400067ea
jmp 0x140006830
lea rcx, [rsp + 0x32]
call fcn.1400022c0
mov rcx, rax
call fcn.1400022c0
lea rdx, str.another_deployer_process_is_running__aborting_operation.
mov rcx, rax
call fcn.1400092b0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x33]
call fcn.1400022c0
mov rcx, qword [rsp + 0x80]
mov rdx, rcx
mov rcx, rax
call fcn.1400019c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call fcn.14000d1d0
nop
lea rcx, [rsp + 0x50]
call fcn.14000d1d0
nop
mov edx, 0x8a
lea rcx, [rsp + 0x58]
call fcn.14000c650
mov edx, 0x85
lea rcx, [rsp + 0x50]
call fcn.14000c650
call qword [sym.imp.KERNEL32.dll_GetThreadUILanguage]
mov word [rsp + 0x3c], ax
lea rcx, [rsp + 0x50]
call fcn.14000bc60
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x58]
call fcn.14000bc60
movzx ecx, word [rsp + 0x3c]
mov word [rsp + 0x20], cx
mov r9d, 0x40
mov rcx, qword [rsp + 0x88]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxExW]
nop
lea rcx, [rsp + 0x50]
call fcn.14000c690
nop
lea rcx, [rsp + 0x58]
call fcn.14000c690
mov eax, 1
jmp 0x140006ace
lea rcx, [rsp + 0x60]
call fcn.14001f340
nop
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x90], rax
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.140007df0
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.14001f4a0
movzx eax, al
test eax, eax
je 0x140006980
xor eax, eax
cmp eax, 1
je 0x140006930
jmp 0x140006976
lea rcx, [rsp + 0x34]
call fcn.1400022c0
mov rcx, rax
call fcn.1400022c0
lea rdx, str.Turning_WeaselServer_into_maintenance_mode.
mov rcx, rax
call fcn.1400092b0
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x35]
call fcn.1400022c0
mov rcx, qword [rsp + 0xa0]
mov rdx, rcx
mov rcx, rax
call fcn.1400019c0
lea rcx, [rsp + 0x60]
call fcn.14001f500
call qword [sym.imp.rime.dll_rime_get_api]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
call qword [rax + 0x68]
test eax, eax
jne 0x140006a0c
xor eax, eax
cmp eax, 1
je 0x1400069a0
jmp 0x1400069e6
lea rcx, [rsp + 0x36]
call fcn.1400022c0
mov rcx, rax
call fcn.1400022c0
lea rdx, str.Error_synching_user_data.
mov rcx, rax
call fcn.1400092b0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x37]
call fcn.1400022c0
mov rcx, qword [rsp + 0xa8]
mov rdx, rcx
mov rcx, rax
call fcn.1400019c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x60]
call fcn.14001f3c0
mov eax, dword [rsp + 0x48]
jmp 0x140006ace
mov rax, qword [rsp + 0x70]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x108]
mov qword [rsp + 0xb0], rax
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call fcn.140007df0
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x60]
call fcn.14001f4a0
movzx eax, al
test eax, eax
je 0x140006ab8
xor eax, eax
cmp eax, 1
je 0x140006a68
jmp 0x140006aae
lea rcx, [rsp + 0x38]
call fcn.1400022c0
mov rcx, rax
call fcn.1400022c0
lea rdx, str.Resuming_service.
mov rcx, rax
call fcn.1400092b0
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x39]
call fcn.1400022c0
mov rcx, qword [rsp + 0xc0]
mov rdx, rcx
mov rcx, rax
call fcn.1400019c0
lea rcx, [rsp + 0x60]
call fcn.14001f530
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x60]
call fcn.14001f3c0
mov eax, dword [rsp + 0x4c]
add rsp, 0x158
ret