Function at 0x14006a710
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 [0x1401eb978]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov eax, dword [0x1401f9d90]
test eax, eax
jne 0x14006ab54
xor esi, esi
mov r15d, esi
mov dword [rsp + 0x40], esi
lea rdx, str..Scsi_d:
lea r13, [0x1401f5c90]
nop word [rax + rax]
mov r14d, esi
movsxd rax, r15d
lea rcx, [rax + rax*4]
lea r12, [rdx + rcx*4]
lea r15, [0x1401ec598]
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.140045320
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.140088cd0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006aa9f
mov edi, esi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x50]
call fcn.14010ef60
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400c4b70
nop
lea rdx, str.Scsi
lea rcx, [rbp + 0x360]
call fcn.1401271b0
test rax, rax
je 0x14006a854
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14006a360
mov edi, eax
test edi, edi
je 0x14006aa8c
movsxd rax, dword [0x1401f9d90]
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 0x14006a892
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.1401270e8
test rax, rax
jne 0x14006a953
lea rax, [rbp + 0x360]
jmp 0x14006a956
inc rax
mov r8, rax
mov edx, 0x1b
lea rcx, [rbp + 0x380]
call fcn.140117898
mov ecx, 0x1b
lea rax, [rbp + 0x380]
cmp byte [rax], 0
je 0x14006a984
inc rax
sub rcx, 1
jne 0x14006a976
mov edx, 0x80070057
test rcx, rcx
cmovne edx, esi
je 0x14006a99b
mov eax, 0x1b
sub rax, rcx
jmp 0x14006a99e
mov rax, rsi
test edx, edx
js 0x14006a9fa
mov edx, 0x1b
sub rdx, rax
lea rcx, [rbp + 0x380]
lea rcx, [rcx + rax]
je 0x14006a9ec
lea r8, [rax + 0x7fffffe3]
add r8, rdx
lea r9, [0x140162f74]
sub r9, rcx
nop dword [rax + rax]
test r8, r8
je 0x14006a9ec
movzx eax, byte [r9 + rcx]
test al, al
je 0x14006a9ec
mov byte [rcx], al
inc rcx
dec r8
sub rdx, 1
jne 0x14006a9d0
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 [0x1401f9d90]
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 0x14006aa5b
mov rcx, qword [0x1401ec598]
cmp rcx, r15
je 0x14006aa5b
test byte [rcx + 0x1c], 0x40
je 0x14006aa5b
cmp byte [rcx + 0x19], 3
jb 0x14006aa5b
mov edx, 0xa
lea r8, [0x140162fa8]
mov rcx, qword [rcx + 0x10]
call fcn.140018f00
movsxd rax, dword [0x1401f9d90]
imul rcx, rax, 0x410
lea rax, [0x1401f5cac]
add rcx, rax
lea r8, [rbp + 0x360]
mov edx, 0x19
call fcn.140045320
inc dword [0x1401f9d90]
jmp 0x14006aa95
mov rcx, rbx
call fcn.140088cc0
nop
lea rcx, [rsp + 0x50]
call fcn.1400c55f0
inc r14d
cmp r14d, 0x10
jb 0x14006a7a0
mov r15d, dword [rsp + 0x40]
inc r15d
mov dword [rsp + 0x40], r15d
cmp r15d, 2
lea rdx, str..Scsi_d:
jb 0x14006a780
mov eax, dword [0x1401f9d90]
test eax, eax
jne 0x14006ab03
mov dword [0x1401f5c90], 0x46696e44
mov dword [0x1401f5c94], 8
mov qword [0x1401f5c98], rsi
mov qword [0x1401f5ca0], rsi
mov eax, 1
mov dword [0x1401f9d90], eax
test eax, eax
jle 0x14006ab45
lea rdi, [0x1401f5c94]
nop dword [rax]
test byte [rdi], 7
je 0x14006ab38
movsxd rax, esi
imul rbx, rax, 0x410
add rbx, r13
call fcn.14006adb0
mov rcx, rax
mov rdx, rbx
call fcn.1400ca630
mov eax, dword [0x1401f9d90]
inc esi
add rdi, 0x410
cmp esi, eax
jl 0x14006ab10
call fcn.14006adb0
mov byte [rax + 0x18], 0
mov eax, dword [0x1401f9d90]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400ede70
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