Function at 0x14006a700
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 0x14006ab44
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.140045310
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.140088cc0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006aa8f
mov edi, esi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x50]
call fcn.14010ef50
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400c4b60
nop
lea rdx, str.Scsi
lea rcx, [rbp + 0x360]
call fcn.1401271a0
test rax, rax
je 0x14006a844
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14006a350
mov edi, eax
test edi, edi
je 0x14006aa7c
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 0x14006a882
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.1401270d8
test rax, rax
jne 0x14006a943
lea rax, [rbp + 0x360]
jmp 0x14006a946
inc rax
mov r8, rax
mov edx, 0x1b
lea rcx, [rbp + 0x380]
call fcn.140117888
mov ecx, 0x1b
lea rax, [rbp + 0x380]
cmp byte [rax], 0
je 0x14006a974
inc rax
sub rcx, 1
jne 0x14006a966
mov edx, 0x80070057
test rcx, rcx
cmovne edx, esi
je 0x14006a98b
mov eax, 0x1b
sub rax, rcx
jmp 0x14006a98e
mov rax, rsi
test edx, edx
js 0x14006a9ea
mov edx, 0x1b
sub rdx, rax
lea rcx, [rbp + 0x380]
lea rcx, [rcx + rax]
je 0x14006a9dc
lea r8, [rax + 0x7fffffe3]
add r8, rdx
lea r9, [0x140162f74]
sub r9, rcx
nop dword [rax + rax]
test r8, r8
je 0x14006a9dc
movzx eax, byte [r9 + rcx]
test al, al
je 0x14006a9dc
mov byte [rcx], al
inc rcx
dec r8
sub rdx, 1
jne 0x14006a9c0
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 0x14006aa4b
mov rcx, qword [0x1401ec598]
cmp rcx, r15
je 0x14006aa4b
test byte [rcx + 0x1c], 0x40
je 0x14006aa4b
cmp byte [rcx + 0x19], 3
jb 0x14006aa4b
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.140045310
inc dword [0x1401f9d90]
jmp 0x14006aa85
mov rcx, rbx
call fcn.140088cb0
nop
lea rcx, [rsp + 0x50]
call fcn.1400c55e0
inc r14d
cmp r14d, 0x10
jb 0x14006a790
mov r15d, dword [rsp + 0x40]
inc r15d
mov dword [rsp + 0x40], r15d
cmp r15d, 2
lea rdx, str..Scsi_d:
jb 0x14006a770
mov eax, dword [0x1401f9d90]
test eax, eax
jne 0x14006aaf3
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 0x14006ab35
lea rdi, [0x1401f5c94]
nop dword [rax]
test byte [rdi], 7
je 0x14006ab28
movsxd rax, esi
imul rbx, rax, 0x410
add rbx, r13
call fcn.14006ada0
mov rcx, rax
mov rdx, rbx
call fcn.1400ca620
mov eax, dword [0x1401f9d90]
inc esi
add rdi, 0x410
cmp esi, eax
jl 0x14006ab00
call fcn.14006ada0
mov byte [rax + 0x18], 0
mov eax, dword [0x1401f9d90]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400ede60
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