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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov esi, dword [0x40c038]
mov eax, dword [eax]
mov dword [esp], ebx
test esi, esi
je 0x4047f0
call dword [eax + 0x30]
mov ecx, dword [0x40c038]
mov eax, dword [ebx]
sub esp, 4
test ecx, ecx
je 0x404806
lea edx, [ebp - 0x68]
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], ebx
call dword [eax + 0x28]
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0x35b
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.CreateMasteringVoice_failed:__08x_n
xor edi, edi
lea esi, [ebp - 0x4e]
mov dword [esp], eax
call fcn.004060b0
mov edx, dword [0x40c038]
mov word [ebp - 0x3e], di
mov dword [ebp - 0x4e], 0x20003
test edx, edx
lea edx, [ebp - 0x64]
mov dword [ebp - 0x4a], 0xac44
mov dword [ebp - 0x46], 0x56220
mov dword [ebp - 0x42], 0x200008
mov eax, dword [ebx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], ebx
je 0x404850
call dword [eax + 0x20]
sub esp, 0x20
mov edi, eax
mov dword [esp + 4], 0x366
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.CreateSourceVoice_failed:__08x_n
lea edi, [ebp - 0x3c]
mov dword [esp], eax
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, 0x5622
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, esi
mov ecx, 0x1b8
sub esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp], 0x5622
call fcn.00402350
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x3c]
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], 0x36e
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 - 0x64]
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], 0x371
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 [0x40c038]
mov eax, dword [ebx]
mov dword [esp], ebx
test esi, esi
je 0x4047e0
call dword [eax + 0x2c]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x374
lea edi, [ebp - 0x5e]
mov esi, 0x89c
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
xor ebx, ebx
mov dword [esp], eax
call fcn.004060b0
jmp 0x404626
mov dword [esp], eax
mov dword [esp + 4], edi
call edx
mov eax, ebx
sub esp, 8
cmp esi, dword [ebp - 0x56]
sbb eax, dword [ebp - 0x52]
jb 0x404656
mov dword [esp], 0xa
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
mov eax, dword [ebp - 0x64]
mov ecx, dword [0x40c038]
mov edx, dword [eax]
mov edx, dword [edx + 0x64]
test ecx, ecx
jne 0x404600
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call edx
mov eax, ebx
sub esp, 0xc
cmp esi, dword [ebp - 0x56]
sbb eax, dword [ebp - 0x52]
jae 0x404616
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x381
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.Stop_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x58]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x384
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.FlushSourceBuffers_failed:__08x_n
mov dword [esp], eax
call fcn.004060b0
mov eax, dword [ebp - 0x64]
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], 0x387
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 dword [esp], 0x64
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x3c]
sub esp, 4
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 ebx, eax
mov dword [esp + 4], 0x38c
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 - 0x64]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
mov eax, dword [ebp - 0x68]
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
call dword [eax + 0x20]
sub esp, 4
mov ebx, eax
jmp 0x4045bb
call dword [eax + 0x24]
mov ecx, dword [0x40c038]
mov eax, dword [ebx]
sub esp, 4
test ecx, ecx
jne 0x4043a4
lea edx, [ebp - 0x68]
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], ebx
call dword [eax + 0x1c]
sub esp, 0x20
mov esi, eax
jmp 0x4043de
call dword [eax + 0x14]
sub esp, 0x20
mov edi, eax
jmp 0x404480