Function at 0x1800648f0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x2c], 0
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.18003cfc0
call fcn.180060be0
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.18001c0a0
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov r8, 0xffffffffffffffff
lea rdx, [0x18008caf8]
mov rcx, qword [rsp + 0x68]
call fcn.18001c170
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea r8, [0x18008caf4]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xb0]
call fcn.1800240d0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov r8, 0xffffffffffffffff
lea rdx, [0x18008cb00]
mov rcx, qword [rsp + 0x60]
call fcn.18001c170
mov qword [rsp + 0x70], rax
xor r9d, r9d
lea r8, [0x18008cafc]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xb0]
call fcn.1800240d0
mov edx, 1
lea rcx, [rsp + 0xc8]
call fcn.18003cfc0
mov r8, 0xffffffffffffffff
mov rdx, qword [0x18008c368]
lea rcx, [rsp + 0xc8]
call fcn.18001c170
nop
mov eax, 0xa
mov word [rsp + 0x28], ax
movsx rax, word [rsp + 0x28]
lea rcx, [0x180088a70]
cmp dword [rcx + rax*4], 1
jne 0x180064a40
movsx rax, word [rsp + 0x28]
lea rcx, [0x180088a70]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x28]
lea rdx, [0x180088a70]
mov dword [rdx + rcx*4], eax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xc8]
call fcn.180023a80
lea rcx, [rsp + 0xb0]
call fcn.18000b6b0
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180064b5a
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088a70]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x48], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088a70]
movsxd rdx, dword [rsp + 0x48]
lea r8, [0x180088a70]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088a70]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088a70]
mov dword [rdx + rcx], eax
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088a70]
cmp dword [rcx + rax*4], 1
jne 0x180064b2e
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088a70]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180088a70]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0xc8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x50]
jmp 0x180064cdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180064bb6
cmp qword [0x1800d3a48], 0
je 0x180064b82
mov rcx, qword [rsp + 0x30]
call qword [0x1800d3a48]
mov dword [rsp + 0x4c], eax
jmp 0x180064b8a
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0xc8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x44]
jmp 0x180064cdc
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088a70]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x3c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088a70]
movsxd rdx, dword [rsp + 0x3c]
lea r8, [0x180088a70]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088a70]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088a70]
mov dword [rdx + rcx], eax
mov rcx, qword [rsp + 0x100]
call fcn.180064d00
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x180064c62
cmp qword [0x1800d3a48], 0
je 0x180064c58
mov rcx, qword [rsp + 0x30]
call qword [0x1800d3a48]
mov dword [rsp + 0x40], eax
jmp 0x180064c60
mov dword [rsp + 0x40], 0
jmp 0x180064cb5
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0xb8], rcx
mov eax, SafeArrayUnaccessData
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088a70]
cmp dword [rcx + rax*4], 1
jne 0x180064cb5
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088a70]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180088a70]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0xc8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0xb0]
call fcn.1800119b0
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.18004e350
add rsp, 0xf8
ret