Function at 0x6f24ed30
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x5c
mov eax, dword [0x6f2668a8]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebx + 0x18]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 0xe4]
mov ecx, dword [ecx + 0xa4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x14]
sub esp, 0xc
test eax, eax
js 0x6f24efb0
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6f277498
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x14
mov edi, eax
test eax, eax
js 0x6f24f128
mov eax, dword [esi + 8]
cmp word [eax], 1
jne 0x6f24ee00
mov ecx, dword [eax + 4]
mov edi, 0xb
test ecx, ecx
jne 0x6f24f020
nop
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x6f24edd9
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebx + 0x1c], 0
sub esp, 4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x6f24edf2
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebx + 0x18], 0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [eax + 0x10]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
add eax, 0x12
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x30], eax
call eax
mov dword [ebx + 0x30], eax
mov edx, dword [esi + 8]
mov edi, eax
sub esp, 0xc
movzx eax, word [edx + 0x10]
mov dword [esp + 4], edx
mov dword [esp], edi
add eax, 0x12
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebx + 0x1c]
test byte [esi + 0x14], 1
jne 0x6f24f150
mov edx, dword [ebx + 0xe4]
mov ecx, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0
add edx, 0xb0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0xf4240
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xc0000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ecx + 0xc]
sub esp, 0x24
mov edi, eax
test eax, eax
js 0x6f24f0f8
mov eax, dword [ebx + 0x30]
mov edi, 7
movzx edx, word [eax + 0xc]
mov dword [ebx + 0xa8], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x28]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x6f2774c8
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 0xc
test eax, eax
js 0x6f24f2a0
mov ecx, dword [ebx + 0xc8]
test ecx, ecx
je 0x6f24f3b0
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
sub esp, 8
test eax, eax
js 0x6f24f2e0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x6f24ef6a
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0xa0], 1
xor edi, edi
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
movzx eax, word [esi + 0x16]
and eax, 7
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
mov dword [esi], eax
jmp 0x6f24edf2
mov edi, 6
test byte [0x6f266638], 4
je 0x6f24edc0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xe4]
add eax, 8
call sym._wine_dbgstr_wn.constprop.0_3
mov esi, eax
mov eax, dword [ebx + 0xe4]
mov eax, dword [eax + 0xa4]
call sym._wine_dbgstr_wn.constprop.0_3
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.Device__s___s__unavailable:__08lx_n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24edc0
mov dword [esp + 8], 0x12
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x30], eax
call eax
mov edi, eax
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 8]
sub esp, 0xc
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
xor edx, edx
mov word [edi + 0x10], dx
mov dword [edi + 0xc], eax
shr eax, 0x10
test al, 7
je 0x6f24f095
test byte [0x6f266638], 4
jne 0x6f24f260
add eax, 7
and eax, 0xfffffff8
mov word [edi + 0xe], ax
mov edi, dword [ebx + 0x30]
movzx eax, word [edi + 0xe]
movzx ecx, word [edi + 2]
movzx eax, ax
movzx edx, word [edi + 0xc]
imul eax, ecx
test eax, eax
lea ecx, [eax + 7]
cmovs eax, ecx
sar eax, 3
cmp edx, eax
je 0x6f24f0ca
test byte [0x6f266638], 4
jne 0x6f24f360
mov word [edi + 0xc], ax
mov edi, dword [ebx + 0x30]
movzx edx, word [edi + 0xc]
imul edx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp eax, edx
je 0x6f24ee4f
test byte [0x6f266638], 4
jne 0x6f24f320
mov dword [edi + 8], edx
mov edi, dword [ebx + 0x30]
jmp 0x6f24ee4f
cmp eax, 0x88890008
jne 0x6f24f109
test byte [esi + 0x14], 8
je 0x6f24f218
test byte [0x6f266638], 4
jne 0x6f24f1e8
mov eax, edi
call sym._hr2mmr
mov edi, eax
jmp 0x6f24edc0
test byte [0x6f266638], 4
jne 0x6f24f1b8
mov eax, edi
call sym._hr2mmr
mov edi, eax
cmp eax, 1
mov eax, 3
cmove edi, eax
jmp 0x6f24edc0
mov dword [ebp - 0x1c], 0
mov edx, dword [eax]
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [esp], edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x30]
sub esp, 4
cmp eax, 1
je 0x6f24f196
cmp eax, 0x88890008
jne 0x6f24f118
test byte [esi + 0x14], 8
je 0x6f24f240
mov edi, 0x20
cmp eax, 1
je 0x6f24edc0
jmp 0x6f24f118
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Activate_failed:__08lx_n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24f135
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Initialize_failed:__08lx_n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24f116
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov eax, ebx
call sym._WINMM_MapDevice
mov edi, eax
test eax, eax
jne 0x6f24edc0
test byte [esi + 0x14], 1
je 0x6f24eed0
jmp 0x6f24edc0
mov ecx, dword [ebp - 0x2c]
mov edx, 1
mov eax, ebx
call sym._WINMM_MapDevice
mov edi, eax
jmp 0x6f24edc0
movzx eax, ax
mov dword [esp + 0xc], str.Fixing_bad_wBitsPerSample___u__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
mov edi, dword [ebx + 0x30]
movzx eax, word [edi + 0xe]
jmp 0x6f24f084
test byte [0x6f266638], 4
je 0x6f24edc0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.GetService_failed:__08lx_n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24edc0
test byte [0x6f266638], 4
je 0x6f24edc0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.SetEventHandle_failed:__08lx_n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24edc0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Fixing_bad_nAvgBytesPerSec___lu__n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
mov edi, dword [ebx + 0x30]
movzx edx, word [edi + 0xc]
imul edx, dword [edi + 4]
jmp 0x6f24f0e6
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Fixing_bad_nBlockAlign___u__n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
mov edi, dword [ebx + 0x30]
movzx eax, word [edi + 2]
movzx edx, word [edi + 0xe]
imul edx, eax
test edx, edx
lea eax, [edx + 7]
cmovns eax, edx
sar eax, 3
jmp 0x6f24f0bf
mov dword [ebp - 0x2c], eax
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]
mov edx, dword [ebp - 0x2c]
sub esp, 0x10
test eax, eax
mov dword [ebx + 0xc8], eax
je 0x6f24f4fe
mov eax, dword [0x6f2668b0]
mov edx, dword fs:[0x18]
test eax, eax
je 0x6f24f4a4
mov ecx, dword [0x6f2668ac]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea ecx, [ecx*4 + 4]
mov dword [ebp - 0x30], edx
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0x30]
mov ecx, dword [sym.imp.kernel32.dll_HeapReAlloc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], ecx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [0x6f2668b0], eax
mov eax, dword [0x6f2668ac]
sub esp, 0x10
mov dword [esp + 4], 0
lea eax, [eax*4 + 4]
mov dword [esp + 0xc], eax
mov eax, dword [0x6f266908]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ecx
mov dword [ebp - 0x2c], eax
sub esp, 0x10
mov dword [0x6f266908], eax
mov eax, dword [0x6f2668ac]
mov ecx, dword [0x6f2668b0]
mov edx, dword [ebx + 0xc8]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + eax*4], ebx
inc eax
mov ecx, dword [ebx + 0xc8]
mov dword [0x6f2668ac], eax
jmp 0x6f24ef03
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov dword [0x6f2668b0], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov dword [ebp - 0x2c], eax
sub esp, 0xc
mov dword [0x6f266908], eax
jmp 0x6f24f479
test byte [0x6f266638], 4
je 0x6f24edc0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.CreateEvent_failed:__08lx_n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f24edc0