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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp - 0xc4]
push ebx
push ecx
sub esp, 0x168
mov ebx, dword [ecx + 8]
mov eax, dword [ecx]
fld qword [esi + 0x20]
mov dword [ebp - 0x12c], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x144], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x148], ebx
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x14c], ebx
mov eax, dword [eax]
mov ebx, dword [esi + 0x28]
mov dword [ebp - 0x130], ecx
mov ecx, dword [esi + 0x2c]
mov edx, dword [eax]
fstp qword [ebp - 0x128]
mov dword [ebp - 0x118], ebx
mov ebx, dword [esi + 0x30]
mov dword [ebp - 0x140], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xbc
xor eax, eax
cmp ebx, 0x80070057
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetCaps___should_have_returned_DSERR_INVALIDPARAM__returned:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov eax, dword [eax]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xc3
xor eax, eax
cmp ebx, 0x80070057
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetCaps___should_have_returned_DSERR_INVALIDPARAM__returned:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xc4], 0x14
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xc8
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.IDirectSoundBuffer_GetCaps___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
test ebx, ebx
jne 0x40b726
cmp dword [0x428014], 1
jg 0x40baf8
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], 0
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x10
mov ebx, eax
call fcn.004256b0
test ebx, ebx
mov dword [eax], 0x42e2b1
sete dl
mov dword [eax + 4], 0xd1
mov eax, dword [ebp - 0x114]
mov dword [esp + 8], ebx
test eax, eax
mov dword [esp + 0xc], eax
setne al
mov dword [esp + 4], str.IDirectSoundBuffer_GetFormat___should_have_returned_the_needed_size:_rc_08lx_size_ld_n
movzx eax, al
and eax, edx
mov dword [esp], eax
call fcn.0040af80
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov edx, dword [ebp - 0x114]
mov dword [eax + 4], 0xd4
cmp edx, 0x12
mov dword [esp + 8], edx
sete al
cmp edx, 0x28
mov dword [esp + 4], str.Expected_a_correct_structure_size__got__ld_n
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x114]
cmp eax, 0x12
je 0x40bb30
cmp eax, 0x28
jne 0x40bae9
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x50]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x28
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x50]
sub esp, 0x10
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xdc], eax
movzx eax, word [ebp - 0x40]
mov word [ebp - 0xd8], ax
mov eax, dword [0x431a80]
cmp dword [ebp - 0x38], eax
je 0x40d070
mov eax, 1
xor eax, 1
mov dword [ebp - 0x150], eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xe2
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x42e454
mov dword [esp], eax
call fcn.0040af80
test ebx, ebx
jne 0x40b8a8
cmp dword [0x428014], 1
jg 0x40ce88
mov edi, dword [ebp - 0x120]
mov eax, dword [edi]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xec
xor eax, eax
cmp ebx, 0x80070057
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetFrequency___should_have_returned_DSERR_INVALIDPARAM__returned:__08lx_n
call fcn.0040af80
mov eax, dword [edi]
lea ecx, [ebp - 0x10c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov ecx, dword [ebp - 0x12c]
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xf1
mov eax, ecx
or eax, ebx
je 0x40bb80
cmp ebx, 0x8878001e
jne 0x40d0a8
test ecx, ecx
je 0x40cfb0
mov dword [esp + 8], 0x8878001e
mov dword [esp + 4], str.IDirectSoundBuffer_GetFrequency___failed:__08lx_n
mov dword [esp], 1
call fcn.0040af80
jmp 0x40bbda
mov ebx, dword [ebp - 0x130]
mov eax, dword [0x428014]
cmp eax, 1
jle 0x40b99e
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xa7
mov dword [esp], str.stopping_playback_n
call fcn.0040aeb0
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
sub esp, 4
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xa9
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_Stop___failed:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x120]
call eax
mov esi, eax
call fcn.004256b0
fld qword [ebp - 0x128]
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1fe
mov eax, esi
fld st(0)
fmul dword [0x42fac0]
sub eax, ebx
mov dword [esp + 4], str.The_sound_played_for__ld_ms_instead_of__g_ms_n
mov dword [esp + 8], eax
xor eax, eax
fst qword [esp + 0xc]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 0
fild qword [ebp - 0x120]
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], 0
fsubp st(1)
fild qword [ebp - 0x120]
faddp st(1)
fabs
fxch st(1)
fmul dword [0x42fac8]
fcompi st(1)
fstp st(0)
setae al
mov dword [esp], eax
call fcn.0040af80
mov edx, dword [ebp - 0xb0]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x12c]
sub esp, 0xc
test edx, edx
jne 0x40d0d0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40bae9
mov eax, dword [ebp - 0x108]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x20c
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.IDirectSound3DBuffer_Release___has__d_references__should_have_0_n
mov dword [esp], eax
call fcn.0040af80
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xca
mov eax, dword [ebp - 0xbc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp], str.____Caps:_flags0x_08lx_size_ld_n
mov dword [esp + 4], eax
call fcn.0040aeb0
jmp 0x40b726
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0xe8]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x12
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x10
mov ebx, eax
xor eax, eax
cmp word [ebp - 0xe8], 3
sete al
mov dword [ebp - 0x150], eax
jmp 0x40b86a
mov dword [esp + 8], 0
mov dword [esp + 4], str.IDirectSoundBuffer_GetFrequency___failed:__08lx_n
mov dword [esp], 1
call fcn.0040af80
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xf5
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0xe4]
mov dword [esp + 4], str.The_frequency_returned_by_GetFrequency__ld_does_not_match_the_format__ld_n
mov dword [esp + 8], eax
cmp edx, eax
mov dword [esp + 0xc], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov edi, dword [ebp - 0x120]
mov eax, dword [edi]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xfb
xor eax, eax
cmp ebx, 0x80070057
sete al
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x110]
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetStatus___should_have_returned_DSERR_INVALIDPARAM__returned:__08lx_n
call fcn.0040af80
mov eax, dword [edi]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0xff
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetStatus___failed:__08lx_n
call fcn.0040af80
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x100
mov eax, dword [ebp - 0x110]
mov dword [esp + 4], str.status0x_lx_instead_of_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x12c]
test eax, eax
jne 0x40ca00
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x40bae9
mov dword [ebp - 0x108], 0
mov eax, dword [0x4b0354]
test eax, eax
jne 0x40cff0
mov eax, dword [ebp - 0x120]
mov edi, dword [ebp - 0x118]
mov eax, dword [eax]
mov edx, dword [eax]
test edi, edi
je 0x40bfc8
lea ecx, [ebp - 0x108]
mov dword [esp + 4], 0x42bd60
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov edi, eax
mov dword [ebp - 0x130], eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x164
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSoundBuffer_QueryInterface___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
test edi, edi
jne 0x40bae9
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x90]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x42bda0
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x16b
xor eax, eax
test edi, edi
jne 0x40bd8f
mov ecx, dword [ebp - 0x90]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_QueryInterface___failed:__08lx_n
call fcn.0040af80
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x16d
mov eax, dword [ebp - 0x120]
mov edx, dword [eax]
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], str.COM_interface_broken:__p____p_n
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x90]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x170
xor eax, eax
cmp edi, 1
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_Release___has__d_references__should_have_1_n
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x174
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x42e978
call fcn.0040af80
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x120]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x42bda0
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x17a
test edi, edi
jne 0x40beb5
mov ecx, dword [ebp - 0x120]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
setne al
mov dword [ebp - 0x130], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSound3DBuffer_QueryInterface___failed:__08lx_n
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x108]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x17f
xor eax, eax
cmp edi, 0x80070057
sete al
mov dword [esp + 8], edi
lea edi, [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSound3DBuffer_GetAllParameters___failed:__08lx_n
call fcn.0040af80
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x186
xor eax, eax
cmp edi, 0x80070057
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSound3DBuffer_GetAllParameters___failed:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x50], 0x40
lea ecx, [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x18b
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSound3DBuffer_GetAllParameters___failed:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x40c07b
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
test byte [ebp - 0xc0], 0x80
je 0x40d130
lea ecx, [ebp - 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edx
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x191
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 0x42ea28
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov ecx, dword [esi + 0x10]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 8
mov edi, eax
call fcn.004256b0
test edi, edi
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x194
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSoundBuffer_SetVolume___failed:__08lx_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14c]
test edx, edx
je 0x40c127
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
test byte [ebp - 0xc0], 0x40
je 0x40d170
lea ecx, [ebp - 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edx
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1a1
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetPan___failed:__08lx_n
call fcn.0040af80
mov edi, dword [ebp - 0x120]
mov ecx, dword [esi + 0x18]
mov eax, dword [edi]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x40]
sub esp, 8
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1a4
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_SetPan___failed:__08lx_n
call fcn.0040af80
mov eax, dword [edi]
lea edi, [ebp - 0x100]
lea esi, [ebp - 0x104]
mov edx, dword [eax]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov ecx, dword [ebp - 0xbc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x2c]
sub esp, 0x20
mov dword [ebp - 0x130], eax
call fcn.004256b0
mov edx, dword [ebp - 0x130]
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1b1
xor eax, eax
cmp edx, 0x80070057
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_Lock___should_have_returned_DSERR_INVALIDPARAM__returned__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0xbc]
mov dword [esp + 4], 0
lea ecx, [esi + 1]
mov dword [esp], eax
mov dword [esp + 8], ecx
call dword [edx + 0x2c]
sub esp, 0x20
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1b8
xor eax, eax
cmp esi, 0x80070057
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_Lock___should_have_returned_DSERR_INVALIDPARAM__returned__08lx_n
call fcn.0040af80
mov esi, dword [ebp - 0x150]
lea eax, [ebp - 0xac]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
lea esi, [ebp - 0xe8]
fld qword [ebp - 0x128]
mov dword [esp], esi
fstp qword [esp + 4]
call fcn.004048f0
mov edi, dword [ebp - 0x120]
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xb0], eax
mov eax, dword [edi]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
call fcn.0040b410
mov eax, dword [edi]
mov edx, dword [eax]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 0x10
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1c4
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_Play___failed:__08lx_n
call fcn.0040af80
mov eax, dword [edi]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1c7
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetStatus___failed:__08lx_n
call fcn.0040af80
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1c8
mov eax, dword [ebp - 0x110]
mov dword [esp + 4], str.GetStatus:_bad_status:__lx_n
cmp eax, 5
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov esi, dword [ebp - 0x140]
test esi, esi
je 0x40c448
lea edx, [ebp - 0x8c]
xor eax, eax
mov ecx, 0xf
mov edi, edx
lea ebx, [ebp - 0x90]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [ebp - 0x90], 0x40
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [eax + 0xc]
sub esp, 8
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1cf
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSound3dListener_GetAllParameters___failed:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x40c3fc
mov dword [ebp - 0x8c], 0xc0a00000
fld qword [ebp - 0x128]
fdivr dword [0x42fac4]
fstp dword [ebp - 0x80]
mov esi, dword [ebp - 0x140]
mov eax, dword [esi]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], esi
call dword [eax + 0x28]
sub esp, 0xc
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1d8
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.IDirectSound3dListener_SetPosition___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x40cf10
mov eax, dword [sym.imp.kernel32.dll_GetTickCount]
lea esi, [ebp - 0xfc]
mov dword [ebp - 0x120], eax
call eax
mov ebx, dword [ebp - 0x140]
mov dword [ebp - 0x130], eax
lea esi, [esi]
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0xc
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x6e
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSoundBuffer_GetCurrentPosition___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
test edi, edi
jne 0x40b970
mov ecx, dword [ebp - 0x98]
mov edi, dword [ebp - 0xa0]
xor edx, edx
mov eax, ecx
div edi
mov eax, dword [ebp - 0xfc]
cmp eax, edx
jae 0x40c970
add edi, ecx
lea ecx, [edi + eax]
sub ecx, edx
mov eax, dword [0x428014]
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x98], ecx
cmp eax, 1
jle 0x40c564
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x7b
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x98]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x140]
mov dword [esp + 8], edx
mov eax, dword [ebp - 0xa0]
mov dword [esp], str.buf_size_ld_last_play_pos_ld_play_pos_ld_played_ld____ld_n
mov dword [esp + 4], eax
call fcn.0040aeb0
mov ecx, dword [ebp - 0x98]
mov eax, dword [0x428014]
cmp dword [ebp - 0xac], ecx
jb 0x40c980
mov edx, dword [ebp - 0x94]
mov edi, dword [ebp - 0xfc]
cmp edi, edx
jae 0x40c586
add edi, dword [ebp - 0xa0]
sub edi, edx
cmp eax, 1
jle 0x40c5cd
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x8c
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], str.offset_ld_free_ld_written_ld____ld_n
mov dword [esp + 4], eax
call fcn.0040aeb0
test edi, edi
je 0x40c7aa
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x9c], eax
jb 0x40c9c8
cmp dword [0x428014], 1
jle 0x40c612
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x9f
mov dword [esp + 4], edi
mov dword [esp], str.writing__ld_bytes_of_silence_n
call fcn.0040aeb0
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xec]
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0xf4]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0xf0]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0xf8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x94]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x2c]
sub esp, 0x20
mov dword [ebp - 0x140], eax
call fcn.004256b0
mov edx, dword [ebp - 0x140]
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x57
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.IDirectSoundBuffer_Lock___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
mov edx, dword [ebp - 0x140]
test edx, edx
jne 0x40b970
mov eax, dword [ebp - 0xa4]
xor edx, edx
cmp word [eax + 0xe], 8
mov eax, dword [ebp - 0xf0]
sete dl
shl edx, 7
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x140], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_memset]
mov ecx, dword [ebp - 0xf4]
test ecx, ecx
je 0x40c70b
mov eax, dword [ebp - 0xec]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x140]
mov dword [esp], ecx
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll_memset]
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0x94]
xor edx, edx
add eax, edi
div dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x94], edx
mov edx, dword [eax]
mov eax, dword [ebp - 0xec]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0xf0]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0xf8]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [edx + 0x4c]
sub esp, 0x14
mov dword [ebp - 0x140], eax
call fcn.004256b0
mov edx, dword [ebp - 0x140]
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x62
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.IDirectSoundBuffer_Unlock___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
mov edx, dword [ebp - 0x140]
test edx, edx
jne 0x40b970
cmp edi, 0xffffffff
je 0x40b970
mov dword [esp + 4], 0x1f
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x120]
sub esp, 8
call eax
mov edi, eax
test ebx, ebx
je 0x40c89d
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x40c89d
mov ecx, dword [ebp - 0x130]
mov eax, edi
mov dword [ebp - 0x13c], 0
sub eax, ecx
cmp dword [0x428014], 2
mov dword [ebp - 0x140], eax
fild qword [ebp - 0x140]
fmul dword [0x42fac4]
fdiv dword [0x42fac0]
fdiv qword [ebp - 0x128]
fsub dword [0x42fad0]
fstp dword [ebp - 0x140]
fld dword [ebp - 0x140]
fst dword [ebp - 0x8c]
jg 0x40c990
mov eax, dword [ebx]
mov dword [esp + 0x10], 0
fld dword [ebp - 0x84]
fstp dword [esp + 0xc]
fld dword [ebp - 0x88]
mov dword [esp], ebx
fstp dword [esp + 8]
fstp dword [esp + 4]
call dword [eax + 0x38]
sub esp, 0x14
mov dword [ebp - 0x140], eax
call fcn.004256b0
mov edx, dword [ebp - 0x140]
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1f0
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.IDirectSound3dListener_SetPosition___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40c478
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x40c478
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x130]
sub edi, eax
cmp dword [0x428014], 2
mov dword [ebp - 0x140], edi
fild qword [ebp - 0x140]
fmul dword [0x42fad4]
fdiv dword [0x42fac0]
fdiv qword [ebp - 0x128]
fsubr dword [0x42fac8]
fstp dword [ebp - 0x140]
fld dword [ebp - 0x140]
fst dword [ebp - 0x4c]
jg 0x40d040
mov eax, dword [ebp - 0x108]
mov edx, dword [eax]
mov dword [esp + 0x10], 0
fld dword [ebp - 0x44]
fstp dword [esp + 0xc]
fld dword [ebp - 0x48]
mov dword [esp], eax
fstp dword [esp + 8]
fstp dword [esp + 4]
call dword [edx + 0x4c]
sub esp, 0x14
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1f9
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSound3dBuffer_SetPosition___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
jmp 0x40c478
add ecx, eax
sub ecx, edx
jmp 0x40c4f3
mov ebx, dword [ebp - 0x130]
jmp 0x40b97b
fstp st(0)
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1ec
fld dword [ebp - 0x8c]
mov dword [esp], str.listener_position_g_n
fstp qword [esp + 4]
call fcn.0040aeb0
fld dword [ebp - 0x8c]
jmp 0x40c839
mov edx, edi
lea eax, [ebp - 0xb0]
call fcn.0040b410
cmp eax, 0xffffffff
je 0x40b970
sub edi, eax
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x9c], eax
je 0x40cf90
test edi, edi
je 0x40c7aa
jmp 0x40c5e7
mov eax, dword [ebp - 0x144]
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
call fcn.00405740
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
call edi
sub esp, 0xc
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x107
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSound8_SetCooperativeLevel_DSSCL_PRIORITY__failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
test edi, edi
jne 0x40bae9
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x10e
xor eax, eax
cmp edi, 0x80070057
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_SetFormat___should_have_returned_DSERR_INVALIDPARAM__returned:__08lx_n
call fcn.0040af80
lea ecx, [ebp - 0xd6]
mov dword [esp + 0x10], 2
mov dword [esp], ecx
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x2b11
mov dword [esp + 4], 1
call fcn.00405760
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0xd6]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 8
mov edi, eax
call fcn.004256b0
lea ecx, [ebp - 0xd6]
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x113
mov dword [esp], ecx
call fcn.00403410
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], 0x42e6e4
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0xe8]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x12
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x10
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x11b
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], 0x42e454
mov dword [esp], eax
call fcn.0040af80
test edi, edi
jne 0x40cca4
movzx eax, word [ebp - 0xd6]
cmp word [ebp - 0xe8], ax
jne 0x40cbe8
mov eax, dword [ebp - 0xd2]
cmp dword [ebp - 0xe4], eax
jne 0x40cbe8
movzx eax, word [ebp - 0xc8]
cmp word [ebp - 0xda], ax
jne 0x40cbe8
movzx eax, word [ebp - 0xd4]
cmp word [ebp - 0xe6], ax
je 0x40cca4
lea esi, [esi]
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x121
movzx eax, word [ebp - 0xca]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xce]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0xd4]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0xc8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xd2]
mov dword [esp + 8], eax
movzx eax, word [ebp - 0xd6]
mov dword [esp], str.Requested_format_tag0x_04x__ldx_dx_d_avg.B_s_ld_align_d_n
mov dword [esp + 4], eax
call fcn.0040aeb0
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x124
movzx eax, word [ebp - 0xdc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0xe6]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0xda]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp + 8], eax
movzx eax, word [ebp - 0xe8]
mov dword [esp], 0x42e750
mov dword [esp + 4], eax
call fcn.0040aeb0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x48], 0
mov eax, dword [eax]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], 0x14
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x12c
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSoundBuffer_GetCaps___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
test edi, edi
jne 0x40cd21
cmp dword [0x428014], 1
jg 0x40d1bf
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x133
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xbc]
mov dword [esp + 4], str.____buffer_size_changed_after_SetFormat_____previous_size_was__lu__current_size_is__lu_n
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xbc], eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x13a
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc0]
mov dword [esp + 4], str.____flags_changed_after_SetFormat_____previous_flags_were__08lx__current_flags_are__08lx_n
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040af80
mov eax, dword [ebp - 0x144]
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
call fcn.00405740
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
call edi
sub esp, 0xc
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x142
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSound8_SetCooperativeLevel_DSSCL_NORMAL__failed:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x40bae9
mov dword [ebp - 0x108], 0
mov eax, dword [0x4b0354]
test eax, eax
jne 0x40d1f0
mov eax, dword [ebp - 0x144]
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
call fcn.00405740
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
call edi
sub esp, 0xc
mov edi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x15a
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSound8_SetCooperativeLevel_DSSCL_WRITEPRIMARY__failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
test edi, edi
je 0x40bcd5
jmp 0x40bae9
call fcn.004256b0
mov edi, dword [ebp - 0x12c]
mov dword [eax], 0x42e2b1
movzx ebx, word [ebp - 0xe6]
mov dword [eax + 4], 0xe4
movzx eax, word [ebp - 0xdc]
test edi, edi
mov edi, str.Secondary
movzx ecx, word [ebp - 0xda]
movzx edx, word [ebp - 0xe8]
mov dword [ebp - 0x154], eax
mov eax, str.Primary
cmove eax, edi
mov edi, dword [ebp - 0x154]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0xe0]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0xe4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], str.____Format:__s_tag0x_04x__ldx_dx_d_avg.B_s_ld_align_d_n
call fcn.0040aeb0
jmp 0x40b8a8
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x40cf30
fld qword [ebp - 0x128]
fdivr dword [0x42facc]
mov dword [ebp - 0x4c], 0x42c80000
fstp dword [ebp - 0x40]
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x1c], 0x41200000
lea ecx, [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 0xc
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1e2
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.IDirectSound3dBuffer_SetPosition___failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
jmp 0x40c456
cmp dword [0x428014], 1
jg 0x40d240
test edi, edi
je 0x40c7aa
jmp 0x40c612
cmp ebx, 0x8878001e
jne 0x40d0a8
test byte [ebp - 0xc0], 0x20
je 0x40b945
mov dword [esp + 8], 0x8878001e
mov dword [esp + 4], str.IDirectSoundBuffer_GetFrequency___failed:__08lx_n
mov dword [esp], 0
call fcn.0040af80
jmp 0x40bbda
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x150
movzx eax, word [ebp - 0xe6]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0xda]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp + 0xc], eax
fld qword [ebp - 0x128]
mov dword [esp], str.____Playing__g_second_440Hz_tone_at__ldx_dx_d_n
fstp qword [esp + 4]
call fcn.0040aeb0
jmp 0x40bcd5
fstp st(0)
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1f5
fld dword [ebp - 0x4c]
mov dword [esp], str.sound_position_g_n
fstp qword [esp + 4]
call fcn.0040aeb0
fld dword [ebp - 0x4c]
jmp 0x40c90b
mov eax, dword [0x431a84]
cmp dword [ebp - 0x34], eax
jne 0x40b85c
mov eax, dword [0x431a88]
cmp dword [ebp - 0x30], eax
jne 0x40b85c
mov eax, dword [0x431a8c]
cmp dword [ebp - 0x2c], eax
jne 0x40b85c
xor eax, eax
jmp 0x40b861
mov dword [esp + 8], ebx
mov dword [esp + 4], str.IDirectSoundBuffer_GetFrequency___failed:__08lx_n
mov dword [esp], 0
call fcn.0040af80
test ebx, ebx
jne 0x40bbda
jmp 0x40bb9c
mov esi, dword [ebp - 0x144]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
call fcn.00405740
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call ebx
sub esp, 0xc
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x207
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.IDirectSound8_SetCooperativeLevel_DSSCL_NORMAL__failed:__08lx_n
mov dword [esp], eax
call fcn.0040af80
jmp 0x40ba9f
lea ecx, [esi + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edx
sub esp, 8
mov edi, eax
call fcn.004256b0
cmp edi, 0x8878001e
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x198
mov dword [esp + 8], edi
mov dword [esp + 4], str.IDirectSoundBuffer_GetVolume___should_have_returned_DSERR_CONTROLUNAVAIL__returned:__08lx_n
jmp 0x40c065
lea ecx, [esi + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edx
sub esp, 8
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x1a8
xor eax, eax
cmp esi, 0x8878001e
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectSoundBuffer_GetPan___should_have_returned_DSERR_CONTROLUNAVAIL__returned:__08lx_n
call fcn.0040af80
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
jmp 0x40c127
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x12e
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], str.____new_Caps:_flags0x_08lx_size_ld_n
mov dword [esp + 4], eax
call fcn.0040aeb0
jmp 0x40cd21
call fcn.004256b0
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x150
movzx eax, word [ebp - 0xe6]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0xda]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xe4]
mov dword [esp + 0xc], eax
fld qword [ebp - 0x128]
mov dword [esp], str.____Playing__g_second_440Hz_tone_at__ldx_dx_d_n
fstp qword [esp + 4]
call fcn.0040aeb0
jmp 0x40ce1e
call fcn.004256b0
xor edx, edx
mov dword [eax], 0x42e2b1
mov dword [eax + 4], 0x98
mov eax, dword [ebp - 0x9c]
div dword [ebp - 0xa0]
mov dword [esp], str.last_sound_byte_at__ld_n
mov dword [esp + 4], edx
call fcn.0040aeb0
jmp 0x40c9f2