Function at 0x100009b00
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r12, qword [rsp + 0x260]
mov qword [rsp + 0x58], r9
mov dword [rsp + 0x40], r8d
mov r15, rdx
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
and qword [rsp + 0x30], rbx
mov esi, 0x1000000
lea r9, [0x100002f28]
mov r8d, 0x10004
mov edx, esi
mov rcx, rax
mov rdi, rax
xor ebp, ebp
xor r13d, r13d
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov rcx, qword [0x1000197e0]
test rcx, rcx
jne 0x100009b96
lea ebx, [rbp + 6]
lea r9, [0x100002f50]
mov r8d, 0x10002
mov edx, esi
jmp 0x100009ea8
lea rdx, [0x100002f70]
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x100009bd7
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x100002f88]
mov edx, 0x1000000
mov r8d, 0x10002
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
jmp 0x100009e7e
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x28
call fcn.10000b6f8
and qword [rsp + 0x20], rbx
lea r8, [rsp + 0x60]
mov r9d, 0xc8
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x100009c13
mov ebx, 0xe0000205
jmp 0x100009eb1
lea rax, [rsp + 0x60]
mov rdx, r15
mov rcx, r14
mov qword [r12 + 8], rax
mov dword [r12], 0x38
call fcn.100009938
mov ecx, 1
test eax, eax
je 0x100009c3e
mov dword [r12 + 0x30], ecx
cmp dword [0x1000197e8], ebx
jne 0x100009e58
mov edx, ecx
lea r8, [0x100002fd0]
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateMutexW]
mov r13, rax
test rax, rax
jne 0x100009c8f
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x100003048]
mov r8d, 1
mov edx, 0x1000000
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
jmp 0x100009e5d
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x100009d51
lea r8, [0x100001cf0]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_OpenEventW]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x100009ced
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x100003080]
jmp 0x100009c70
cmp eax, 0x80
je 0x100009d44
mov ecx, 1
cmp eax, ecx
je 0x100009e52
cmp dword [0x1000197e8], ebx
jne 0x100009e58
lea r9, [0x1000030a8]
mov r8d, 0x10004
mov edx, 0x1000000
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov rcx, qword [0x1000197c8]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov rax, qword [rsp + 0x30]
and dword [rsp + 0x20], ebx
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov r9d, 0xea60
lea ecx, [r8 + 2]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rax
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_WaitForMultipleObjectsEx]
test eax, eax
jne 0x100009ccd
mov rcx, qword [0x1000197c8]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
lea r9, [0x1000030d8]
mov edx, 0x1000000
mov r8d, 0x10004
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
movabs rdx, 0x1001000000000000
cmp dword [0x1000197e8], ebx
jne 0x100009ede
cmp dword [0x10001979c], ebx
je 0x100009dc6
mov al, byte [0x1000197a0]
cmp al, 4
jae 0x100009d98
test al, al
jne 0x100009dc6
test qword [0x100019788], rdx
je 0x100009dc6
mov rcx, qword [0x100019790]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x100009dc6
mov rcx, qword [0x100019770]
lea rdx, [0x100001940]
call fcn.100006d54
mov rcx, r12
mov dword [0x1000197ec], 1
call rsi
xor esi, esi
cmp eax, esi
lea eax, [rsi + 1]
mov dword [0x1000197ec], esi
cmovne ebp, eax
cmp dword [0x10001979c], esi
je 0x100009e34
mov al, byte [0x1000197a0]
cmp al, 4
jae 0x100009dfc
cmp al, sil
jne 0x100009e34
movabs rdx, 0x1001000000000000
test qword [0x100019788], rdx
je 0x100009e34
mov rcx, qword [0x100019790]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x100009e34
mov rcx, qword [0x100019770]
lea rdx, [0x100001950]
call fcn.100006d54
cmp dword [0x1000197f0], esi
je 0x100009ee0
mov ecx, 0x5b4
mov dword [0x1000197f0], esi
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitThread]
mov dword [0x1000197e8], ecx
mov ebx, 0xe0000228
test r13, r13
je 0x100009e6b
mov rcx, r13
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x100009e7e
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
cmp ebx, 0xe0000228
jne 0x100009eb1
cmp dword [0x1000197e8], 0
mov edx, 0x1000000
mov r8d, 0x10004
lea r9, [0x100003248]
jne 0x100009ea8
lea r9, [0x100003270]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov eax, ebx
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.100014800
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor esi, esi
lea r9, [0x100003100]
mov edx, 0x1000000
mov r8d, 0x10004
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov rcx, r13
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_ReleaseMutex]
cmp dword [0x1000197e8], esi
jne 0x100009e58
cmp ebp, esi
je 0x100009e58
mov rcx, qword [0x1000197e0]
lea rdx, [0x100003130]
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov rcx, qword [0x1000197e0]
lea rdx, [0x100003148]
mov rsi, rax
call qword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x10000a13b
test rsi, rsi
je 0x10000a13b
movabs rax, 0x346dc5d63886594b
pxor xmm0, xmm0
mul qword [r12 + 0x28]
shr rdx, 0xb
cvtsi2sd xmm0, rdx
test rdx, rdx
jns 0x100009f81
addsd xmm0, qword [0x100004ec0]
divsd xmm0, qword [0x100004eb8]
lea r9, [0x1000031a0]
mov edx, 0x1000000
mov r8d, 0x10004
mov rcx, rdi
movsd qword [rsp + 0x20], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
movabs rax, 0x346dc5d63886594b
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1f
mul qword [r12 + 0x28]
shr rdx, 0xb
mov dword [rsp + 0x3c], edx
call fcn.10000b6f8
and qword [r12 + 0x18], rbx
lea rax, [0x100009ad8]
mov qword [r12 + 0x10], rax
cmp dword [0x10001979c], ebx
je 0x10000a032
mov al, byte [0x1000197a0]
cmp al, 4
jae 0x100009ffa
test al, al
jne 0x10000a032
movabs rdx, 0x1001000000000000
test qword [0x100019788], rdx
je 0x10000a032
mov rcx, qword [0x100019790]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10000a032
mov rcx, qword [0x100019770]
lea rdx, [0x100001960]
call fcn.100006d54
mov rcx, r12
call rsi
mov esi, eax
cmp dword [0x10001979c], ebx
je 0x10000a088
mov cl, byte [0x1000197a0]
cmp cl, 4
jae 0x10000a050
test cl, cl
jne 0x10000a088
movabs rdx, 0x1001000000000000
test qword [0x100019788], rdx
je 0x10000a088
mov rcx, qword [0x100019790]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10000a088
mov rcx, qword [0x100019770]
lea rdx, [0x100001970]
call fcn.100006d54
cmp dword [0x1000197e8], ebx
jne 0x100009e58
test esi, esi
je 0x100009e5d
mov rsi, qword [rsp + 0x58]
mov r8d, 0x104
mov rcx, r12
mov rdx, rsi
call rbp
test eax, eax
je 0x10000a12a
mov r8, rsi
mov rdx, r15
mov rcx, r14
call fcn.10000984c
test eax, eax
je 0x10000a12a
mov r8d, 2
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
jne 0x10000a0ea
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x1000031e0]
jmp 0x10000a148
lea r9, [0x100003218]
mov edx, 0x1000000
mov r8d, 0x10004
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov r8d, dword [rsp + 0x40]
mov rdx, r15
mov rcx, r14
call fcn.100007e54
test eax, eax
jne 0x100009e5d
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x100009e5d
cmp dword [0x1000197e8], ebx
je 0x100009e5d
jmp 0x100009e58
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
lea r9, [0x100003160]
mov r8d, 0x10002
jmp 0x100009c76