Function at 0x1800d6970
Capabilities:
Check mutex on windows

Disassembly:
test rdx, rdx
je 0x1800d6dca
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov r14, rcx
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x40]
mov rdi, rax
test rax, rax
je 0x1800d6da4
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
movzx edx, al
mov rcx, r14
call fcn.1800d6dd0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x30]
movzx edx, al
mov rcx, r14
call fcn.1800d6e40
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + VarUI4FromDisp]
mov edx, eax
mov rcx, r14
call fcn.1800d6eb0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x40]
movzx edx, al
mov rcx, r14
call fcn.1800d6f40
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
movzx edx, al
mov rcx, r14
call fcn.1800d6fb0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0xf0]
mov edx, eax
mov rcx, r14
call fcn.1800d7020
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x70]
movzx edx, al
mov rcx, r14
call fcn.1800d70b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x80]
mov edx, eax
mov rcx, r14
call fcn.1800d7210
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rbx, rax
test rax, rax
je 0x1800d6da4
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
movzx edx, al
mov rcx, r14
call fcn.1800d72b0
xor r12d, r12d
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rax, qword [rbx]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call qword [rax + 0x50]
test al, al
je 0x1800d6d50
mov r8, qword [rbp - 0x38]
test r8, r8
je 0x1800d6d50
lea r15, [r14 + 0x28]
lea rax, [rbp - 0x48]
cmp r15, rax
je 0x1800d6af7
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rcx, r15
call fcn.180004ea0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1800d6d50
add rcx, 0x40
mov edx, 0x4bd
call qword [sym.imp.2345MiniUI.dll_public:_class_RC::RCMiniUIView____ptr64___cdecl_RC::RCMiniUIDialogView::GetViewByID_int_const___ptr64]
mov rsi, rax
test rax, rax
je 0x1800d6d50
mov r10d, r12d
lea r9, [0x1804cdb90]
lea r13, [0x1804cde50]
mov rbx, qword [rbp - 0x30]
mov r11, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x48]
nop dword [rax]
mov rcx, r9
cmp qword [r9 + 0x18], 8
jb 0x1800d6b4d
mov rcx, qword [r9]
lea r8, [rbp - 0x48]
cmp rbx, 8
cmovae r8, rdi
cmp r11, qword [r9 + 0x10]
jne 0x1800d6b86
mov rdx, r11
test r11, r11
je 0x1800d6b92
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1800d6b86
add rcx, 2
sub rdx, 1
je 0x1800d6b92
jmp 0x1800d6b70
inc r10d
add r9, 0x20
cmp r9, r13
jne 0x1800d6b40
mov edx, r10d
mov rcx, rsi
call qword [sym.imp.2345MiniUI.dll_public:_int___cdecl_RC::RCMiniUIComboBox::SetCurSel_int____ptr64]
mov rcx, qword [r14 + 8]
test rcx, rcx
jne 0x1800d6bac
mov rdi, r12
jmp 0x1800d6bb9
add rcx, 0x40
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, rax
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x1800d6bc9
mov rdi, qword [rax + 0x88]
mov edx, 0x9cbe
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnregisterHotKey]
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rax, qword [rbp - 0x48]
movzx r9d, word [rax]
mov edx, 0x9cbe
mov r8d, 3
mov rcx, rdi
call qword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
je 0x1800d6c10
xor edx, edx
mov rcx, r14
call fcn.1800d7400
jmp 0x1800d6d1f
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 - 0x60], r12
mov word [rbp - 0x58], 0
mov word [rbp - 0x58], 0
xor bl, bl
cmp qword [rbp - 0x18], 0
je 0x1800d6c69
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
jmp 0x1800d6c6c
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
mov qword [rbp - 0x60], rax
test rax, rax
je 0x1800d6c9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bl
mov ecx, 1
cmp eax, 0xb7
cmove ebx, ecx
mov byte [rbp - 0x57], bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800d6cde
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d6cd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d6cd9
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 0x1800d6cfc
test bl, bl
je 0x1800d6cfc
xor edx, edx
jmp 0x1800d6cfe
mov dl, 1
mov rcx, r14
call fcn.1800d7400
nop
test rsi, rsi
je 0x1800d6d19
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x60], r12
mov word [rbp - 0x58], 0
mov edx, 0x9cbe
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnregisterHotKey]
cmp qword [r15 + 0x18], 8
jb 0x1800d6d37
mov r15, qword [r15]
movzx r9d, word [r15]
mov edx, 0x9cbe
mov r8d, 3
mov rcx, rdi
call qword [sym.imp.USER32.dll_RegisterHotKey]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1800d6d93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d6d8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d6d8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret