Function at 0x6accc7e0
Capabilities:
Access peb ldr_data
Get kernel32 base address
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, 0x38
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
test byte [0x6acd0204], 8
jne 0x6accc9ad
cmp ebx, 1
je 0x6accca3f
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x1c], eax
not eax
and eax, ebx
mov dword [ebp - 0x28], eax
jne 0x6accca49
mov eax, dword [edi + 0xc0]
add edi, 0xc0
mov dword [ebp - 0x1c], edi
lea esi, [eax - 0x18]
cmp edi, eax
je 0x6accc87b
lea esi, [esi]
mov edi, dword [esi + 0x10]
test ebx, ebx
je 0x6accc978
mov edx, ebx
xor eax, eax
lea esi, [esi]
nop
mov ecx, eax
inc eax
shr edx, 1
jne 0x6accc860
dec ecx
cmp edi, ecx
je 0x6accc985
mov eax, dword [esi + 0x18]
lea esi, [eax - 0x18]
cmp dword [ebp - 0x1c], eax
jne 0x6accc848
mov dword [esp + 8], 0x20
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov dword [eax], sym._SAO_QueryInterface_12
sub esp, 0xc
mov esi, eax
mov dword [eax + 4], 1
mov dword [eax + 0xc], ebx
test ebx, ebx
je 0x6accc998
mov edx, dword [ebp - 0x28]
lea esi, [esi]
mov eax, edx
inc edx
shr ebx, 1
jne 0x6accc8c8
dec eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov ebx, eax
mov eax, 1
lock xadd dword [ebx + 4], eax
inc eax
test byte [0x6acd0204], 8
jne 0x6accca0b
mov ebx, dword [ebp - 0x20]
mov edx, dword fs:[0x18]
mov eax, dword [ebx + 0x20]
movzx eax, word [eax + 0x1c]
imul eax, dword [ebx + 0x48]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov edi, ebx
lea ebx, [ebx + 8]
sub esp, 0xc
mov dword [esi + 0x14], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 0x18]
sub esp, 4
mov dword [esi + 0x18], edx
mov edx, dword [edi + 0xc4]
mov dword [esi + 0x1c], edx
mov dword [edx], eax
mov dword [edi + 0xc4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [eax], esi
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov ecx, 0xfffffffe
cmp edi, ecx
jne 0x6accc870
lea esp, [ebp - 0x10]
mov eax, 0x8889010c
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test byte [0x6acd0204], 1
jne 0x6accc9e5
mov dword [esi + 0x10], 0xffffffff
jmp 0x6accc8d3
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p____0x_x___p__n
mov dword [esp + 8], str.SAORS_ActivateSpatialAudioObject
mov dword [esp + 4], 0x6acd0204
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6accc80f
mov dword [esp + 0xc], str.AudioObjectType_None_not_implemented_yet__n
mov dword [esp + 8], str.SAORS_ActivateSpatialAudioObject
mov dword [esp + 4], 0x6acd0204
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x6accc9a1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], str.__p__new_ref__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.SAORS_AddRef
mov dword [esp + 4], 0x6acd0204
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6accc8f3
mov eax, 0x88890103
jmp 0x6accc963
mov eax, 0x8889010b
jmp 0x6accc963