Function at 0x6fa84310
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x6fa84468
mov ebx, eax
jmp 0x6fa84337
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x6fa8433c
cmp dword [ebx], 0x32
jne 0x6fa84330
mov esi, dword [ebp - 0x5c]
jmp 0x6fa84353
mov esi, dword [esi + 4]
test esi, esi
je 0x6fa84460
cmp dword [esi], 0x3b9bdf5c
jne 0x6fa84348
mov eax, dword [0x6fa99140]
test eax, eax
je 0x6fa845f0
mov dword [esp + 8], str.display_device_init
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
sub esp, 0xc
mov dword [ebp - 0x64], 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], 0x6fa9b07c
mov dword [esp], 0x6faa2bb8
call sym._SetupDiGetClassDevsW_16
mov dword [ebp - 0x34], 0x1c
lea edx, [ebx + 8]
mov ecx, eax
mov dword [ebp - 0x60], eax
lea eax, [esi + 8]
sub esp, 0x10
mov dword [ebp - 0x6c], esi
test esi, esi
mov edi, eax
mov dword [ebp - 0x68], ebx
cmove edi, edx
mov ebx, ecx
xor eax, eax
lea esi, [esi]
lea ecx, [ebp - 0x34]
mov dword [esp + 4], eax
lea esi, [eax + 1]
mov dword [esp + 8], ecx
mov dword [esp], ebx
call sym._SetupDiEnumDeviceInfo_12
sub esp, 0xc
test eax, eax
je 0x6fa84540
lea eax, [ebp - 0x44]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 8], 0x6faa30d8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SetupDiGetDevicePropertyW_32
sub esp, 0x20
test eax, eax
je 0x6fa8445c
mov eax, dword [edi]
cmp dword [ebp - 0x44], eax
je 0x6fa84470
mov eax, esi
jmp 0x6fa843f0
test ebx, ebx
jne 0x6fa8435b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 4]
cmp dword [ebp - 0x40], eax
jne 0x6fa8445c
mov eax, dword [edi + 8]
cmp dword [ebp - 0x3c], eax
jne 0x6fa8445c
mov eax, dword [edi + 0xc]
cmp dword [ebp - 0x38], eax
jne 0x6fa8445c
lea eax, [ebp - 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 8], 0x6faa2ac4
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SetupDiGetDevicePropertyW_32
sub esp, 0x20
test eax, eax
je 0x6fa8445c
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._SetupDiDestroyDeviceInfoList_4
mov edi, dword [ebp - 0x64]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test esi, esi
je 0x6fa84633
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [esi + 0x34], 1
mov dword [esi + 0x30], 1
mov dword [esi + 0x28], eax
mov edi, edx
mov dword [esi + 0x2c], edx
mov esi, eax
test ebx, ebx
je 0x6fa84629
mov dword [ebx + 0x28], esi
mov eax, 1
mov dword [ebx + 0x2c], edi
jmp 0x6fa84587
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._SetupDiDestroyDeviceInfoList_4
mov edi, dword [ebp - 0x64]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test esi, esi
je 0x6fa84581
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
xor eax, eax
test ebx, ebx
je 0x6fa8458d
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
test byte [0x6fa99048], 8
je 0x6fa84468
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x5c]
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], 0x6fa99048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
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 [0x6fa99140], 1
sub esp, 0x10
jmp 0x6fa84368
mov eax, 1
jmp 0x6fa8458d
test ebx, ebx
je 0x6fa84629
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
jmp 0x6fa84529