Function at 0x1800d7020
Capabilities:
Check mutex on windows

Disassembly:
test rdx, rdx
je 0x1800d747a
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 [0x1804cd010]
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 0x1800d7454
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
movzx edx, al
mov rcx, r14
call fcn.1800d7480
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x30]
movzx edx, al
mov rcx, r14
call fcn.1800d74f0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + VarUI4FromDisp]
mov edx, eax
mov rcx, r14
call fcn.1800d7560
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x40]
movzx edx, al
mov rcx, r14
call fcn.1800d75f0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
movzx edx, al
mov rcx, r14
call fcn.1800d7660
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0xf0]
mov edx, eax
mov rcx, r14
call fcn.1800d76d0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x70]
movzx edx, al
mov rcx, r14
call fcn.1800d7760
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x80]
mov edx, eax
mov rcx, r14
call fcn.1800d78c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rbx, rax
test rax, rax
je 0x1800d7454
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
movzx edx, al
mov rcx, r14
call fcn.1800d7960
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 0x1800d7400
mov r8, qword [rbp - 0x38]
test r8, r8
je 0x1800d7400
lea r15, [r14 + 0x28]
lea rax, [rbp - 0x48]
cmp r15, rax
je 0x1800d71a7
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 0x1800d7400
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 0x1800d7400
mov r10d, r12d
lea r9, [0x1804ceb90]
lea r13, [0x1804cee50]
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 0x1800d71fd
mov rcx, qword [r9]
lea r8, [rbp - 0x48]
cmp rbx, 8
cmovae r8, rdi
cmp r11, qword [r9 + 0x10]
jne 0x1800d7236
mov rdx, r11
test r11, r11
je 0x1800d7242
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1800d7236
add rcx, 2
sub rdx, 1
je 0x1800d7242
jmp 0x1800d7220
inc r10d
add r9, 0x20
cmp r9, r13
jne 0x1800d71f0
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 0x1800d725c
mov rdi, r12
jmp 0x1800d7269
add rcx, 0x40
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, rax
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x1800d7279
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 0x1800d72c0
xor edx, edx
mov rcx, r14
call fcn.1800d7ab0
jmp 0x1800d73cf
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 0x1800d7319
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
jmp 0x1800d731c
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 0x1800d734b
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 0x1800d738e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d7389
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d7389
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 0x1800d73ac
test bl, bl
je 0x1800d73ac
xor edx, edx
jmp 0x1800d73ae
mov dl, 1
mov rcx, r14
call fcn.1800d7ab0
nop
test rsi, rsi
je 0x1800d73c9
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 0x1800d73e7
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 0x1800d7443
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d743e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800d743e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
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.180388400
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret