Function at 0x1800d7d89
Capabilities:
Check mutex on windows

Disassembly:
test rdx, rdx
je 0x1800d8118
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 [0x1804ca010]
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 0x1800d80f4
mov rcx, qword [rdi - 8]
xor r12d, r12d
test rcx, rcx
jne 0x1800d7de4
mov r15d, r12d
jmp 0x1800d7df1
add rcx, 0x40
mov rax, qword [rcx]
call qword [rax + 8]
mov r15, rax
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800d7e01
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 0x1800d7e2e
mov rcx, qword [rax]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800d7e3b
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rax + 0x10]
jne 0x1800d7e69
test rdx, rdx
je 0x1800d7e64
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1800d7e69
add rcx, 2
sub rdx, 1
jne 0x1800d7e50
xor sil, sil
jmp 0x1800d7e6c
mov sil, 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800d7eaf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d7eaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d7eaa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
test sil, sil
je 0x1800d7f76
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 0x1800d7ee2
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 0x1800d7f43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d7f3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d7f3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
lea rcx, [rdi - 0x10]
test sil, sil
je 0x1800d7f6a
xor edx, edx
call fcn.1800d78f0
jmp 0x1800d80c4
mov dl, 1
call fcn.1800d78f0
jmp 0x1800d80c4
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800d7f83
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 0x1800d7faf
lea rcx, [rdi - 0x10]
xor edx, edx
call fcn.1800d78f0
jmp 0x1800d80c4
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.180004e70
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 0x1800d8009
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
jmp 0x1800d800c
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 0x1800d803e
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 0x1800d8081
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d807c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d807c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
test rsi, rsi
je 0x1800d80a0
test r14b, r14b
je 0x1800d80a0
xor edx, edx
jmp 0x1800d80a2
mov dl, 1
lea rcx, [rdi - 0x10]
call fcn.1800d78f0
nop
test rsi, rsi
je 0x1800d80be
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 0x1800d80dc
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.180385c10
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