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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x5c
mov eax, dword [0x6f27a6fc]
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 0x6f257a78
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], 0x6f26d440
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x14
test eax, eax
mov edi, eax
js 0x6f257be0
mov eax, dword [esi + 8]
cmp word [eax], 1
jne 0x6f2578e0
mov ecx, dword [eax + 4]
mov edi, 0xb
test ecx, ecx
jne 0x6f257a90
lea esi, [esi]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x6f2578b9
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 0x6f2578d2
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
lea esp, [edi - 8]
pop edi
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 edx, dword [esi + 8]
mov dword [ebx + 0x30], eax
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 sub.ucrtbase.dll_memcpy
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
test byte [esi + 0x14], 1
jne 0x6f257c10
mov edx, dword [ebx + 0xe4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xf4240
add edx, 0xb0
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edx
mov dword [esp + 8], 0xc0000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ecx + 0xc]
sub esp, 0x24
test eax, eax
mov edi, eax
js 0x6f257b50
mov eax, dword [ebx + 0x30]
movzx edi, word [eax + 0xc]
movd xmm1, dword [eax + 4]
movd xmm0, edi
mov edi, 7
punpckldq xmm0, xmm1
movq qword [ebx + 0xa8], xmm0
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x28]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x6f26d3f0
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 0xc
test eax, eax
js 0x6f257d60
mov ecx, dword [ebx + 0xc8]
test ecx, ecx
je 0x6f257e60
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 0x6f257da0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x6f257a33
mov dword [ebx + 0xb0], 0
pxor xmm0, xmm0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xa4], 0
movups xmmword [ebx + 0x90], xmm0
mov dword [ebx + 0xa0], 1
movzx eax, word [esi + 0x16]
xor edi, edi
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
and eax, 7
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x10]
movq xmm2, qword [esi + 0xc]
movq qword [ebx], xmm2
mov dword [ebx + 0xc], eax
mov dword [esi], eax
jmp 0x6f2578d2
test byte [0x6f266438], 4
jne 0x6f257b80
mov edi, 6
jmp 0x6f2578a0
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 0x6f257afe
test byte [0x6f266438], 4
jne 0x6f257d20
add eax, 7
and eax, 0xfffffff8
mov word [edi + 0xe], ax
movzx ecx, word [edi + 2]
movzx eax, ax
movzx edx, word [edi + 0xc]
imul ecx, eax
sar ecx, 3
cmp edx, ecx
je 0x6f257b27
test byte [0x6f266438], 4
jne 0x6f257e20
mov word [edi + 0xc], cx
movzx edx, cx
mov eax, dword [edi + 8]
imul edx, dword [edi + 4]
cmp eax, edx
je 0x6f25792f
test byte [0x6f266438], 4
jne 0x6f257de0
mov dword [edi + 8], edx
jmp 0x6f25792f
cmp eax, 0x88890008
jne 0x6f257b61
test byte [esi + 0x14], 8
je 0x6f257cd8
test byte [0x6f266438], 4
jne 0x6f257ca8
mov eax, edi
call fcn.6f255180
mov edi, eax
jmp 0x6f2578a0
mov edi, eax
mov eax, dword [ebx + 0xe4]
add eax, 8
call fcn.6f255570
mov esi, eax
mov eax, dword [ebx + 0xe4]
mov eax, dword [eax + 0xa4]
call fcn.6f255570
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Device__s___s__unavailable:__08lx_n
mov dword [esp + 8], str.WINMM_OpenDevice
mov dword [esp + 4], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
jmp 0x6f257a85
test byte [0x6f266438], 4
jne 0x6f257c78
mov eax, edi
call fcn.6f255180
mov edi, eax
cmp eax, 1
mov eax, 3
cmove edi, eax
jmp 0x6f2578a0
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ecx + 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 0x6f257c58
cmp eax, 0x88890008
jne 0x6f257b70
test byte [esi + 0x14], 8
je 0x6f257d00
mov edi, 0x20
cmp eax, 1
jne 0x6f257b70
jmp 0x6f2578a0
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
jmp 0x6f257bed
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
jmp 0x6f257b6e
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov eax, ebx
call fcn.6f257260
mov edi, eax
test eax, eax
jne 0x6f2578a0
test byte [esi + 0x14], 1
je 0x6f2579b6
jmp 0x6f2578a0
mov ecx, dword [ebp - 0x2c]
mov edx, 1
mov eax, ebx
call fcn.6f257260
mov edi, eax
jmp 0x6f2578a0
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
mov edi, dword [ebx + 0x30]
movzx eax, word [edi + 0xe]
jmp 0x6f257af4
test byte [0x6f266438], 4
je 0x6f2578a0
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
jmp 0x6f2578a0
test byte [0x6f266438], 4
je 0x6f2578a0
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
jmp 0x6f2578a0
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
mov edi, dword [ebx + 0x30]
movzx edx, word [edi + 0xc]
imul edx, dword [edi + 4]
jmp 0x6f257b43
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
mov edi, dword [ebx + 0x30]
movzx ecx, word [edi + 2]
movzx eax, word [edi + 0xe]
imul ecx, eax
sar ecx, 3
jmp 0x6f257b20
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 0x6f257faf
mov eax, dword [0x6f27a6e4]
mov edx, dword fs:[0x18]
test eax, eax
je 0x6f257f5a
mov ecx, dword [0x6f27a6e8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea ecx, [ecx*4 + 4]
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0x30]
mov ecx, dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [ebp - 0x30], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov dword [ebp - 0x2c], ecx
call ecx
mov dword [0x6f27a6e4], eax
mov eax, dword [0x6f27a6e8]
sub esp, 0x10
lea eax, [eax*4 + 4]
mov dword [esp + 0xc], eax
mov eax, dword [0x6f27a6e0]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
call ecx
sub esp, 0x10
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [0x6f27a6e8]
mov edx, dword [ebx + 0xc8]
mov dword [0x6f27a6e0], ecx
mov ecx, dword [0x6f27a6e4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + eax*4], ebx
add eax, 1
mov ecx, dword [ebx + 0xc8]
mov dword [0x6f27a6e8], eax
jmp 0x6f2579e9
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
sub esp, 0xc
mov dword [0x6f27a6e4], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0xc
mov dword [ebp - 0x2c], eax
jmp 0x6f257f24
test byte [0x6f266438], 4
je 0x6f2578a0
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], 0x6f266438
mov dword [esp], 2
call fcn.6f255f70
jmp 0x6f2578a0