Function at 0x6f262d80
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
test byte [0x6f266638], 8
jne 0x6f262ed0
test ebx, ebx
je 0x6f262f04
mov eax, esi
mov edi, 5
call sym._WINMM_GetDeviceFromHWAVE
mov esi, eax
test eax, eax
je 0x6f262ec0
lea eax, [eax + 0xcc]
mov dword [ebp - 0x2c], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x14]
sub esp, 4
test edx, edx
je 0x6f262f20
mov eax, dword [esi + 0x2c]
lea edi, [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov edi, eax
test eax, eax
js 0x6f262f40
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
shl eax, 2
mov dword [ebp - 0x30], edx
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6f262ff6
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x1c]
sub esp, 0xc
test eax, eax
js 0x6f262f78
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
movss xmm1, dword [edi]
movss xmm0, dword [0x6f275778]
sub esp, 4
cmp dword [ebp - 0x1c], 1
mulss xmm1, xmm0
cvttss2si eax, xmm1
movzx eax, ax
mov dword [ebx], eax
jbe 0x6f262e9a
mulss xmm0, dword [edi + 4]
cvttss2si ecx, xmm0
shl ecx, 0x10
or eax, ecx
mov dword [ebx], eax
mov dword [esp + 8], edi
xor edi, edi
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x6f27519c
mov dword [esp + 8], str.waveOutGetVolume
mov dword [esp + 4], 0x6f266638
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
test ebx, ebx
jne 0x6f262dae
lea esp, [ebp - 0x10]
mov edi, 0xb
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x6f266638], 4
jne 0x6f262fe8
lea esp, [ebp - 0x10]
mov edi, 1
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x34]
sub esp, 0xc
test byte [0x6f266638], 4
je 0x6f262f5c
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.GetAllVolumes_failed:__08lx_n
mov dword [esp + 8], str.waveOutGetVolume
mov dword [esp + 4], 0x6f266638
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6f262f5c
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.GetChannelCount_failed:__08lx_n
jmp 0x6f262fc3
mov eax, dword [ebp - 0x2c]
mov edi, 7
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push eax
jmp 0x6f262ec0