Function at 0x405ce0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x39c
mov eax, dword [str.__wine_clipboard_]
mov dword [ebp - 0x244], eax
mov eax, dword [0x415284]
mov dword [ebp - 0x240], eax
mov eax, dword [0x415288]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x41528c]
mov dword [ebp - 0x238], eax
mov eax, dword [0x415290]
mov dword [ebp - 0x234], eax
mov eax, dword [0x415294]
mov dword [ebp - 0x230], eax
mov eax, dword [0x415298]
mov dword [ebp - 0x22c], eax
mov eax, dword [0x41529c]
mov dword [ebp - 0x228], eax
mov eax, dword [0x4152a0]
mov dword [ebp - 0x224], eax
call dword [sym.imp.user32.dll_GetProcessWindowStation]
lea edx, [ebp - 0x222]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x208
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetUserObjectInformationW]
sub esp, 0x14
test eax, eax
jne 0x405da0
mov edi, eax
test byte [0x412024], 2
jne 0x405e08
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [ebp - 0x244]
mov dword [esp + 4], 1
mov edi, 1
mov dword [esp + 8], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
sub esp, 0xc
mov esi, eax
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
jne 0x405d92
test byte [0x412024], 8
jne 0x405e40
mov dword [esp], esi
mov edi, 1
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, edi
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.failed_to_get_winstation_name_n
mov dword [esp + 8], str.wait_clipboard_mutex
mov dword [esp + 4], 0x412024
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
je 0x405f28
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x41330b
test ecx, ecx
jne 0x405f3b
movzx eax, word [ebp - 0x244]
test ax, ax
je 0x406048
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x405e80
mov ecx, 0x224c
mov dword [ebp - 0x37c], ebx
mov word [ebp - 0x370], cx
lea ecx, [ebp - 0x36e]
jmp 0x405ef4
cmp ax, 9
je 0x405ff8
cmp ax, 0xa
jne 0x405f8e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x406010
lea eax, [ebp - 0x24e]
cmp ecx, eax
ja 0x406010
mov eax, dword [ebp - 0x37c]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x37c], 2
cmp ax, 0xd
je 0x405f70
jbe 0x405eb0
cmp ax, 0x22
je 0x405fe0
cmp ax, 0x5c
jne 0x405f81
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405ed0
movzx ebx, bx
mov dword [esp], 0x413315
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.waiting_for_mutex__s_n
mov dword [esp + 8], str.wait_clipboard_mutex
mov dword [esp + 4], 0x412024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x405de1
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405ed0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x406040
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefwebbrowser_ShowBrowserBar]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefwebbrowser_ShowBrowserBar]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefwebbrowser_ShowBrowserBar]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefwebbrowser_ShowBrowserBar]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x405ed0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405ed0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405ed0
mov byte [ecx], 0x22
test edi, edi
jle 0x406061
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x370]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x405f3b
mov byte [ecx], al
inc ecx
jmp 0x405ed0
mov ebx, 0x224c
mov byte [ebp - 0x36e], 0x22
lea ecx, [ebp - 0x36e]
mov word [ebp - 0x370], bx
lea eax, [ecx + 1]
jmp 0x406027