Function at 0x6f24fdf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [esp], 0x6f2668bc
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x6f2668b4]
sub esp, 4
test eax, eax
je 0x6f24ff98
mov eax, dword [0x6f2668b8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
cmp eax, 0x102
je 0x6f24ff70
test eax, eax
jne 0x6f24ff52
test byte [0x6f266638], 8
jne 0x6f250048
mov eax, dword [0x6f2668b8]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x6f2668b4], 0
mov dword [esp], eax
call ebx
mov dword [0x6f2668b8], 0
sub esp, 4
test byte [0x6f266638], 8
jne 0x6f24ffe3
mov dword [esp + 8], 0x6f266900
mov dword [esp + 4], sym._WINMM_StartDevicesThread
mov dword [esp], 4
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._WINMM_DevicesThreadProc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x6f2668b8], eax
sub esp, 0x18
test eax, eax
je 0x6f250010
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
mov esi, eax
mov eax, dword [ebp - 0x10]
sub esp, 0x10
mov dword [esp], eax
call ebx
sub esp, 4
test esi, esi
je 0x6f24ff70
cmp esi, 1
je 0x6f250078
mov dword [esp], 0x6f2668bc
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lock inc dword [0x6f266904]
mov dword [esp], 0x6f2668bc
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, 1
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [0x6f2668b8]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x6f24fe75
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [0x6f2668b8]
sub esp, 8
mov dword [esp], eax
call ebx
mov dword [0x6f2668b8], 0
sub esp, 4
test byte [0x6f266638], 8
je 0x6f24fe82
mov dword [esp + 0xc], str.Starting_up_devices_thread_n
mov dword [esp + 8], str.WINMM_StartDevicesThread
mov dword [esp + 4], 0x6f266638
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24fe82
mov dword [esp], 0x6f2668bc
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [0x6f266900]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor eax, eax
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0xc], str.Devices_thread_left_dangling_message_window__n
mov dword [esp + 8], str.WINMM_StartDevicesThread
mov dword [esp + 4], 0x6f266638
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24fe4e
mov eax, dword [0x6f2668b8]
mov dword [esp], eax
call ebx
mov dword [0x6f2668b8], 0
mov dword [0x6f2668b4], 0
sub esp, 4
jmp 0x6f24ff52