Function at 0x405190
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4477dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.0043846d
mov eax, dword [0x48b448]
xor ebp, ebp
mov dword [esp + 0x194], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
push ebp
push str.ChangeDASound
push str.Control
mov ecx, 0x48f560
mov byte [esp + 0x1a0], 2
call fcn.00401ab0
push ebp
push str.d_aAutoReset
push str.Control
mov ecx, 0x48f560
mov dword [esi + 0x60], eax
call fcn.00401ab0
push ebp
push str.SoundVolumeAutoReset
push str.Control
mov ecx, 0x48f560
mov dword [esi + 0x5c], eax
call fcn.00401ab0
push ebp
push str.MaxVolume
push str.Control
mov ecx, 0x48f560
mov dword [esi + 0x64], eax
call fcn.00401ab0
push ebp
push str.DefaultVolume
push str.Control
mov ecx, 0x48f560
mov dword [esi + 0x48], eax
call fcn.00401ab0
push ebp
push str.MinVolume
push str.Control
mov ecx, 0x48f560
mov dword [esi + 0x68], eax
call fcn.00401ab0
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x88], eax
cmp ecx, ebp
jl 0x405279
cmp ecx, 0x64
jle 0x405280
mov dword [esi + 0x68], 0x32
cmp eax, dword [esi + 0x68]
jle 0x405288
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
push ebp
push 0x459440
push str.Control
mov ecx, 0x48f560
mov dword [esi + 0x40], eax
call fcn.00401ab0
push ebp
push str.Foundation
push str.Control
mov ecx, 0x48f560
mov dword [esi + 0x78], eax
mov dword [esi + 0x4c], eax
call fcn.00401ab0
push str.limit.dat
lea ecx, [esp + 0x20]
push 0x48f620
push ecx
mov dword [esi + 0x58], eax
call fcn.0043be38
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x198], 3
call fcn.0043bcdc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 2
call fcn.0043bba3
mov edx, dword [0x4500ac]
mov eax, dword [esp + 0x18]
push edx
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.0043855f
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x34], 1
je 0x405324
lea ebx, [esi + 0x7c]
mov dword [ebx], ebp
jmp 0x405395
mov ecx, dword [esp + eax + 0x60]
lea eax, [esp + eax + 0x2c]
cmp ecx, ebp
jge 0x40533c
add eax, 0x38
push eax
call fcn.004385ea
add esp, 4
mov ecx, dword [esp + 0x30]
push 0xa
inc ecx
lea edx, [esp + 0x90]
mov dword [esp + 0x34], ecx
push 0xff
push edx
lea ecx, [esp + 0x38]
call fcn.00438600
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
cmp ecx, ebp
jge 0x40537c
add eax, 0x38
push eax
call fcn.004385f5
add esp, 4
lea ebx, [esi + 0x7c]
lea edx, [esp + 0x8c]
push ebx
push 0x4591bc
push edx
call fcn.0042c177
add esp, 0xc
mov eax, dword [ebx]
cmp eax, ebp
jle 0x4054f1
lea eax, [eax + eax*4]
shl eax, 2
push eax
call fcn.0043c073
mov edi, eax
mov eax, dword [ebx]
mov dword [esi + 0x80], edi
add esp, 4
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 2
mov edx, ecx
mov dword [esp + 0x24], ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebx], ebp
jle 0x4054f1
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
test ecx, ecx
jge 0x4053f9
add eax, 0x38
push eax
call fcn.004385ea
add esp, 4
mov edx, dword [esp + 0x30]
push 0xa
inc edx
push 0xff
mov dword [esp + 0x38], edx
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x38]
call fcn.00438600
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
test ecx, ecx
jge 0x405439
add eax, 0x38
push eax
call fcn.004385f5
add esp, 4
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x10]
push edx
call fcn.0043bd2c
push 0
push 0x7c
lea ecx, [esp + 0x18]
call fcn.0043bff6
mov edi, eax
lea ecx, [esp + 0x1c]
inc edi
lea eax, [edi - 1]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00439d26
mov ecx, dword [esi + 0x80]
mov eax, dword [eax]
mov edx, ebp
push 8
add edx, ecx
push eax
push edx
call fcn.0042c330
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0043bba3
push edi
push 0x7c
lea ecx, [esp + 0x18]
call fcn.0043bff6
cmp eax, 0xffffffff
jne 0x4054a5
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
sub eax, edi
lea ecx, [esp + 0x20]
push eax
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00439c14
mov edx, dword [esi + 0x80]
mov eax, dword [eax]
lea ecx, [edx + ebp + 0xc]
push ecx
push 0x4591bc
push eax
call fcn.0042c177
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0043bba3
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx]
inc eax
add ebp, 0x14
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4053da
lea ecx, [esp + 0x2c]
call fcn.004385a1
push str.sound.dat
lea edx, [esp + 0x24]
push 0x48f620
push edx
call fcn.0043be38
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x198], 4
call fcn.0043bcdc
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], 2
call fcn.0043bba3
mov eax, dword [0x4500ac]
mov ecx, dword [esp + 0x18]
push eax
push 1
push ecx
lea ecx, [esp + 0x38]
call fcn.0043855f
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x8c]
mov edx, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 4]
test byte [esp + eax + 0x34], 1
je 0x405572
xor ebx, ebx
mov dword [esi + 0x8c], ebx
jmp 0x4055e8
mov ecx, dword [esp + eax + 0x60]
lea eax, [esp + eax + 0x2c]
xor ebx, ebx
cmp ecx, ebx
jge 0x40558c
add eax, 0x38
push eax
call fcn.004385ea
add esp, 4
mov eax, dword [esp + 0x30]
push 0xa
inc eax
push 0xff
mov dword [esp + 0x38], eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x38]
call fcn.00438600
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + edx + 0x60]
cmp ecx, ebx
lea eax, [esp + edx + 0x2c]
jge 0x4055cc
add eax, 0x38
push eax
call fcn.004385f5
add esp, 4
lea eax, [esi + 0x8c]
push eax
lea eax, [esp + 0x90]
push 0x4591bc
push eax
call fcn.0042c177
add esp, 0xc
mov eax, dword [esi + 0x8c]
cmp eax, ebx
jle 0x405801
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call fcn.0043c073
mov edi, eax
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x84], edi
add esp, 4
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 2
mov edx, ecx
mov dword [esp + 0x24], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esi + 0x8c], ebx
jle 0x405801
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
test ecx, ecx
jge 0x405658
add eax, 0x38
push eax
call fcn.004385ea
add esp, 4
mov ecx, dword [esp + 0x30]
push 0xa
inc ecx
lea edx, [esp + 0x90]
mov dword [esp + 0x34], ecx
push 0xff
push edx
lea ecx, [esp + 0x38]
call fcn.00438600
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
test ecx, ecx
jge 0x405698
add eax, 0x38
push eax
call fcn.004385f5
add esp, 4
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x10]
push edx
call fcn.0043bd2c
push 0
push 0x7c
lea ecx, [esp + 0x18]
call fcn.0043bff6
mov edi, eax
lea ecx, [esp + 0x20]
inc edi
lea eax, [edi - 1]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00439d26
mov ebp, dword [esi + 0x84]
mov eax, dword [eax]
mov edx, ebx
push 8
add edx, ebp
push eax
push edx
call fcn.0042c330
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0043bba3
push edi
push 0x7c
lea ecx, [esp + 0x18]
call fcn.0043bff6
cmp eax, 0xffffffff
jne 0x405704
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
sub eax, edi
lea ecx, [esp + 0x88]
push eax
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00439c14
mov edx, dword [esi + 0x84]
mov eax, dword [eax]
lea ecx, [ebx + edx + 0xc]
push ecx
push 0x4591bc
push eax
call fcn.0042c177
add esp, 0xc
lea ecx, [esp + 0x88]
call fcn.0043bba3
push edi
push 0x7c
lea ecx, [esp + 0x18]
call fcn.0043bff6
mov edi, eax
lea ecx, [esp + 0x10]
inc edi
push edi
push 0x7c
call fcn.0043bff6
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x405769
mov edx, dword [esp + 0x10]
mov ebp, dword [edx - 8]
push 1
push 0x30
lea ecx, [esp + 0x24]
call fcn.00439a28
sub ebp, edi
lea eax, [esp + 0x28]
push ebp
push edi
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 5
call fcn.00439c14
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042c273
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete byte [esp + 0x17]
call fcn.0043bba3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 2
call fcn.0043bba3
mov al, byte [esp + 0x17]
test al, al
je 0x4057d9
mov edx, dword [esi + 0x84]
mov dword [ebx + edx + 0x10], 0
jmp 0x4057e7
mov eax, dword [esi + 0x84]
mov dword [ebx + eax + 0x10], 1
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x8c]
inc eax
add ebx, 0x14
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x405639
lea ecx, [esp + 0x2c]
call fcn.004385a1
push str.movie.dat
lea ecx, [esp + 0x2c]
push 0x48f620
push ecx
call fcn.0043be38
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x198], 6
call fcn.0043bcdc
lea ecx, [esp + 0x28]
mov byte [esp + 0x194], 2
call fcn.0043bba3
mov edx, dword [0x4500ac]
mov eax, dword [esp + 0x18]
push edx
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.0043855f
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x34], 1
je 0x405888
lea ebp, [esi + 0x90]
mov dword [ebp], 0
jmp 0x4058fc
mov ecx, dword [esp + eax + 0x60]
lea eax, [esp + eax + 0x2c]
test ecx, ecx
jge 0x4058a0
add eax, 0x38
push eax
call fcn.004385ea
add esp, 4
mov eax, dword [esp + 0x30]
push 0xa
lea edx, [esp + 0x90]
inc eax
push 0xff
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], eax
call fcn.00438600
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
test ecx, ecx
jge 0x4058e0
add eax, 0x38
push eax
call fcn.004385f5
add esp, 4
lea ebp, [esi + 0x90]
lea edx, [esp + 0x8c]
push ebp
push 0x4591bc
push edx
call fcn.0042c177
add esp, 0xc
mov eax, dword [ebp]
test eax, eax
jle 0x4059fc
lea eax, [eax + eax*8]
push eax
call fcn.0043c073
mov edi, eax
mov eax, dword [ebp]
mov dword [esi + 0xa4], edi
add esp, 4
lea ecx, [eax + eax*8]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
xor edi, edi
test eax, eax
jle 0x4059fc
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
test ecx, ecx
jge 0x40595f
add eax, 0x38
push eax
call fcn.004385ea
add esp, 4
mov eax, dword [esp + 0x30]
push 0xa
lea edx, [esp + 0x90]
inc eax
push 0xff
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], eax
call fcn.00438600
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x2c]
mov ecx, dword [esp + ecx + 0x60]
test ecx, ecx
jge 0x40599f
add eax, 0x38
push eax
call fcn.004385f5
add esp, 4
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x10]
push edx
call fcn.0043bd2c
push 0
push 0x7c
lea ecx, [esp + 0x18]
call fcn.0043bff6
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00439d26
mov eax, dword [eax]
push 8
push eax
mov eax, dword [esi + 0xa4]
mov ecx, ebx
add ecx, eax
push ecx
call fcn.0042c330
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0043bba3
mov eax, dword [ebp]
inc edi
add ebx, 9
cmp edi, eax
jl 0x405940
lea ecx, [esp + 0x2c]
call fcn.004385a1
call fcn.00404fc0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x194], 1
call fcn.0043bba3
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], 0
call fcn.0043bba3
lea ecx, [esp + 0x38]
mov dword [esp + 0x194], 0xffffffff
call fcn.0043851e
lea ecx, [esp + 0x38]
call fcn.00438390
mov ecx, dword [esp + 0x18c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x188
ret