Function at 0x6f24aa60
Capabilities:
Create thread
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x2c], ecx
test byte [0x6f266628], 8
jne 0x6f24ac10
test byte [ebp - 0x2c], 0x10
je 0x6f24aaa0
mov edi, dword [0x6f2663a4]
test edi, edi
je 0x6f24aaa0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x6f24aab0
mov edi, dword [ebp - 0x2c]
and edi, 0x40
je 0x6f24ac48
mov dword [esp], 0x6f266580
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call ebx
mov edx, dword [0x6f2663a4]
mov dword [ebp - 0x30], 0
sub esp, 4
test edx, edx
je 0x6f24adff
mov edi, dword [sym.imp.kernel32.dll_ResetEvent]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea esi, [esi]
nop
mov eax, dword [0x6f2702e4]
mov dword [esp], eax
call edi
mov eax, dword [0x6f2663a4]
mov dword [0x6f26665c], 1
sub esp, 4
mov eax, dword [eax + 0x10]
test eax, eax
je 0x6f24ab16
mov dword [esp], eax
call sym.winmm.dll_waveOutReset
sub esp, 4
mov dword [esp], 0x6f266580
call esi
mov eax, dword [0x6f2702e4]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp], 0x6f266580
call ebx
mov ecx, dword [0x6f2663a4]
mov dword [0x6f26665c], 0
sub esp, 4
test ecx, ecx
jne 0x6f24aae8
mov edi, dword [ebp - 0x30]
mov dword [esp], 0x6f266580
mov dword [0x6f2663a4], edi
call esi
sub esp, 4
test edi, edi
je 0x6f24ae0f
mov eax, dword [ebp - 0x2c]
test al, 1
je 0x6f24add0
mov esi, dword [ebp - 0x30]
mov ecx, eax
shr ecx, 3
movzx edx, byte [esi]
mov eax, ecx
and eax, 1
mov ecx, edx
mov byte [ebp - 0x2c], dl
and ecx, 0xfffffffe
or ecx, eax
mov byte [esi], cl
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], sym._proc_PlaySound_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x6f24adf0
mov dword [esp + 4], 0xf
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.pszSound_p_hmod_p_fdwSound_08lX_n
mov dword [esp + 8], str.MULTIMEDIA_PlaySound
mov dword [esp + 4], 0x6f266628
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6f24aa7d
mov dword [esp + 8], 0x14
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x34], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov dword [ebp - 0x30], eax
sub esp, 0xc
test eax, eax
je 0x6f24aa8d
mov edx, dword [ebp - 0x2c]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov eax, edx
mov edx, dword [ebp - 0x34]
and eax, 0x170004
cmp eax, 0x40004
je 0x6f24ae1c
ja 0x6f24ad00
cmp eax, 0x10000
je 0x6f24ad4f
ja 0x6f24ad40
test eax, eax
je 0x6f24ad4f
cmp eax, 4
jne 0x6f24ad07
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], ebx
mov dword [esp], 0x6f266580
mov ebx, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call ebx
mov eax, dword [0x6f2663a4]
sub esp, 4
test eax, eax
jne 0x6f24aad7
mov eax, dword [ebp - 0x30]
mov dword [esp], 0x6f266580
mov dword [0x6f2663a4], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x6f24ab78
cmp eax, 0x110000
je 0x6f24acbe
test byte [0x6f266628], 1
je 0x6f24acbe
mov dword [esp + 0xc], str.WTF_n
mov dword [esp + 8], str.PlaySound_IsString
mov dword [esp + 4], 0x6f266628
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_5
jmp 0x6f24acbe
mov eax, dword [ebp - 0x2c]
and eax, 0x160004
cmp eax, 0x20000
jne 0x6f24ad07
mov esi, dword [ebp + 8]
test esi, esi
je 0x6f24ae2c
test byte [ebp - 0x2c], 1
je 0x6f24acbe
cmp word [ebx], 0
je 0x6f24ae54
mov ecx, ebx
add ecx, 2
cmp word [ecx], 0
jne 0x6f24ad70
sub ecx, ebx
add ecx, 2
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x6f24ae5e
lea esi, [esi]
nop
movzx eax, word [ebx + edi]
mov word [edx + edi], ax
add edi, 2
test ax, ax
jne 0x6f24adb0
mov eax, dword [ebp - 0x30]
or byte [eax], 2
mov dword [eax + 4], edx
jmp 0x6f24acc4
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._proc_PlaySound_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x30]
call sym._PlaySound_Free
xor eax, eax
jmp 0x6f24aa8f
mov dword [esp], 0x6f266580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
jne 0x6f24ad4f
jmp 0x6f24acbe
lea eax, [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
sub esp, 8
mov dword [edx + 4], eax
test eax, eax
je 0x6f24ae5e
or byte [edx], 2
jmp 0x6f24acc4
mov ecx, 2
jmp 0x6f24ad7e
mov eax, dword [ebp - 0x30]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
test byte [eax], 2
jne 0x6f24ae96
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
xor eax, eax
sub esp, 0xc
jmp 0x6f24ac02
mov edx, dword [ebp - 0x30]
mov eax, dword fs:[0x18]
mov edx, dword [edx + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x6f24ae6c