Function at 0x67c0b270
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov ebx, dword [eax + 0x18]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
test ebx, ebx
je 0x67c0b545
mov edx, 0xffffffff
lock xadd dword [ebx], edx
sub edx, 1
test byte [0x67c21278], 8
jne 0x67c0b2d8
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
test edx, edx
je 0x67c0b318
mov dword [esp + 8], esi
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 edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x67c25a1b
mov dword [esp + 8], str.DirectSoundDevice_Release
mov dword [esp + 4], 0x67c21278
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call fcn.67c09b60
mov edx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
test edx, edx
jne 0x67c0b545
mov eax, dword [ebx + 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [ebx + 0x218]
sub esp, 4
test eax, eax
je 0x67c0b35a
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x218]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], 0x67c21340
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x21c]
mov eax, dword [ebx + 0x220]
sub esp, 4
mov dword [edx + 4], eax
mov edx, dword [ebx + 0x21c]
mov dword [eax], edx
mov dword [esp], 0x67c21340
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xa8]
sub esp, 4
test eax, eax
je 0x67c0b3d4
mov eax, dword [ebx + 0xa4]
test byte [0x67c21278], 4
jne 0x67c0b5b0
test eax, eax
jle 0x67c0b3d4
xor edi, edi
lea esi, [esi]
mov edx, dword [ebx + 0xa8]
mov edx, dword [edx + edi*4]
add edi, 1
mov dword [esp], edx
call fcn.67c05010
cmp edi, dword [ebx + 0xa4]
jl 0x67c0b3b8
mov dword [esp], ebx
call fcn.67c183d0
test eax, eax
je 0x67c0b3ed
test byte [0x67c21278], 4
jne 0x67c0b5e8
mov eax, dword [ebx + 0x208]
test eax, eax
je 0x67c0b413
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x2c]
mov eax, dword [ebx + 0x208]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebx + 0x210]
test eax, eax
je 0x67c0b428
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebx + 0x20c]
test eax, eax
je 0x67c0b43d
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebx + 0x204]
test eax, eax
je 0x67c0b452
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebx + 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx + 0x110]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x108]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10c]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x84]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xb0]
sub esp, 0xc
mov dword [eax + 0x18], 0
lea eax, [ebx + 0xb0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
sub esp, 4
test byte [0x67c21278], 8
jne 0x67c0b580
mov dword [esp + 8], ebx
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 edi
sub esp, 0xc
test byte [0x67c21278], 8
je 0x67c0b2ab
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x67c25a6d
mov dword [esp + 8], str.directsound_destroy
mov dword [esp + 4], 0x67c21278
mov dword [esp], 3
call fcn.67c09b60
jmp 0x67c0b2ab
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x67c25a6d
mov dword [esp + 8], str.DirectSoundDevice_Release
mov dword [esp + 4], 0x67c21278
mov dword [esp], 3
call fcn.67c09b60
jmp 0x67c0b525
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._d_secondary_buffers_not_released_n
mov dword [esp + 8], str.DirectSoundDevice_Release
mov dword [esp + 4], 0x67c21278
mov dword [esp], 2
call fcn.67c09b60
mov eax, dword [ebx + 0xa4]
jmp 0x67c0b3ae
mov dword [esp + 0xc], str.DSOUND_PrimaryDestroy_failed_n
mov dword [esp + 8], str.DirectSoundDevice_Release
mov dword [esp + 4], 0x67c21278
mov dword [esp], 2
call fcn.67c09b60
jmp 0x67c0b3ed