Function at 0x1800d7f40
Capabilities:
Check mutex on windows

Disassembly:
test rdx, rdx
je 0x1800d82d8
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 [0x1804cd010]
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 0x1800d82b4
mov rcx, qword [rdi - 8]
xor r12d, r12d
test rcx, rcx
jne 0x1800d7fa4
mov r15d, r12d
jmp 0x1800d7fb1
add rcx, 0x40
mov rax, qword [rcx]
call qword [rax + 8]
mov r15, rax
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800d7fc1
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 0x1800d7fee
mov rcx, qword [rax]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800d7ffb
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rax + 0x10]
jne 0x1800d8029
test rdx, rdx
je 0x1800d8024
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1800d8029
add rcx, 2
sub rdx, 1
jne 0x1800d8010
xor sil, sil
jmp 0x1800d802c
mov sil, 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800d806f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d806a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d806a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
test sil, sil
je 0x1800d8136
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 0x1800d80a2
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 0x1800d8103
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d80fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d80fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
lea rcx, [rdi - 0x10]
test sil, sil
je 0x1800d812a
xor edx, edx
call fcn.1800d7ab0
jmp 0x1800d8284
mov dl, 1
call fcn.1800d7ab0
jmp 0x1800d8284
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800d8143
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 0x1800d816f
lea rcx, [rdi - 0x10]
xor edx, edx
call fcn.1800d7ab0
jmp 0x1800d8284
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 0x1800d81c9
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
jmp 0x1800d81cc
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 0x1800d81fe
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 0x1800d8241
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d823c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d823c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
test rsi, rsi
je 0x1800d8260
test r14b, r14b
je 0x1800d8260
xor edx, edx
jmp 0x1800d8262
mov dl, 1
lea rcx, [rdi - 0x10]
call fcn.1800d7ab0
nop
test rsi, rsi
je 0x1800d827e
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 0x1800d829c
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.180388400
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