Function at 0x403120
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov esi, dword [0x40c038]
mov dword [ebp - 0x9c], eax
mov dword [0x40c00c], 0
mov eax, dword [eax]
mov dword [0x40c008], 0
test esi, esi
je 0x403800
mov dword [esp], ecx
call dword [eax + 0x30]
sub esp, 4
mov ecx, dword [ebp - 0x9c]
mov ebx, dword [0x40c038]
mov eax, dword [ecx]
test ebx, ebx
je 0x4037b0
lea edx, [ebp - 0x90]
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], ecx
call dword [eax + 0x28]
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0x1e9
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
xor edi, edi
mov dword [esp], eax
call fcn.004060b0
mov ecx, dword [ebp - 0x9c]
mov word [ebp - 0x66], di
lea edi, [ebp - 0x76]
mov edx, dword [0x40c038]
mov dword [ebp - 0x76], 0x20003
mov dword [ebp - 0x72], 0xac44
mov dword [ebp - 0x6e], 0x56220
test edx, edx
mov dword [ebp - 0x6a], 0x200008
mov eax, dword [ecx]
mov dword [ebp - 0xa0], edi
mov dword [esp + 8], edi
lea edi, [ebp - 0x8c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x408004
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0xc], 0
mov dword [ebp - 0xa4], edi
mov dword [esp + 4], edi
mov dword [esp], ecx
je 0x403750
call dword [eax + 0x20]
sub esp, 0x20
mov ebx, eax
mov dword [esp + 4], 0x1f5
lea edi, [ebp - 0x64]
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 - 0x40]
xor esi, esi
mov dword [esp], eax
call fcn.004060b0
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x6a]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
imul eax, eax, 0x113a
mov dword [esp + 8], eax
mov dword [ebp - 0x60], 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 - 0xa0]
mov ecx, 0x1b8
sub esp, 0xc
mov dword [ebp - 0x5c], eax
mov dword [esp], 0x113a
call fcn.00402350
mov eax, dword [ebp - 0x8c]
mov dword [ebx], esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x44], ebx
mov dword [ebx + 4], eax
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0x203
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
add esi, 1
add ebx, 8
mov dword [esp], eax
call fcn.004060b0
cmp esi, 5
jne 0x4032f7
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x4c]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x207
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.Start_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov esi, dword [0x40c038]
mov ecx, dword [ebp - 0x9c]
test esi, esi
mov eax, dword [ecx]
mov dword [esp], ecx
je 0x4037a0
call dword [eax + 0x2c]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x20b
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.StartEngine_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov ebx, dword [0x40c038]
mov eax, dword [ebp - 0x8c]
test ebx, ebx
mov edx, dword [eax]
mov dword [esp + 4], 0xbb80
mov dword [esp], eax
je 0x403760
call dword [edx + 0x70]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x20f
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.SetSourceSampleRate_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
lea ebx, [ebp - 0x86]
mov edi, 0x5621
xor esi, esi
jmp 0x40348a
mov dword [esp], eax
mov dword [esp + 4], ebx
call edx
mov eax, esi
sub esp, 8
cmp edi, dword [ebp - 0x7e]
sbb eax, dword [ebp - 0x7a]
jb 0x4034bd
mov dword [esp], 0x64
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
mov eax, dword [ebp - 0x8c]
mov ecx, dword [0x40c038]
mov edx, dword [eax]
mov edx, dword [edx + 0x64]
test ecx, ecx
jne 0x403464
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call edx
mov eax, esi
sub esp, 0xc
cmp edi, dword [ebp - 0x7e]
sbb eax, dword [ebp - 0x7a]
jae 0x40347a
mov dword [esp + 4], 0x21f
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [ebp - 0x7e]
mov dword [esp + 4], str.Got_wrong_samples_played_n
xor eax, 0x5622
or eax, dword [ebp - 0x7a]
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
mov ecx, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
sub esp, 4
mov esi, dword [0x40c038]
mov eax, dword [ecx]
mov dword [esp + 8], edi
mov edi, dword [ebp - 0xa4]
test esi, 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 [esp + 4], edi
mov dword [esp], ecx
je 0x403840
call dword [eax + 0x20]
sub esp, 0x20
mov esi, eax
mov dword [esp + 4], 0x229
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.CreateSourceVoice_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], 0x40
lea ecx, [ebp - 0x64]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x22e
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 - 0x8c]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x4c]
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x231
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.Start_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov esi, dword [section..bss]
mov edi, dword [sym.imp.kernel32.dll_Sleep]
test esi, esi
je 0x403658
jmp 0x403670
cmp esi, 0x3e8
je 0x403670
mov dword [esp], 0x64
add esi, 0x64
call edi
mov eax, dword [section..bss]
sub esp, 4
test eax, eax
je 0x403650
mov dword [esp + 4], 0x239
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [section..bss]
mov dword [esp + 4], str.Got_wrong_number_of_OnStreamEnd_calls:__u_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov edx, dword [0x40c038]
test edx, edx
je 0x403814
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 8
mov dword [esp + 4], 0x240
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
mov eax, dword [ebp - 0x7e]
or eax, dword [ebp - 0x7a]
mov dword [esp + 4], str.Got_wrong_samples_played_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
mov eax, dword [ebp - 0x90]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
mov edx, dword [ebp - 0x5c]
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
call dword [eax + 0x14]
sub esp, 0x20
mov ebx, eax
jmp 0x40326b
call dword [edx + 0x70]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x212
mov dword [esp], str..._wine_dlls_xaudio2_7_tests_xaudio2.c
call fcn.00405e40
xor eax, eax
cmp ebx, 0x88960001
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.SetSourceSampleRate_should_have_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
jmp 0x403455
call dword [eax + 0x20]
sub esp, 4
mov ebx, eax
jmp 0x4033ce
mov ecx, dword [ebp - 0x9c]
lea edx, [ebp - 0x90]
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], ecx
call dword [eax + 0x1c]
sub esp, 0x20
mov ebx, eax
jmp 0x4031b4
mov ecx, dword [ebp - 0x9c]
mov dword [esp], ecx
call dword [eax + 0x24]
sub esp, 4
jmp 0x403161
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 0xc
jmp 0x4036c9
call dword [eax + 0x14]
sub esp, 0x20
mov esi, eax
jmp 0x403560