Function at 0x140006390
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 0x140006410
xor eax, eax
cmp eax, 1
je 0x1400063c6
jmp 0x140006406
lea rcx, [rsp + 0x30]
call fcn.140001f00
mov rcx, rax
call fcn.140001f00
lea rdx, str.Error_creating_WeaselDeployerMutex.
mov rcx, rax
call fcn.140008ef0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x31]
call fcn.140001f00
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
mov rcx, rax
call fcn.140001600
mov eax, 1
jmp 0x14000670e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000651c
xor eax, eax
cmp eax, 1
je 0x14000642a
jmp 0x140006470
lea rcx, [rsp + 0x32]
call fcn.140001f00
mov rcx, rax
call fcn.140001f00
lea rdx, str.another_deployer_process_is_running__aborting_operation.
mov rcx, rax
call fcn.140008ef0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x33]
call fcn.140001f00
mov rcx, qword [rsp + 0x80]
mov rdx, rcx
mov rcx, rax
call fcn.140001600
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call fcn.14000ce10
nop
lea rcx, [rsp + 0x50]
call fcn.14000ce10
nop
mov edx, 0x8a
lea rcx, [rsp + 0x58]
call fcn.14000c290
mov edx, 0x85
lea rcx, [rsp + 0x50]
call fcn.14000c290
call qword [sym.imp.KERNEL32.dll_GetThreadUILanguage]
mov word [rsp + 0x3c], ax
lea rcx, [rsp + 0x50]
call fcn.14000b8a0
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x58]
call fcn.14000b8a0
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.14000c2d0
nop
lea rcx, [rsp + 0x58]
call fcn.14000c2d0
mov eax, 1
jmp 0x14000670e
lea rcx, [rsp + 0x60]
call fcn.14001ef80
nop
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x90], rax
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.140007980
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.14001f0e0
movzx eax, al
test eax, eax
je 0x1400065c0
xor eax, eax
cmp eax, 1
je 0x140006570
jmp 0x1400065b6
lea rcx, [rsp + 0x34]
call fcn.140001f00
mov rcx, rax
call fcn.140001f00
lea rdx, str.Turning_WeaselServer_into_maintenance_mode.
mov rcx, rax
call fcn.140008ef0
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x35]
call fcn.140001f00
mov rcx, qword [rsp + 0xa0]
mov rdx, rcx
mov rcx, rax
call fcn.140001600
lea rcx, [rsp + 0x60]
call fcn.14001f140
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 0x14000664c
xor eax, eax
cmp eax, 1
je 0x1400065e0
jmp 0x140006626
lea rcx, [rsp + 0x36]
call fcn.140001f00
mov rcx, rax
call fcn.140001f00
lea rdx, str.Error_synching_user_data.
mov rcx, rax
call fcn.140008ef0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x37]
call fcn.140001f00
mov rcx, qword [rsp + 0xa8]
mov rdx, rcx
mov rcx, rax
call fcn.140001600
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x60]
call fcn.14001f000
mov eax, dword [rsp + 0x48]
jmp 0x14000670e
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.140007980
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x60]
call fcn.14001f0e0
movzx eax, al
test eax, eax
je 0x1400066f8
xor eax, eax
cmp eax, 1
je 0x1400066a8
jmp 0x1400066ee
lea rcx, [rsp + 0x38]
call fcn.140001f00
mov rcx, rax
call fcn.140001f00
lea rdx, str.Resuming_service.
mov rcx, rax
call fcn.140008ef0
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x39]
call fcn.140001f00
mov rcx, qword [rsp + 0xc0]
mov rdx, rcx
mov rcx, rax
call fcn.140001600
lea rcx, [rsp + 0x60]
call fcn.14001f170
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x60]
call fcn.14001f000
mov eax, dword [rsp + 0x4c]
add rsp, 0x158
ret