Function at 0x67c054a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 0x10]
test byte [0x67c21028], 8
jne 0x67c05678
mov dword [esp + 8], 0x280
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x30]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp + 0x10]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x67c057d1
mov eax, dword [edx + 0x44]
mov dword [esp + 4], 0
mov dword [ebp + 0x10], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp + 0x10]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x24], eax
je 0x67c0579d
lea eax, [edx + 0x2c]
mov dword [ebp + 0x10], edx
lea edi, [ebx + 4]
mov dword [ebp - 0x20], eax
and edi, 0xfffffffc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
sub ecx, edi
sub esp, 4
mov eax, dword [edx]
mov esi, edx
sub esi, ecx
add ecx, 0x280
mov dword [ebx], eax
mov eax, dword [edx + 0x27c]
shr ecx, 2
mov dword [ebx + 0x27c], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0x30]
mov dword [esp], eax
call fcn.67c18540
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov eax, dword [ebx + 0x30]
sub esp, 4
test eax, eax
je 0x67c0574a
mov eax, dword [ebx + 0x34]
lea edx, [ebx + 0x274]
add dword [eax], 1
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0x274], ecx
lea ecx, [eax + 0xc]
mov dword [ebx + 0x278], ecx
mov ecx, dword [eax + 0xc]
mov dword [ecx + 4], edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0xc8], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 0
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0xcc], 0
mov dword [esp], ebx
call fcn.67c141a0
lea eax, [ebx + 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeSRWLock]
sub esp, 4
mov dword [esp], ebx
call fcn.67c12760
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.67c0c9b0
mov esi, eax
test eax, eax
jne 0x67c056c0
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 4]
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], 0x67c2331a
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.IDirectSoundBufferImpl_Duplicate
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x67c21028
mov dword [esp], 3
call fcn.67c012c0
mov edx, dword [ebp + 0x10]
jmp 0x67c054b9
mov edx, dword [ebx + 0x274]
mov eax, dword [ebx + 0x278]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [edx + 4], eax
mov edx, dword [ebx + 0x274]
mov dword [eax], edx
mov eax, dword [ebx + 0x34]
sub dword [eax], 1
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xc8]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
jmp 0x67c05664
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp + 0xc]
mov esi, 0x8007000e
sub esp, 0xc
mov dword [eax], 0
jmp 0x67c05669
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
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]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov esi, 0x8007000e
mov dword [eax], 0
jmp 0x67c05669
test byte [0x67c21028], 4
je 0x67c057be
mov dword [esp + 0xc], 0x67c2304c
mov dword [esp + 8], str.IDirectSoundBufferImpl_Duplicate
mov dword [esp + 4], 0x67c21028
mov dword [esp], 2
call fcn.67c012c0
jmp 0x67c057be