Function at 0x100032f0
Capabilities:
Check mutex on windows

Disassembly:
test eax, eax
je 0x1000363f
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x74
jmp 0x1000331b
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x10003540
cmp dword [ebx], 0x32
jne 0x10003310
mov eax, ebx
mov edi, ecx
jmp 0x1000333b
mov edi, dword [edi + 4]
test edi, edi
je 0x10003530
cmp dword [edi], 0x3b9bdf5c
jne 0x10003330
mov eax, dword [0x1002b008]
test eax, eax
je 0x10003600
mov dword [ebp - 0x48], ecx
lea esi, [edi + 8]
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 - 0x50], 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], 0x10018040
mov dword [esp], 0x10018ad8
call dword [sym.imp.setupapi.dll_SetupDiGetClassDevsW]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x54], ebx
mov edx, eax
sub esp, 0x10
lea eax, [ebx + 8]
test edi, edi
cmovne eax, esi
mov dword [ebp - 0x28], 0x1c
lea esi, [ebp - 0x28]
mov ebx, edx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x5c], ecx
jmp 0x100033e3
mov eax, dword [ebp - 0x48]
lea edx, [eax + 1]
mov dword [ebp - 0x48], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.setupapi.dll_SetupDiEnumDeviceInfo]
sub esp, 0xc
test eax, eax
je 0x10003550
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x44]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x100214bc
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.setupapi.dll_SetupDiGetDevicePropertyW]
sub esp, 0x20
test eax, eax
je 0x100033e0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jne 0x100033e0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x34], eax
jne 0x100033e0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x30], eax
jne 0x100033e0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x2c], eax
jne 0x100033e0
lea eax, [ebp - 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x100214a8
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.setupapi.dll_SetupDiGetDevicePropertyW]
sub esp, 0x20
test eax, eax
je 0x100033e0
mov ecx, dword [ebp - 0x5c]
mov edx, ebx
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x48], ecx
mov dword [esp], edx
call dword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
mov esi, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x48]
sub esp, 4
test edi, edi
je 0x1000364a
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x34], 1
mov dword [edi + 0x30], 1
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], eax
test ebx, ebx
je 0x10003640
mov dword [ebx + 0x2c], eax
mov eax, 1
mov dword [ebx + 0x28], edx
jmp 0x100035a0
test eax, eax
jne 0x10003343
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x10003322
mov ecx, dword [ebp - 0x5c]
mov edx, ebx
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x48], ecx
mov dword [esp], edx
call dword [sym.imp.setupapi.dll_SetupDiDestroyDeviceInfoList]
mov esi, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x48]
sub esp, 4
test edi, edi
je 0x1000359a
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
xor eax, eax
test ebx, ebx
je 0x100035a6
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
test byte [0x10016018], 8
je 0x10003538
mov dword [esp + 0x20], eax
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
lea eax, [ecx + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.deviceName:_s_deviceLUIDValid:_d_LUID:_08lx:_08lx_deviceNodeMask:_x._n
mov dword [esp + 8], str.fill_luid_property
mov dword [esp + 4], 0x10016018
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 dword [ebp - 0x48], ecx
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 ecx, dword [ebp - 0x48]
mov dword [0x1002b008], 1
sub esp, 0x10
jmp 0x10003350
ret
mov eax, 1
jmp 0x100035a6
test ebx, ebx
je 0x10003640
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
jmp 0x1000351f