Function at 0x10004280
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x74
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100043e8
mov ebx, eax
jmp 0x100042a7
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x100042ac
cmp dword [ebx], 0x32
jne 0x100042a0
mov esi, dword [ebp - 0x4c]
jmp 0x100042c3
mov esi, dword [esi + 4]
test esi, esi
je 0x100043e0
cmp dword [esi], 0x3b9bdf5c
jne 0x100042b8
mov eax, dword [0x10016140]
test eax, eax
je 0x10004570
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 - 0x54], 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], 0x1001807c
mov dword [esp], 0x1001ff2c
call dword [sym.imp.setupapi.dll_SetupDiGetClassDevsW]
lea ecx, [ebx + 8]
mov dword [ebp - 0x28], 0x1c
mov edi, eax
mov dword [ebp - 0x50], eax
sub esp, 0x10
lea eax, [esi + 8]
test esi, esi
mov dword [ebp - 0x5c], esi
cmove eax, ecx
mov dword [ebp - 0x58], ebx
mov ebx, edi
mov dword [ebp - 0x48], eax
xor eax, eax
lea esi, cs:[esi]
lea edx, [ebp - 0x28]
mov dword [esp + 4], eax
lea esi, [eax + 1]
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.setupapi.dll_SetupDiEnumDeviceInfo]
sub esp, 0xc
test eax, eax
je 0x100044c0
lea eax, [ebp - 0x38]
mov dword [esp + 0x1c], 0
mov edi, dword [sym.imp.setupapi.dll_SetupDiGetDevicePropertyW]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 8], 0x1002044c
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
sub esp, 0x20
test eax, eax
je 0x100043d3
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
je 0x100043f0
mov eax, esi
jmp 0x10004360
test ebx, ebx
jne 0x100042cb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x34], eax
jne 0x100043d3
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x30], eax
jne 0x100043d3
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x2c], eax
jne 0x100043d3
lea eax, [ebp - 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x44]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 8], 0x1001fe38
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
sub esp, 0x20
test eax, eax
je 0x100043d3
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
mov edi, dword [ebp - 0x54]
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 0x100045b3
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [esi + 0x34], 1
mov dword [esi + 0x30], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
test ebx, ebx
je 0x100045a9
mov dword [ebx + 0x28], eax
mov eax, 1
mov dword [ebx + 0x2c], edx
jmp 0x10004508
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
mov edi, dword [ebp - 0x54]
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 0x10004502
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
xor eax, eax
test ebx, ebx
je 0x1000450e
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
test byte [0x10016048], 8
je 0x100043e8
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x3c]
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], 0x10016048
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 [0x10016140], 1
sub esp, 0x10
jmp 0x100042d8
mov eax, 1
jmp 0x1000450e
test ebx, ebx
je 0x100045a9
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
jmp 0x100044ac