Function at 0x1400660a0
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 [0x1401ff978]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov eax, dword [0x14020dfc0]
test eax, eax
jne 0x1400664d8
xor esi, esi
mov r15d, esi
mov dword [rsp + 0x40], esi
lea rdx, str..Scsi_d:
lea r13, [0x140209ec0]
nop word [rax + rax]
mov r14d, esi
movsxd rax, r15d
lea rcx, [rax + rax*4]
lea r12, [rdx + rcx*4]
lea r15, [0x1402005b8]
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.14003c310
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.140084300
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006642f
mov edi, esi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x50]
call fcn.140119b70
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400c0a80
nop
lea rdx, str.Scsi
lea rcx, [rbp + 0x360]
call fcn.140131ec4
test rax, rax
je 0x1400661e4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140065ce0
mov edi, eax
test edi, edi
je 0x14006641c
movsxd rax, dword [0x14020dfc0]
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 0x140066222
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.140131dfc
test rax, rax
jne 0x1400662e3
lea rax, [rbp + 0x360]
jmp 0x1400662e6
inc rax
mov r8, rax
mov edx, 0x1b
lea rcx, [rbp + 0x380]
call fcn.1401260a0
mov ecx, 0x1b
lea rax, [rbp + 0x380]
cmp byte [rax], 0
je 0x140066314
inc rax
sub rcx, 1
jne 0x140066306
mov edx, 0x80070057
test rcx, rcx
cmovne edx, esi
je 0x14006632b
mov eax, 0x1b
sub rax, rcx
jmp 0x14006632e
mov rax, rsi
test edx, edx
js 0x14006638a
mov edx, 0x1b
sub rdx, rax
lea rcx, [rbp + 0x380]
lea rcx, [rcx + rax]
je 0x14006637c
lea r8, [rax + 0x7fffffe3]
add r8, rdx
lea r9, [0x140170b5c]
sub r9, rcx
nop dword [rax + rax]
test r8, r8
je 0x14006637c
movzx eax, byte [r9 + rcx]
test al, al
je 0x14006637c
mov byte [rcx], al
inc rcx
dec r8
sub rdx, 1
jne 0x140066360
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 [0x14020dfc0]
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 0x1400663eb
mov rcx, qword [0x1402005b8]
cmp rcx, r15
je 0x1400663eb
test byte [rcx + 0x1c], 0x40
je 0x1400663eb
cmp byte [rcx + 0x19], 3
jb 0x1400663eb
mov edx, 0xa
lea r8, [0x140170b90]
mov rcx, qword [rcx + 0x10]
call fcn.14001cb00
movsxd rax, dword [0x14020dfc0]
imul rcx, rax, 0x410
lea rax, [0x140209edc]
add rcx, rax
lea r8, [rbp + 0x360]
mov edx, 0x19
call fcn.14003c310
inc dword [0x14020dfc0]
jmp 0x140066425
mov rcx, rbx
call fcn.1400842d0
nop
lea rcx, [rsp + 0x50]
call fcn.1400c1500
inc r14d
cmp r14d, 0x10
jb 0x140066130
mov r15d, dword [rsp + 0x40]
inc r15d
mov dword [rsp + 0x40], r15d
cmp r15d, 2
lea rdx, str..Scsi_d:
jb 0x140066110
mov eax, dword [0x14020dfc0]
test eax, eax
jne 0x140066493
mov dword [0x140209ec0], 0x46696e44
mov dword [0x140209ec4], 8
mov qword [0x140209ec8], rsi
mov qword [0x140209ed0], rsi
mov eax, 1
mov dword [0x14020dfc0], eax
test eax, eax
jle 0x1400664d1
lea rbx, [0x140209ec4]
nop dword [rax]
test byte [rbx], 7
je 0x1400664c4
movsxd rax, esi
imul rdx, rax, 0x410
add rdx, r13
lea rcx, [0x14020e860]
call fcn.1400c7760
mov eax, dword [0x14020dfc0]
inc esi
add rbx, 0x410
cmp esi, eax
jl 0x1400664a0
mov byte [0x14020e870], 0
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400f84b0
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