Function at 0x403850
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x7c
mov edx, dword [0x40c038]
mov eax, dword [eax]
mov dword [esp], esi
test edx, edx
je 0x4042b0
call dword [eax + 0x30]
mov edi, dword [0x40c038]
mov eax, dword [esi]
sub esp, 4
test edi, edi
je 0x4042c6
lea edx, [ebp - 0x58]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xac44
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [eax + 0x28]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x27c
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.CreateMasteringVoice_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov ebx, dword [0x40c038]
xor ecx, ecx
lea edx, [ebp - 0x54]
mov word [ebp - 0x3e], cx
lea ecx, [ebp - 0x4e]
test ebx, ebx
mov dword [ebp - 0x4e], 0x20003
mov dword [ebp - 0x4a], 0xac44
mov dword [ebp - 0x46], 0x56220
mov dword [ebp - 0x42], 0x200008
mov eax, dword [esi]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x408000
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0xc], 0
mov dword [ebp - 0x5c], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
je 0x404310
call dword [eax + 0x20]
sub esp, 0x20
mov ebx, eax
mov dword [esp + 4], 0x288
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.CreateSourceVoice_failed:__08x_n
lea ebx, [ebp - 0x3c]
mov dword [esp], eax
mov edi, ebx
call fcn.004060b0
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x42]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
imul eax, eax, 0xac44
mov dword [esp + 8], eax
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x5c]
mov ecx, 0x1b8
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp], 0xac44
call fcn.00402350
mov edx, dword [0x40c038]
mov eax, dword [esi]
mov dword [esp], esi
test edx, edx
je 0x404320
call dword [eax + 0x2c]
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x291
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.StartEngine_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x5622
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x29b
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, 0xffffffff
call fcn.00401ef0
mov dword [esp + 4], 0x29e
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov esi, eax
call fcn.00405e40
xor eax, eax
cmp esi, 0x5622
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x2a0
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [0x40c004]
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x5622
mov dword [ebp - 0x2c], 0x113a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x2aa
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, 0xffffffff
call fcn.00401ef0
mov dword [esp + 4], 0x2ad
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov edi, eax
call fcn.00405e40
mov eax, edi
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
sub eax, esi
cmp eax, 0x113a
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x2af
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [0x40c004]
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x5622
mov dword [ebp - 0x24], 0x113a
mov dword [ebp - 0x20], 1
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x2b9
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, 0xffffffff
call fcn.00401ef0
mov dword [esp + 4], 0x2bc
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov esi, eax
call fcn.00405e40
mov eax, esi
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
sub eax, edi
cmp eax, 0xbd7e
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x2be
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [0x40c004]
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x5622
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x2c8
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, 0xffffffff
call fcn.00401ef0
mov dword [esp + 4], 0x2cb
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov edi, eax
call fcn.00405e40
mov eax, edi
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
sub eax, esi
cmp eax, 0x10266
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x2cd
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [0x40c004]
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x5622
mov dword [ebp - 0x2c], 0x113a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x2d7
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, 0xffffffff
call fcn.00401ef0
mov dword [esp + 4], 0x2da
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov esi, eax
call fcn.00405e40
mov eax, esi
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
sub eax, edi
cmp eax, 0x7896
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x2dc
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [0x40c004]
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x5622
mov dword [ebp - 0x2c], 0x113a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x7896
mov dword [ebp - 0x20], 1
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
mov edi, eax
mov eax, dword [0x40c038]
sub esp, 0xc
test eax, eax
je 0x404330
mov dword [esp + 4], 0x2e8
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, 0xffffffff
call fcn.00401ef0
mov dword [esp + 4], 0x2eb
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov edi, eax
call fcn.00405e40
mov eax, edi
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
sub eax, esi
cmp eax, 0x89d0
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x2ed
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [0x40c004]
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x5622
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x5622
mov dword [ebp - 0x20], 1
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
mov ecx, dword [0x40c038]
sub esp, 0xc
mov esi, eax
test ecx, ecx
je 0x404270
mov dword [esp + 4], 0x2fb
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, 0xffffffff
call fcn.00401ef0
mov dword [esp + 4], 0x2fe
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov esi, eax
call fcn.00405e40
mov eax, esi
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
sub eax, edi
cmp eax, 0x5622
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x300
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [0x40c004]
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov edx, dword [0x40c038]
mov eax, dword [ebp - 0x54]
test edx, edx
jne 0x40412c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x113a
mov dword [ebp - 0x28], 0x5622
mov dword [ebp - 0x24], 0x113a
mov dword [ebp - 0x20], 1
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x30e
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
cmp edi, 0x88960001
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_should_have_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0x5622
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xff
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x319
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
lea edx, [esi + 0x15888]
call fcn.00401ef0
mov dword [esp + 4], 0x31c
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
mov ebx, eax
sub ebx, esi
call fcn.00405e40
xor eax, eax
cmp ebx, 0x1aeaa
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_wrong_samples_played:__u_n
mov dword [esp], eax
call fcn.004060b0
mov dword [esp + 4], 0x31d
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, ebx
mov edx, 0xbe37c63b
mov ecx, dword [0x40c004]
mul edx
xor eax, eax
mov dword [esp + 4], str.Got_wrong_OnLoopEnd_calls:__u_n
mov dword [esp + 8], ecx
mov ebx, edx
shr ebx, 0x10
add ebx, 1
cmp ebx, ecx
sete al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
mov eax, dword [ebp - 0x58]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
mov edx, dword [ebp - 0x34]
sub esp, 4
mov dword [esp + 8], edx
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x302
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
cmp esi, 0x88960001
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_should_have_failed:__08x_n
mov esi, edi
mov dword [esp], eax
call fcn.004060b0
jmp 0x4040ad
call dword [eax + 0x24]
mov edi, dword [0x40c038]
mov eax, dword [esi]
sub esp, 4
test edi, edi
jne 0x403884
lea edx, [ebp - 0x58]
mov dword [esp + 0x1c], 6
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xac44
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [eax + 0x1c]
sub esp, 0x20
mov ebx, eax
jmp 0x4038be
call dword [eax + 0x14]
sub esp, 0x20
mov ebx, eax
jmp 0x403963
call dword [eax + 0x20]
sub esp, 4
mov esi, eax
jmp 0x403a04
mov dword [esp + 4], 0x2ef
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
cmp edi, 0x88960001
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.SubmitSourceBuffer_should_have_failed:__08x_n
mov edi, esi
mov dword [esp], eax
call fcn.004060b0
jmp 0x403fb6