Function at 0x471820
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x526700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00471730
mov ecx, dword [eax + 0x1144]
add eax, 0x1114
test ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0
jle 0x471f0b
mov dword [esp + 0x1c], 4
xor edx, edx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x471895
mov ecx, dword [eax + 0x2c]
mov ecx, dword [ecx + 8]
jmp 0x471897
xor ecx, ecx
cmp edx, ecx
jge 0x471eec
mov ecx, dword [eax + 0x2c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + ecx]
mov edi, dword [ecx + edx*4]
test edi, edi
mov dword [esp + 0x18], edi
je 0x471ee6
mov ebp, dword [ebx + 0xd4]
mov dword [ebx + 0xf0], 0x50
lea esi, [ebp + 8]
test esi, esi
jne 0x471905
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x4718f2
mov ecx, dword [ebx + 0xe8]
push eax
mov dword [esp + 0x2c], ecx
call fcn.0051aee4
add esp, 4
mov dword [ebx + 0xe4], esi
xor eax, eax
mov dword [ebx + 0xec], eax
mov dword [ebx + 0xe8], eax
jmp 0x471a07
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
jne 0x47193d
lea edx, [esi*4]
push edx
call fcn.0051af44
add esp, 4
mov dword [ebx + 0xe4], eax
push esi
push eax
call fcn.0047d930
mov dword [ebx + 0xec], esi
mov dword [ebx + 0xe8], esi
jmp 0x471a07
mov eax, dword [ebx + 0xec]
cmp esi, eax
jg 0x47197d
mov eax, dword [ebx + 0xe8]
cmp eax, esi
jge 0x47196a
mov edx, esi
sub edx, eax
lea eax, [ecx + eax*4]
push edx
push eax
call fcn.0047d930
mov dword [ebx + 0xe8], esi
jmp 0x471a07
jle 0x471972
sub eax, esi
mov dword [esp + 0x28], eax
mov dword [ebx + 0xe8], esi
jmp 0x471a07
add eax, 0x50
cmp esi, eax
mov dword [esp + 0x14], eax
jl 0x47198c
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
lea edx, [ecx*4]
push edx
call fcn.0051af44
mov ecx, dword [ebx + 0xe8]
mov esi, dword [ebx + 0xe4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x28], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xe8]
lea esi, [ebp + 8]
mov edx, esi
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.0047d930
mov eax, dword [ebx + 0xe4]
push eax
call fcn.0051aee4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [ebx + 0xe4], ecx
mov dword [ebx + 0xe8], esi
mov dword [ebx + 0xec], edx
lea esi, [ebp + 8]
mov dword [ebx + 0xdc], 0x50
test esi, esi
jne 0x471a57
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x471a44
mov ecx, dword [ebx + 0xd4]
push ecx
push eax
call fcn.00472a00
mov eax, dword [ebx + 0xd0]
push eax
call fcn.0051aee4
add esp, 4
mov dword [ebx + 0xd0], esi
xor eax, eax
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xd4], eax
jmp 0x471b69
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
jne 0x471a8e
lea edx, [esi + esi*8]
shl edx, 2
push edx
call fcn.0051af44
add esp, 4
mov dword [ebx + 0xd0], eax
push esi
push eax
call fcn.00472a30
mov dword [ebx + 0xd8], esi
mov dword [ebx + 0xd4], esi
jmp 0x471b69
mov eax, dword [ebx + 0xd8]
cmp esi, eax
jg 0x471ada
mov eax, dword [ebx + 0xd4]
cmp eax, esi
jge 0x471abe
mov edx, esi
sub edx, eax
lea eax, [eax + eax*8]
push edx
lea ecx, [ecx + eax*4]
push ecx
call fcn.00472a30
mov dword [ebx + 0xd4], esi
jmp 0x471b69
jle 0x471acf
sub eax, esi
lea edx, [esi + esi*8]
push eax
lea eax, [ecx + edx*4]
push eax
call fcn.00472a00
mov dword [ebx + 0xd4], esi
jmp 0x471b69
add eax, 0x50
cmp esi, eax
jge 0x471ae7
mov dword [esp + 0x14], eax
jmp 0x471aed
mov dword [esp + 0x14], esi
mov eax, esi
lea ecx, [eax + eax*8]
shl ecx, 2
push ecx
call fcn.0051af44
mov ecx, dword [ebx + 0xd4]
mov esi, dword [ebx + 0xd0]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*8]
mov dword [esp + 0x28], eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xd4]
lea esi, [ebp + 8]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*8]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.00472a30
mov eax, dword [ebx + 0xd0]
push eax
call fcn.0051aee4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], esi
mov dword [ebx + 0xd8], ecx
push 0x4e8
call fcn.0051af44
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x48], 0
je 0x471b8f
mov ecx, eax
call fcn.004fdde0
jmp 0x471b91
xor eax, eax
mov edx, dword [ebx + 0xe4]
push 0
or esi, 0xffffffff
push 0
mov dword [edx + ebp*4], eax
mov eax, dword [ebx + 0xe4]
push edi
mov dword [esp + 0x54], esi
mov ecx, dword [eax + ebp*4]
call fcn.00501b40
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xe4]
lea eax, [ebp + ebp*8]
shl eax, 2
mov dword [esp + 0x28], eax
add ecx, eax
mov eax, dword [edx + ebp*4]
push ecx
push eax
call fcn.00471250
push 0x4e8
call fcn.0051af44
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x48], 1
je 0x471bfd
mov ecx, eax
call fcn.004fdde0
jmp 0x471bff
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0
push 1
push edi
mov dword [ecx + ebp*4 + 4], eax
mov edx, dword [ebx + 0xe4]
mov dword [esp + 0x54], esi
mov ecx, dword [edx + ebp*4 + 4]
call fcn.00501b40
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xe4]
lea eax, [ebp + ebp*8 + 9]
shl eax, 2
mov dword [esp + 0x14], eax
add ecx, eax
mov eax, dword [edx + ebp*4 + 4]
push ecx
push eax
call fcn.00471250
push 0x4e8
call fcn.0051af44
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 2
je 0x471c6b
mov ecx, eax
call fcn.004fdde0
jmp 0x471c6d
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0
push 2
push edi
mov dword [ecx + ebp*4 + 8], eax
mov edx, dword [ebx + 0xe4]
mov dword [esp + 0x54], esi
mov ecx, dword [edx + ebp*4 + 8]
call fcn.00501b40
mov eax, dword [ebx + 0xd0]
mov ecx, dword [ebx + 0xe4]
lea edi, [ebp + ebp*8 + 0x12]
mov edx, dword [ecx + ebp*4 + 8]
shl edi, 2
add eax, edi
push eax
push edx
call fcn.00471250
push 0x4e8
call fcn.0051af44
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 3
je 0x471cd5
mov ecx, eax
call fcn.004fdde0
jmp 0x471cd7
xor eax, eax
mov ecx, dword [ebx + 0xe4]
mov edx, dword [esp + 0x18]
push 0
push 3
mov dword [ecx + ebp*4 + 0xc], eax
mov eax, dword [ebx + 0xe4]
push edx
mov dword [esp + 0x54], esi
mov ecx, dword [eax + ebp*4 + 0xc]
call fcn.00501b40
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xe4]
lea esi, [ebp + ebp*8 + 0x1b]
mov eax, dword [edx + ebp*4 + 0xc]
shl esi, 2
add ecx, esi
push ecx
push eax
call fcn.00471250
push 0x4e8
call fcn.0051af44
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 4
je 0x471d43
mov ecx, eax
call fcn.004fdde0
jmp 0x471d45
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0x4e8
mov dword [esp + 0x4c], 0xffffffff
mov dword [ecx + ebp*4 + 0x10], eax
call fcn.0051af44
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 5
je 0x471d7d
mov ecx, eax
call fcn.004fdde0
jmp 0x471d7f
xor eax, eax
mov edx, dword [ebx + 0xe4]
push 0x4e8
mov dword [esp + 0x4c], 0xffffffff
mov dword [edx + ebp*4 + 0x14], eax
call fcn.0051af44
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 6
je 0x471db7
mov ecx, eax
call fcn.004fdde0
jmp 0x471db9
xor eax, eax
mov ecx, dword [ebx + 0xe4]
push 0x4e8
mov dword [esp + 0x4c], 0xffffffff
mov dword [ecx + ebp*4 + 0x18], eax
call fcn.0051af44
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x48], 7
je 0x471df1
mov ecx, eax
call fcn.004fdde0
jmp 0x471df3
xor eax, eax
mov edx, dword [ebx + 0xe4]
mov dword [esp + 0x48], 0xffffffff
mov dword [edx + ebp*4 + 0x1c], eax
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + ebp*4 + 4]
push ecx
mov ecx, dword [eax + ebp*4 + 0x10]
call fcn.00498fc0
mov eax, dword [ebx + 0xe4]
mov edx, dword [eax + ebp*4 + 4]
mov ecx, dword [eax + ebp*4 + 0x14]
push edx
call fcn.00498fc0
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + ebp*4 + 8]
push ecx
mov ecx, dword [eax + ebp*4 + 0x18]
call fcn.00498fc0
mov eax, dword [ebx + 0xe4]
mov edx, dword [eax + ebp*4 + 0xc]
mov ecx, dword [eax + ebp*4 + 0x1c]
push edx
call fcn.00498fc0
mov eax, dword [ebx + 0xd0]
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx]
lea ecx, [ebp + ebp*8 + 0x24]
push edx
lea ecx, [eax + ecx*4]
call fcn.00474af0
mov eax, dword [ebx + 0xd0]
mov edx, dword [esp + 0x14]
lea ecx, [ebp + ebp*8 + 0x2d]
add edx, eax
push edx
lea ecx, [eax + ecx*4]
call fcn.00474af0
mov eax, dword [ebx + 0xd0]
lea edx, [ebp + ebp*8 + 0x36]
add edi, eax
push edi
lea ecx, [eax + edx*4]
call fcn.00474af0
mov eax, dword [ebx + 0xd0]
lea ecx, [ebp + ebp*8 + 0x3f]
add esi, eax
push esi
lea ecx, [eax + ecx*4]
call fcn.00474af0
mov edx, dword [ebx + 0xe4]
mov ecx, dword [edx + ebp*4]
call fcn.00498bf0
fadd qword [esp + 0x34]
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + ebp*4]
fstp qword [esp + 0x34]
call fcn.00498bf0
fadd qword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
fstp qword [esp + 0x34]
inc edx
jmp 0x471882
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edx, dword [eax + 0x30]
inc ecx
add esi, 0x14
cmp ecx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
jl 0x471880
fld qword [esp + 0x34]
fmul qword [0x539980]
push 0x40618000
push 0
sub esp, 8
lea esi, [ebx + 0x110]
mov ecx, esi
mov dword [esp + 0x38], esi
fstp qword [esp]
push 0
push 0
push 0
push 0
call fcn.00508700
mov ecx, dword [0x559b98]
push 0x64
fld qword [esp + 0x38]
fmul qword [0x539978]
fimul dword [0x559b98]
lea eax, [ecx*8]
lea edx, [ecx*4]
sub eax, ecx
push edx
lea eax, [eax + eax*4]
shl eax, 2
push eax
call fcn.0051be16
push eax
lea ecx, [ebx + 0x94]
call fcn.00474d70
mov edx, dword [ebx + 0xfc]
mov eax, dword [ebx + 0xf8]
mov edi, edx
mov dword [esp + 0x18], edi
lea ebp, [edi + 1]
test ebp, ebp
jne 0x471fd6
test eax, eax
je 0x471fac
push eax
call fcn.0051aee4
add esp, 4
mov dword [ebx + 0xf8], 0
mov ecx, dword [ebx + 0xf8]
xor eax, eax
mov dword [ebx + 0x100], eax
mov dword [ebx + 0xfc], eax
mov dword [ecx + edi*4], esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x472032
lea edi, [ebp*4]
push edi
call fcn.0051af44
mov edx, eax
mov ecx, edi
mov dword [ebx + 0xf8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xf8]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x100], ebp
mov dword [ebx + 0xfc], ebp
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x100]
cmp ebp, ecx
jg 0x472073
cmp ebp, edx
jle 0x472051
mov ecx, ebp
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov edx, dword [ebx + 0xf8]
mov dword [ebx + 0xfc], ebp
mov dword [edx + edi*4], esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x104]
test eax, eax
jne 0x4720a0
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x472094
mov eax, 4
jmp 0x4720a0
cmp eax, 0x400
jle 0x4720a0
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x4720ae
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.0051af44
mov ecx, dword [ebx + 0xfc]
mov esi, dword [ebx + 0xf8]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0xfc]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xf8]
push eax
call fcn.0051aee4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x100], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0xf8], ecx
mov eax, ecx
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [ebx + 0xfc], ebp
mov dword [eax + edx*4], ecx
mov ecx, dword [esp + 0x40]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret