Function at 0x100030d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x70
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100032c8
mov ebx, eax
jmp 0x100030f7
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x100030fc
cmp dword [ebx], 0x32
jne 0x100030f0
mov edi, dword [ebp - 0x4c]
jmp 0x10003113
mov edi, dword [edi + 4]
test edi, edi
je 0x100033a8
cmp dword [edi], 0x3b9bdf5c
jne 0x10003108
mov eax, dword [section..bss]
test eax, eax
je 0x100033c0
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], 0x10015028
mov dword [esp], 0x10015a98
call dword [sym.imp.setupapi.dll_SetupDiGetClassDevsW]
lea ecx, [ebx + 8]
mov dword [ebp - 0x28], 0x1c
sub esp, 0x10
mov esi, eax
test edi, edi
mov dword [ebp - 0x54], edi
lea eax, [edi + 8]
mov dword [ebp - 0x58], ebx
cmove eax, ecx
mov dword [ebp - 0x48], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
lea edx, [ebp - 0x28]
mov dword [esp + 4], eax
lea ebx, [eax + 1]
mov dword [esp + 8], edx
mov dword [esp], esi
call dword [sym.imp.setupapi.dll_SetupDiEnumDeviceInfo]
sub esp, 0xc
test eax, eax
je 0x10003230
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], 0x1001afdc
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 0x20
test eax, eax
je 0x10003223
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
je 0x100032d0
mov eax, ebx
jmp 0x100031b0
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
mov dword [esp], esi
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]
sub esp, 4
test edi, edi
je 0x1000326f
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
xor eax, eax
test ebx, ebx
je 0x1000327b
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
test byte [0x10013018], 8
je 0x100032c8
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], 0x10013018
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 - 0x48]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x34], eax
jne 0x10003223
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x30], eax
jne 0x10003223
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x2c], eax
jne 0x10003223
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], 0x1001afc8
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 0x20
test eax, eax
je 0x10003223
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
mov dword [esp], esi
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]
sub esp, 4
test edi, edi
je 0x10003403
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [edi + 0x34], 1
mov dword [edi + 0x30], 1
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
test ebx, ebx
je 0x100033f9
mov dword [ebx + 0x28], eax
mov eax, 1
mov dword [ebx + 0x2c], edx
jmp 0x10003275
test ebx, ebx
jne 0x1000311b
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 0x10003128
mov eax, 1
jmp 0x1000327b
test ebx, ebx
je 0x100033f9
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
jmp 0x10003395