Function at 0x14006ce20
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401b4808]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov eax, dword [0x1401c1af0]
test eax, eax
jne 0x14006d258
xor esi, esi
mov r15d, esi
mov dword [rsp + 0x40], esi
lea rdx, str..Scsi_d:
lea r13, [0x1401bd9f0]
nop word [rax + rax]
mov r14d, esi
movsxd rax, r15d
lea rcx, [rax + rax*4]
lea r12, [rdx + rcx*4]
lea r15, str.PTe_
nop word [rax + rax]
xor eax, eax
mov qword [rbp + 0x360], rax
mov qword [rbp + 0x368], rax
mov qword [rbp + 0x370], rax
mov byte [rbp + 0x378], al
mov r9d, r14d
mov r8, r12
lea edx, [rax + 0x19]
lea rcx, [rbp + 0x360]
call fcn.140034890
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x360]
call fcn.140040fc0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006d1af
mov edi, esi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x50]
call fcn.1400f2f50
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14007a910
nop
lea rdx, str.Scsi
lea rcx, [rbp + 0x360]
call fcn.1401006f0
test rax, rax
je 0x14006cf64
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14006ca60
mov edi, eax
test edi, edi
je 0x14006d19c
movsxd rax, dword [0x1401c1af0]
imul rcx, rax, 0x410
mov dword [rcx + r13], 0x46696e44
mov dword [rcx + r13 + 4], edi
mov qword [rcx + r13 + 8], rbx
mov dword [rcx + r13 + 0x18], r14d
lea rdx, [r13 + 0x38]
add rdx, rcx
lea rax, [rsp + 0x60]
mov ecx, 7
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x14006cfa2
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
mov rcx, qword [rax + 0x50]
mov qword [rdx + 0x50], rcx
xor eax, eax
mov qword [rbp + 0x380], rax
mov qword [rbp + 0x388], rax
mov qword [rbp + 0x390], rax
mov word [rbp + 0x398], ax
mov byte [rbp + 0x39a], al
lea edx, [rax + 0x5c]
lea rcx, [rbp + 0x360]
call fcn.1401030dc
test rax, rax
jne 0x14006d063
lea rax, [rbp + 0x360]
jmp 0x14006d066
inc rax
mov r8, rax
mov edx, 0x1b
lea rcx, [rbp + 0x380]
call fcn.1400fb330
mov ecx, 0x1b
lea rax, [rbp + 0x380]
cmp byte [rax], 0
je 0x14006d094
inc rax
sub rcx, 1
jne 0x14006d086
mov edx, 0x80070057
test rcx, rcx
cmovne edx, esi
je 0x14006d0ab
mov eax, 0x1b
sub rax, rcx
jmp 0x14006d0ae
mov rax, rsi
test edx, edx
js 0x14006d10a
mov edx, 0x1b
sub rdx, rax
lea rcx, [rbp + 0x380]
lea rcx, [rcx + rax]
je 0x14006d0fc
lea r8, [rax + 0x7fffffe3]
add r8, rdx
lea r9, [0x140146a1c]
sub r9, rcx
nop dword [rax + rax]
test r8, r8
je 0x14006d0fc
movzx eax, byte [r9 + rcx]
test al, al
je 0x14006d0fc
mov byte [rcx], al
inc rcx
dec r8
sub rdx, 1
jne 0x14006d0e0
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
lea r8, [rbp + 0x380]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexA]
mov rdx, rax
movsxd rax, dword [0x1401c1af0]
imul rcx, rax, 0x410
mov qword [rcx + r13 + 0x10], rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x14006d16b
mov rcx, qword [str.PTe_]
cmp rcx, r15
je 0x14006d16b
test byte [rcx + 0x1c], 0x40
je 0x14006d16b
cmp byte [rcx + 0x19], 3
jb 0x14006d16b
mov edx, 0xa
lea r8, [0x140146a50]
mov rcx, qword [rcx + 0x10]
call fcn.140009ef0
movsxd rax, dword [0x1401c1af0]
imul rcx, rax, 0x410
lea rax, [0x1401bda0c]
add rcx, rax
lea r8, [rbp + 0x360]
mov edx, 0x19
call fcn.140034890
inc dword [0x1401c1af0]
jmp 0x14006d1a5
mov rcx, rbx
call fcn.140040f90
nop
lea rcx, [rsp + 0x50]
call fcn.14007b390
inc r14d
cmp r14d, 0x10
jb 0x14006ceb0
mov r15d, dword [rsp + 0x40]
inc r15d
mov dword [rsp + 0x40], r15d
cmp r15d, 2
lea rdx, str..Scsi_d:
jb 0x14006ce90
mov eax, dword [0x1401c1af0]
test eax, eax
jne 0x14006d213
mov dword [0x1401bd9f0], 0x46696e44
mov dword [0x1401bd9f4], 8
mov qword [0x1401bd9f8], rsi
mov qword [0x1401bda00], rsi
mov eax, 1
mov dword [0x1401c1af0], eax
test eax, eax
jle 0x14006d251
lea rbx, [0x1401bd9f4]
nop dword [rax]
test byte [rbx], 7
je 0x14006d244
movsxd rax, esi
imul rdx, rax, 0x410
add rdx, r13
lea rcx, [0x1401c1b98]
call fcn.140082660
mov eax, dword [0x1401c1af0]
inc esi
add rbx, 0x410
cmp esi, eax
jl 0x14006d220
mov byte [0x1401c1ba8], 0
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400d1740
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret