Function at 0x140047910
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14011b040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
lea r8, str.WeaselDeployerMutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
je 0x140047968
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140047968
mov bl, 1
jmp 0x14004796f
xor bl, bl
test rsi, rsi
je 0x140047978
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rdi + 0x28], bl
test bl, bl
jne 0x140047b8a
xor ecx, ecx
call qword [sym.imp.rime.dll_RimeInitialize]
xor ecx, ecx
call qword [sym.imp.rime.dll_RimeStartMaintenance]
test eax, eax
je 0x14004799b
mov byte [rdi + 0x28], 1
xor esi, esi
mov qword [rbp - 0x60], rsi
lea rdx, [rbp - 0x60]
lea rcx, str.weasel
call qword [sym.imp.rime.dll_RimeConfigOpen]
test eax, eax
je 0x140047b75
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x140047b0f
mov r8b, 1
lea rcx, [rbp - 0x60]
call fcn.140050400
mov r8b, 1
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14004fea0
call fcn.140047bc0
mov byte [rdi + 0x2e8], al
test al, al
je 0x140047af7
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
mov ecx, 0x110
call fcn.14006d1ac
mov rbx, rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x18], 0x104
mov qword [rbp - 0x10], VarUI4FromDisp
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.1400c5d40
mov byte [rbx + 0x104], sil
lea r8, [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0xf
cmova r8, qword [rbp - 0x28]
lea rdx, str.style_color_scheme_dark
lea rcx, [rbp - 0x60]
call qword [sym.imp.rime.dll_RimeConfigGetString]
test eax, eax
je 0x140047abc
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140047a80
lea rcx, [rbp - 0x28]
call fcn.14000bda0
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.14000ba40
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rcx + 8]
add rdx, 0x1e0
mov r8, rax
lea rcx, [rbp - 0x60]
call fcn.140051de0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140047af7
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047af2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047baf
call fcn.14006d178
mov rax, qword [rdi + 0x18]
mov rdx, qword [rax + 8]
add rdx, 0x1e0
lea rcx, [rdi + 0x70]
call fcn.14001f470
mov dword [rbp - 0x54], esi
lea r8, [rbp - 0x54]
lea rdx, str.global_ascii
lea rcx, [rbp - 0x60]
call qword [sym.imp.rime.dll_RimeConfigGetBool]
test eax, eax
je 0x140047b38
cmp dword [rbp - 0x54], 0
setne al
mov byte [rdi + 0x2e9], al
lea r8, [rdi + 0x2ec]
lea rdx, str.show_notifications_time
lea rcx, [rbp - 0x60]
call qword [sym.imp.rime.dll_RimeConfigGetInt]
test eax, eax
jne 0x140047b5e
mov dword [rdi + 0x2ec], 0x4b0
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x60]
call fcn.140053310
lea rcx, [rbp - 0x60]
call qword [sym.imp.rime.dll_RimeConfigClose]
add rdi, 0x30
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 0xf
jbe 0x140047b87
mov rdi, qword [rdi]
mov byte [rdi], 0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14006ce40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400a5664
int3