Function at 0x1800d7890
Capabilities:
Check mutex on windows

Disassembly:
test rdx, rdx
je 0x1800d7c28
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rdx
mov rdi, rcx
mov rcx, rdx
call qword [sym.imp.2345MiniUI.dll_public:_int___cdecl_RC::RCMiniUIView::GetID_void_const___ptr64]
cmp eax, 0x4bd
jne 0x1800d7c04
mov rcx, qword [rdi - 8]
xor r12d, r12d
test rcx, rcx
jne 0x1800d78f4
mov r15d, r12d
jmp 0x1800d7901
add rcx, 0x40
mov rax, qword [rcx]
call qword [rax + 8]
mov r15, rax
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800d7911
mov r15, qword [rcx + 0x88]
mov edx, 0x9cbe
mov rcx, r15
call qword [sym.imp.USER32.dll_UnregisterHotKey]
lea rdx, [rbp - 0x28]
mov rcx, r14
call qword [sym.imp.2345MiniUI.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_RC::RCMiniUIComboBox::GetCurText_void____ptr64]
nop
lea rbx, [rdi + 0x18]
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x1800d793e
mov rcx, qword [rax]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800d794b
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rax + 0x10]
jne 0x1800d7979
test rdx, rdx
je 0x1800d7974
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1800d7979
add rcx, 2
sub rdx, 1
jne 0x1800d7960
xor sil, sil
jmp 0x1800d797c
mov sil, 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800d79bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d79ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d79ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
test sil, sil
je 0x1800d7a86
lea rdx, [rbp - 0x28]
mov rcx, r14
call qword [sym.imp.2345MiniUI.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_RC::RCMiniUIComboBox::GetCurText_void____ptr64]
nop
cmp qword [rax + 0x18], 8
jb 0x1800d79f2
mov rax, qword [rax]
movzx r9d, word [rax]
mov edx, 0x9cbe
mov r8d, 3
mov rcx, r15
call qword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
setne sil
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800d7a53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d7a4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d7a4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
lea rcx, [rdi - 0x10]
test sil, sil
je 0x1800d7a7a
xor edx, edx
call fcn.1800d7400
jmp 0x1800d7bd4
mov dl, 1
call fcn.1800d7400
jmp 0x1800d7bd4
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800d7a93
mov rax, qword [rbx]
movzx r9d, word [rax]
mov edx, 0x9cbe
mov r8d, 3
mov rcx, r15
call qword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
je 0x1800d7abf
lea rcx, [rdi - 0x10]
xor edx, edx
call fcn.1800d7400
jmp 0x1800d7bd4
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov r8d, 0x26
lea rdx, str.F9CEBD4A_CEC5_4857_9191_8E7E54635DAF
lea rcx, [rbp - 0x28]
call fcn.180004ea0
nop
mov qword [rbp - 0x40], r12
mov word [rbp - 0x38], 0
mov word [rbp - 0x38], 0
xor r14b, r14b
cmp qword [rbp - 0x18], 0
je 0x1800d7b19
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
jmp 0x1800d7b1c
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1800d7b4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, r14b
mov ecx, 1
cmp eax, 0xb7
cmove r14d, ecx
mov byte [rbp - 0x37], r14b
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800d7b91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d7b8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d7b8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
test rsi, rsi
je 0x1800d7bb0
test r14b, r14b
je 0x1800d7bb0
xor edx, edx
jmp 0x1800d7bb2
mov dl, 1
lea rcx, [rdi - 0x10]
call fcn.1800d7400
nop
test rsi, rsi
je 0x1800d7bce
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x40], r12
mov word [rbp - 0x38], 0
mov edx, 0x9cbe
mov rcx, r15
call qword [sym.imp.USER32.dll_UnregisterHotKey]
cmp qword [rbx + 0x18], 8
jb 0x1800d7bec
mov rbx, qword [rbx]
movzx r9d, word [rbx]
mov edx, 0x9cbe
mov r8d, 3
mov rcx, r15
call qword [sym.imp.USER32.dll_RegisterHotKey]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret