Function at 0x6fa83080
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x60], eax
test eax, eax
je 0x6fa8326a
mov esi, eax
jmp 0x6fa830a7
mov esi, dword [esi + 4]
test esi, esi
je 0x6fa830ac
cmp dword [esi], 0x32
jne 0x6fa830a0
mov edi, dword [ebp - 0x60]
jmp 0x6fa830c3
mov edi, dword [edi + 4]
test edi, edi
je 0x6fa83350
cmp dword [edi], 0x3b9bdf5c
jne 0x6fa830b8
mov eax, dword [section..bss]
test eax, eax
je 0x6fa83360
mov dword [esp + 8], str.display_device_init
lea ebx, [esi + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
sub esp, 0xc
mov dword [ebp - 0x68], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6fa96028
mov dword [esp], 0x6fa96b00
call sym._SetupDiGetClassDevsW_16
mov dword [ebp - 0x34], 0x1c
mov ecx, eax
mov dword [ebp - 0x64], eax
sub esp, 0x10
lea eax, [edi + 8]
test edi, edi
mov dword [ebp - 0x6c], edi
cmove eax, ebx
mov dword [ebp - 0x70], esi
lea ebx, [ebp - 0x34]
mov esi, ecx
mov dword [ebp - 0x5c], eax
xor eax, eax
lea esi, [esi]
mov dword [esp + 8], ebx
lea edi, [eax + 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SetupDiEnumDeviceInfo_12
sub esp, 0xc
test eax, eax
je 0x6fa831d0
lea eax, [ebp - 0x44]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6fa965c8
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._SetupDiGetDevicePropertyW_32
sub esp, 0x20
test eax, eax
je 0x6fa831c9
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
je 0x6fa83278
mov eax, edi
jmp 0x6fa83160
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
mov dword [esp], eax
call sym._SetupDiDestroyDeviceInfoList_4
mov ebx, dword [ebp - 0x68]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test edi, edi
je 0x6fa83211
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
xor eax, eax
test esi, esi
je 0x6fa8321d
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
test byte [0x6fa94018], 8
je 0x6fa8326a
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x48]
add eax, 0x1c
mov dword [esp + 0xc], str.deviceName:_s_deviceLUIDValid:_d_LUID:_08lx:_08lx_deviceNodeMask:_x._n
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fill_luid_property
mov dword [esp + 4], 0x6fa94018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x40], eax
jne 0x6fa831c9
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x3c], eax
jne 0x6fa831c9
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x38], eax
jne 0x6fa831c9
lea eax, [ebp - 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6fa965dc
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._SetupDiGetDevicePropertyW_32
sub esp, 0x20
test eax, eax
je 0x6fa831c9
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
mov dword [esp], eax
call sym._SetupDiDestroyDeviceInfoList_4
mov ebx, dword [ebp - 0x68]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test edi, edi
je 0x6fa833a3
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [edi + 0x34], 1
mov dword [edi + 0x30], 1
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
test esi, esi
je 0x6fa83399
mov dword [esi + 0x28], eax
mov eax, 1
mov dword [esi + 0x2c], edx
jmp 0x6fa83217
test esi, esi
jne 0x6fa830cb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [section..bss], 1
sub esp, 0x10
jmp 0x6fa830d8
mov eax, 1
jmp 0x6fa8321d
test esi, esi
je 0x6fa83399
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
jmp 0x6fa8333f