Function at 0x405b70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470745
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x38], ebp
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x354], ebx
call fcn.0044e5b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x354], 1
call fcn.0044e5b0
mov al, byte [esp + 0x43]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], al
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.0044e5b0
push 2
lea ecx, [esp + 0x368]
mov byte [esp + 0x358], 3
call fcn.0044e8c0
and eax, 0xff
sub eax, 2
je 0x40648e
sub eax, 0xe5
je 0x4061cc
sub eax, 0xd
je 0x405c98
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.0044e6f0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x354], 7
cmp eax, ebx
je 0x405c53
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405c4a
cmp al, 0xff
je 0x405c4a
dec al
mov byte [ecx], al
jmp 0x405c53
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0044e6f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0044e6f0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0044e6f0
xor ax, ax
jmp 0x4066d4
mov al, byte [esp + 0x360]
mov dword [esp + 0x10], ebx
test al, al
jne 0x405ec2
push ebx
lea ecx, [esp + 0x368]
call fcn.0044e8c0
movzx ax, al
sub eax, 3
cmp ax, 0xa
mov dword [esp + 0x10], eax
jle 0x405cd2
mov eax, 0xa
mov dword [esp + 0x10], eax
movsx eax, ax
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
jle 0x406145
mov ebp, dword [esp + 0x38]
mov edi, 0x4930f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
lea ebx, [ecx + 3]
lea ecx, [esp + 0x364]
push ebx
call fcn.0044e8c0
and eax, 0xff
lea edx, [esp + 0x4c]
push eax
push 0x48699c
push edx
call fcn.00467c1a
mov edi, 0x4930f8
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24c]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x368]
call fcn.0044e8c0
mov al, byte [ebp + 0x26]
test al, al
ja 0x405d86
mov al, byte [ebp + 0x27]
test al, al
jbe 0x405e2c
cmp word [esp + 0x35c], 0
jne 0x405e2c
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 1
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00413860
test al, al
je 0x405dde
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
push 2
push 0x4869e0
lea ecx, [esp + 0x20]
call fcn.0044ea30
mov cl, byte [ebp + 0x26]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044e930
mov dl, byte [ebp + 0x27]
lea ecx, [esp + 0x18]
push edx
call fcn.0044e930
push 0
lea ecx, [esp + 0x1c]
call fcn.0044e930
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.0044e930
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
jmp 0x405e7c
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 0
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00413860
test al, al
je 0x405e75
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x4869d8
call fcn.0044e650
lea ecx, [esp + 0x20]
call fcn.0044e790
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00414160
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x405ce9
jmp 0x406145
mov al, byte [ebp + 0x50]
lea ecx, [ebp + 0x50]
cmp al, 0x80
jb 0x406145
movzx ax, byte [ebp + 0x5c]
cmp ax, 4
mov dword [esp + 0x10], eax
jle 0x405ee8
mov eax, 4
mov dword [esp + 0x10], eax
movsx eax, ax
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
jle 0x406145
mov dword [esp + 0x3c], ecx
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
mov dl, byte [esi + 1]
lea ecx, [esp + 0x50]
push ecx
add eax, 3
push edx
push eax
lea ecx, [esp + 0x374]
call fcn.0044e8c0
mov cl, byte [esi]
mov ebp, dword [esp + 0x44]
push eax
push ecx
mov ecx, ebp
call fcn.00405330
mov al, byte [ebp + 0x26]
test al, al
ja 0x405f46
mov al, byte [ebp + 0x27]
test al, al
jbe 0x406050
cmp word [esp + 0x35c], 0
jne 0x406050
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x14], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
call fcn.00414670
cmp eax, ebx
jae 0x405f7c
call fcn.00467340
mov edi, dword [esp + 0x24]
test edi, edi
je 0x405fa4
mov al, byte [edi - 1]
test al, al
je 0x405fa4
cmp al, 0xff
je 0x405fa4
test ebx, ebx
jne 0x405fcd
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00413460
jmp 0x405ff9
test ebx, ebx
jne 0x405fb5
push 1
lea ecx, [esp + 0x24]
call fcn.00413460
jmp 0x405ff9
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x405fc2
cmp eax, ebx
jae 0x405fdb
push 1
lea ecx, [esp + 0x24]
call fcn.00413460
push ebx
lea ecx, [esp + 0x24]
call fcn.00414680
mov edi, dword [esp + 0x24]
mov ecx, ebx
lea esi, [esp + 0x4c]
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00413840
push 2
push 0x4869e0
lea ecx, [esp + 0x20]
call fcn.0044ea30
mov al, byte [ebp + 0x26]
lea ecx, [esp + 0x18]
push eax
call fcn.0044e930
mov cl, byte [ebp + 0x27]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044e930
mov edx, dword [esp + 0x360]
lea ecx, [esp + 0x18]
push edx
call fcn.0044e930
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.0044e930
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
jmp 0x4060fb
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x14], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
call fcn.00414670
cmp eax, ebx
jae 0x406077
call fcn.00467340
mov edi, dword [esp + 0x24]
test edi, edi
je 0x40609f
mov al, byte [edi - 1]
test al, al
je 0x40609f
cmp al, 0xff
je 0x40609f
test ebx, ebx
jne 0x4060c8
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00413460
jmp 0x4060f4
test ebx, ebx
jne 0x4060b0
push 1
lea ecx, [esp + 0x24]
call fcn.00413460
jmp 0x4060f4
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x4060bd
cmp eax, ebx
jae 0x4060d6
push 1
lea ecx, [esp + 0x24]
call fcn.00413460
push ebx
lea ecx, [esp + 0x24]
call fcn.00414680
mov edi, dword [esp + 0x24]
mov ecx, ebx
lea esi, [esp + 0x4c]
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00413840
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
lea edx, [esp + 0x34]
push edx
call fcn.0044e5c0
lea ecx, [esp + 0x20]
call fcn.0044e790
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00414160
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
inc eax
add edx, 3
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
jl 0x405eff
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.0044e6f0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 5
je 0x406185
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40617c
cmp al, 0xff
je 0x40617c
dec al
mov byte [ecx], al
jmp 0x406185
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.0044e6f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0044e6f0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0044e6f0
mov ax, word [esp + 0x10]
jmp 0x4066d4
xor ecx, ecx
mov eax, 0x100
lea edi, [ebp + 0x50]
mov edx, 0x48ccf8
mov edi, 0x4930f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, 0x100
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 0x4930f8
rep movsb byte es:[edi], byte [esi]
jl 0x4061db
push ebx
lea ecx, [esp + 0x368]
call fcn.0044e8c0
and eax, 0xff
sub eax, 3
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov esi, edx
cmp si, 0xa
mov dword [esp + 0x10], esi
jle 0x406245
mov esi, 0xa
mov dword [esp + 0x10], esi
movsx eax, si
xor ebx, ebx
mov byte [ebp + 0x4c], 0
test eax, eax
jle 0x406409
jmp 0x40625c
mov ebp, dword [esp + 0x38]
lea esi, [ebx + ebx*2 + 3]
lea ecx, [esp + 0x364]
push esi
call fcn.0044e8c0
cmp al, 0x25
jne 0x406275
mov byte [ebp + 0x4c], 1
lea edx, [esp + 0x30]
lea eax, [esp + 0x4c]
push edx
lea ecx, [ebx + ebx*2 + 5]
push eax
push ecx
lea ecx, [esp + 0x370]
call fcn.0044e8c0
lea edx, [ebx + ebx*2 + 4]
push eax
push edx
lea ecx, [esp + 0x374]
call fcn.0044e8c0
push eax
push esi
lea ecx, [esp + 0x378]
call fcn.0044e8c0
push eax
mov ecx, ebp
call fcn.00403920
mov al, byte [ebp + 0x26]
test al, al
ja 0x4062ca
mov al, byte [ebp + 0x27]
test al, al
jbe 0x40637d
cmp word [esp + 0x35c], 0
jne 0x40637d
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00413860
test al, al
je 0x406322
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
push 2
push 0x4869e0
lea ecx, [esp + 0x20]
call fcn.0044ea30
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
mov dl, byte [esi + 0x26]
push edx
call fcn.0044e930
mov al, byte [esi + 0x27]
lea ecx, [esp + 0x18]
push eax
call fcn.0044e930
mov ecx, dword [esp + 0x360]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044e930
mov dl, bl
lea ecx, [esp + 0x18]
inc dl
push edx
call fcn.0044e930
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
jmp 0x4063d2
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x18], 0
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00413860
test al, al
je 0x4063c6
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0044e5c0
lea ecx, [esp + 0x20]
call fcn.0044e790
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00414160
movsx eax, word [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x406258
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.0044e6f0
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x354], 4
je 0x406449
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x406440
cmp al, 0xff
je 0x406440
dec al
mov byte [ecx], al
jmp 0x406449
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0044e6f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0044e6f0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0044e6f0
mov ax, si
jmp 0x4066d4
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x50]
mov edx, 0x48ccf8
rep stosd dword es:[edi], eax
mov edi, 0x4930f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, 0x100
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 0x4930f8
rep movsb byte es:[edi], byte [esi]
jl 0x40649f
lea ecx, [esp + 0x364]
mov edi, 6
mov dword [esp + 0x10], ebx
call fcn.0044e960
cmp ax, di
jle 0x406648
movsx esi, word [esp + 0x10]
mov ecx, dword [esp + 0x38]
lea ebx, [edi - 3]
push ebx
lea edx, [ecx + esi*2]
lea ecx, [esp + 0x368]
lea ebp, [esi + edx]
call fcn.0044e8c0
mov byte [ebp + 0x50], al
lea eax, [edi - 2]
push eax
lea ecx, [esp + 0x368]
call fcn.0044e8c0
mov ecx, dword [esp + 0x38]
lea edx, [ecx + esi*2 + 0x36]
lea ecx, [esp + 0x364]
mov byte [esi + edx + 0x1b], al
lea eax, [edi - 1]
push eax
call fcn.0044e8c0
push ebx
lea ecx, [esp + 0x368]
mov byte [ebp + 0x52], al
call fcn.0044e8c0
cmp al, 0x8d
jne 0x40660b
xor eax, eax
mov esi, edi
movsx ebx, di
mov dword [0x48ccf4], eax
mov dword [0x48ccf0], eax
mov al, byte [ebp + 0x52]
add eax, ebx
cmp ebx, eax
jge 0x40660b
push esi
lea ecx, [esp + 0x368]
call fcn.0044e8c0
cmp al, 0x80
jae 0x40660b
push esi
lea ecx, [esp + 0x368]
call fcn.0044e8c0
cmp al, 3
je 0x4065cb
push esi
lea ecx, [esp + 0x368]
call fcn.0044e8c0
mov edx, dword [0x48ccf4]
mov ecx, dword [0x48ccf0]
shl edx, 8
cmp ecx, 0x100
mov byte [edx + ecx + 0x48ccf8], al
jge 0x40660b
inc ecx
mov dword [0x48ccf0], ecx
jmp 0x4065f8
mov eax, dword [0x48ccf4]
mov edx, dword [0x48ccf0]
mov ecx, eax
shl ecx, 8
cmp eax, 0x64
mov byte [ecx + edx + 0x48ccf8], 0
jge 0x40660b
inc eax
mov dword [0x48ccf0], 0
mov dword [0x48ccf4], eax
inc esi
xor eax, eax
mov al, byte [ebp + 0x52]
movsx ecx, si
add eax, ebx
cmp ecx, eax
jl 0x406571
mov esi, dword [esp + 0x10]
lea eax, [edi - 1]
inc esi
push eax
lea ecx, [esp + 0x368]
mov dword [esp + 0x14], esi
call fcn.0044e8c0
xor dx, dx
cmp si, 4
mov dl, al
lea edi, [edi + edx + 3]
je 0x406648
lea ecx, [esp + 0x364]
call fcn.0044e960
cmp di, ax
jl 0x4064ed
mov eax, dword [esp + 0x38]
mov cl, byte [esp + 0x10]
mov byte [esp + 0x354], 2
mov byte [eax + 0x5c], cl
lea ecx, [esp + 0x30]
call fcn.0044e6f0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 6
je 0x406693
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40668a
cmp al, 0xff
je 0x40668a
dec al
mov byte [ecx], al
jmp 0x406693
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.0044e6f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0044e6f0
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0044e6f0
mov ax, 0xff
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x348
ret 0x10