Function at 0x476cc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x495639
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push ebp
push esi
push edi
push 3
push 3
lea ecx, [esp + 0x38]
call fcn.00468360
xor ebx, ebx
push 0x64
mov dword [esp + 0x194], ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov ebp, dword [esp + 0x1a0]
cmp esi, ebx
mov byte [esp + 0x190], 1
je 0x476d3c
mov eax, dword [esp + 0x19c]
push ebp
push eax
mov ecx, esi
call fcn.00481d00
mov dword [esi], 0x4a04d0
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
jmp 0x476d3e
xor esi, esi
mov eax, dword [esp + 0x19c]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x190], 0
jle 0x476d9a
mov ecx, dword [esp + 0x198]
mov dword [esp + 0x18], ecx
xor eax, eax
cmp ebp, ebx
jle 0x476d80
mov ebx, dword [esi + 8]
xor edx, edx
cmp word [ecx], 0x7f
mov ebx, dword [ebx + edi*4]
setg dl
mov dword [ebx + eax*4], edx
inc eax
add ecx, 2
cmp eax, ebp
jl 0x476d64
xor ebx, ebx
mov ecx, dword [esp + 0x18]
lea eax, [ebp + ebp]
add ecx, eax
mov eax, dword [esp + 0x19c]
inc edi
mov dword [esp + 0x18], ecx
cmp edi, eax
jl 0x476d5e
push esi
lea ecx, [esp + 0x34]
call fcn.00469060
cmp esi, ebx
mov edi, eax
je 0x476dec
mov eax, dword [esi + 0x5c]
mov dword [esi], 0x4a04d0
cmp eax, ebx
je 0x476dc3
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x5c], ebx
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x476dd6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x58], ebx
mov ecx, esi
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
call fcn.0047abd0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push edi
lea ecx, [esp + 0x34]
call fcn.004685d0
cmp edi, ebx
mov esi, eax
je 0x476e3e
mov eax, dword [edi + 0x5c]
mov dword [edi], 0x4a04d0
cmp eax, ebx
je 0x476e15
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi + 0x5c], ebx
mov eax, dword [edi + 0x58]
cmp eax, ebx
je 0x476e28
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi + 0x58], ebx
mov ecx, edi
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x58], ebx
call fcn.0047abd0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
lea ecx, [esp + 0x34]
call fcn.00469060
cmp esi, ebx
mov dword [esp + 0x2c], eax
je 0x476e92
mov eax, dword [esi + 0x5c]
mov dword [esi], 0x4a04d0
cmp eax, ebx
je 0x476e69
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x5c], ebx
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x476e7c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x58], ebx
mov ecx, esi
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
call fcn.0047abd0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
or eax, 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x19c]
mov edi, 0x19
lea ebp, [esp + 0xc0]
lea esi, [eax - 1]
mov eax, dword [esp + 0x1a0]
cdq
sub eax, edx
mov dword [esp + 0x20], esi
mov ebx, eax
mov dword [esp + 0x14], esi
sar ebx, 1
mov dword [esp + 0x1c], ebx
lea edx, [ebx*4]
mov ecx, 1
cmp esi, ecx
jle 0x476f08
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
add eax, 4
mov ebx, dword [eax + 4]
add eax, 4
inc ecx
cmp dword [ebx + edx], 1
je 0x476f04
cmp ecx, esi
jl 0x476ef3
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [ebp], ecx
cmp ecx, eax
jge 0x476f1b
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
dec edi
sub edx, 4
sub ebp, 4
test edi, edi
jge 0x476ee0
lea ecx, [esp + 0xc4]
mov edi, 1
mov dword [esp + 0x1c], ecx
lea edx, [ebx*4 + 4]
mov ecx, 1
cmp esi, ecx
jle 0x476f61
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
add eax, 4
mov ebp, dword [eax + 4]
add eax, 4
inc ecx
cmp dword [edx + ebp], 1
je 0x476f61
cmp ecx, esi
jl 0x476f50
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
cmp ecx, eax
jge 0x476f7a
mov dword [esp + 0x14], ecx
lea ecx, [edi + 0x19]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
inc edi
add edx, 4
add ecx, 4
cmp edi, 0x19
mov dword [esp + 0x1c], ecx
jl 0x476f3d
mov ecx, dword [esp + 0xc0]
mov esi, dword [esp + 0x20]
cmp esi, ecx
jg 0x476fbc
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp eax, ecx
jg 0x476fc4
mov edi, dword [esp + 0x18]
mov edx, ebp
sub edx, edi
cmp edx, 0xd
jle 0x476fc4
cmp esi, eax
jg 0x476fca
jmp 0x476fc8
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp esi, eax
jl 0x476fca
mov esi, eax
lea eax, [ebx - 1]
test eax, eax
jl 0x476fe9
lea edx, [esi + 5]
lea ecx, [esp + eax*4 + 0x60]
cmp dword [ecx - 4], edx
jl 0x476fe1
cmp dword [ecx], edx
jl 0x47700f
dec eax
sub ecx, 4
test eax, eax
jge 0x476fd8
mov edi, dword [esp + 0x28]
cmp ebx, 0x31
mov ecx, ebx
jge 0x477016
lea edx, [esi + 5]
lea eax, [esp + ebx*4 + 0x60]
cmp dword [eax - 4], edx
jge 0x477004
cmp dword [eax], edx
jge 0x477013
inc ecx
add eax, 4
cmp ecx, 0x31
jl 0x476ffb
jmp 0x477016
mov edi, eax
jmp 0x476fed
inc ecx
jmp 0x47701a
mov ecx, dword [esp + 0x24]
cmp edi, 0xffffffff
je 0x477059
cmp ecx, 0xffffffff
je 0x477059
lea eax, [edi + ecx]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov edx, dword [esp + ecx*4 + 0x54]
mov esi, dword [esp + ecx*4 + 0x64]
mov eax, dword [esp + ecx*4 + 0x5c]
add edx, esi
add edx, eax
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
mov edx, dword [esp + 0x18]
sub ebp, edx
cmp ebp, 0x1e
jle 0x477065
mov esi, dword [esp + 0xc0]
mov ecx, 0x19
lea ebp, [ebx + ecx - 0x19]
mov ecx, dword [esp + 0x19c]
xor eax, eax
sub ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
add ecx, 0xfffffff6
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + esi]
lea ecx, [eax + 0x19]
cmp eax, ecx
jge 0x47725c
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1a0]
xor esi, esi
sub ecx, eax
mov edx, dword [edx + 8]
mov dword [esp + 0x24], ecx
lea edx, [edx + eax*4]
mov dword [esp + 0x18], edx
mov edx, 0x3e8
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
cmp dword [edi + ebp*4], 0
jne 0x4770f5
mov eax, dword [edi + ebp*4 - 0x28]
test eax, eax
jne 0x4770f5
mov eax, dword [edi + ebp*4 + 0x28]
test eax, eax
jne 0x4770f5
mov dword [esp + esi + 0x5c], edx
mov dword [esp + esi + 0x124], edx
jmp 0x47719e
lea eax, [ebp - 5]
test eax, eax
jl 0x477128
mov ecx, ebp
lea edx, [edi + eax*4]
sub ecx, eax
cmp dword [edx - 4], 0
jne 0x47711a
cmp dword [edx], 1
jne 0x47711a
cmp ecx, 0xa
mov dword [esp + esi + 0x124], eax
jge 0x477123
dec eax
sub edx, 4
inc ecx
test eax, eax
jge 0x477103
mov edx, 0x3e8
cmp eax, 1
jle 0x477149
mov ecx, dword [esp + 0x14]
mov dword [esp + esi + 0x124], eax
add ecx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x477150
mov dword [esp + esi + 0x124], edx
lea eax, [ebp + 5]
cmp eax, ebx
jge 0x47717a
lea ecx, [edi + eax*4]
cmp dword [ecx], 0
jne 0x477172
cmp dword [ecx - 4], 1
jne 0x477172
mov edi, eax
mov dword [esp + esi + 0x5c], eax
sub edi, ebp
cmp edi, 0xa
jge 0x47717a
inc eax
add ecx, 4
cmp eax, ebx
jl 0x47715a
lea ecx, [ebx - 2]
cmp eax, ecx
jge 0x47719a
mov ecx, dword [esp + 0x20]
mov dword [esp + esi + 0x5c], eax
add ecx, eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jmp 0x47719e
mov dword [esp + esi + 0x5c], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add esi, 4
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jne 0x4770c9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47725c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47725c
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
cdq
idiv dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov eax, edi
cdq
idiv ebx
xor edx, edx
mov ecx, dword [esp + edx + 0x124]
mov ebp, ecx
sub ebp, esi
cmp ebp, 0xa
jg 0x477206
mov ebp, esi
sub ebp, ecx
cmp ebp, 0xa
jle 0x477221
cmp ecx, 0x3e8
je 0x477221
mov ebp, dword [esp + 0x14]
sub ebp, ecx
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + edx + 0x5c]
mov ebp, ecx
sub ebp, eax
cmp ebp, 0xa
jg 0x477237
mov ebp, eax
sub ebp, ecx
cmp ebp, 0xa
jle 0x477242
cmp ecx, 0x3e8
je 0x477242
sub edi, ecx
dec ebx
add edx, 4
cmp edx, 0x64
jl 0x4771ed
mov eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x10]
mov ecx, eax
mov eax, edi
cdq
idiv ebx
jmp 0x477266
mov ecx, 0x32
mov eax, 0x6e
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1a4]
add edx, 0xffffffec
sub eax, ecx
mov dword [esi], edx
mov edx, dword [esp + 0x1a8]
mov esi, dword [esp + 0x2c]
xor edi, edi
mov dword [edx], eax
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x1ac]
cmp esi, edi
mov dword [ecx], eax
je 0x47732c
mov eax, dword [esi + 0x5c]
mov dword [esi], 0x4a04d0
cmp eax, edi
je 0x4772b8
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x4772cb
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x58], edi
mov eax, dword [esi + 4]
mov dword [esi + 0x5c], edi
cmp eax, edi
mov dword [esi + 0x58], edi
mov dword [esi], 0x4a0388
je 0x4772ea
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 4], edi
mov eax, dword [esi + 0x48]
cmp eax, edi
je 0x4772fd
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x477310
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x10], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x477323
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 8], edi
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00468560
mov ecx, dword [esp + 0x188]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x184
ret