Function at 0x140028190
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x730
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rsp + 0x720], rax
xor ebx, ebx
mov r12d, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 3]
lea rcx, str..VeraCrypt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140148300], rax
cmp rax, 0xffffffffffffffff
jne 0x14002840a
call fcn.140026b10
mov r11, qword [0x1401971b0]
test r11, r11
jne 0x140028319
lea r8, str.GlobalVeraCrypt_Driver_Setup
lea edx, [r11 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401971b0], rax
mov rax, qword [0x1401971b0]
test rax, rax
je 0x140028270
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140028319
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401971b0], rbx
nop dword [rax]
mov rax, qword [0x1401971b0]
test rax, rax
jne 0x1400282dc
lea r8, str.GlobalVeraCrypt_Driver_Setup
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401971b0], rax
mov rax, qword [0x1401971b0]
test rax, rax
je 0x1400282cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400282dc
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401971b0], rbx
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140028270
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, str..VeraCrypt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140148300], rax
cmp rax, 0xffffffffffffffff
je 0x140028200
jmp 0x14002840a
cmp dword [0x1401971d0], ebx
je 0x1400283fe
xor ecx, ecx
call fcn.140028040
test eax, eax
je 0x1400283b6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, str..VeraCrypt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140148300], rax
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
mov r9b, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140011550
nop
lea rcx, [rsp + 0x60]
call fcn.140013b00
test eax, eax
setne dl
lea rcx, [rsp + 0x60]
call fcn.140010a20
nop
lea rcx, [rsp + 0x60]
call fcn.1400112f0
nop
jmp 0x1400283b6
mov rax, qword [0x1401971b0]
test rax, rax
je 0x1400283eb
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x1400283eb
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400283eb
mov qword [0x1401971b0], rbx
lea rsi, [0x140150c48]
mov rax, qword [0x140148300]
jmp 0x140028599
lea rsi, [0x140150c48]
jmp 0x14002850a
lea rsi, [0x140150c48]
mov rax, qword [0x1401971b0]
test rax, rax
je 0x140028446
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x140028446
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140028446
mov qword [0x1401971b0], rbx
mov rcx, qword [0x140148300]
cmp rcx, 0xffffffffffffffff
je 0x14002861d
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x222004
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400284c4
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x72018
mov rcx, qword [0x140148300]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400285e5
cmp dword [0x140150c48], 0x125
je 0x14002861d
call fcn.140023560
test eax, eax
je 0x1400285f0
call fcn.14001d2d0
test eax, eax
je 0x1400285f0
call fcn.14001da70
test eax, eax
je 0x1400285f0
mov eax, r12d
inc r12d
cmp eax, 3
jge 0x1400285f0
call fcn.14001d760
mov edi, eax
mov rcx, qword [0x1401971b0]
test rcx, rcx
je 0x140028546
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x140028546
mov rcx, qword [0x1401971b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140028546
mov qword [0x1401971b0], rbx
test edi, edi
jne 0x1400285ec
mov dword [0x140196f48], 1
mov rcx, qword [0x140148300]
cmp rcx, 0xffffffffffffffff
je 0x14002856b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, str..VeraCrypt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140148300], rax
cmp dword [0x140196f48], 0
je 0x1400285db
cmp rax, 0xffffffffffffffff
je 0x1400285e5
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x222068
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [0x140148300]
cmp rax, 0xffffffffffffffff
jne 0x140028411
mov eax, 1
jmp 0x14002861f
mov eax, edi
jmp 0x14002861f
cmp dword [0x1401a7fdc], 0
jne 0x14002861d
call fcn.14001d350
mov rcx, qword [0x140148300]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140148300], 0xffffffffffffffff
mov eax, 0xf
jmp 0x14002861f
xor eax, eax
mov rcx, qword [rsp + 0x720]
xor rcx, rsp
call fcn.1400a4e70
lea r11, [rsp + 0x730]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret