Function at 0x405b80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x461935
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.0043f6d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x354], 1
call fcn.0043f6d0
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.0043f6d0
push 2
lea ecx, [esp + 0x368]
mov byte [esp + 0x358], 3
call fcn.0043f9e0
and eax, 0xff
sub eax, 2
je 0x40649e
sub eax, 0xe5
je 0x4061dc
sub eax, 0xd
je 0x405ca8
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.0043f810
mov eax, dword [esp + 0x24]
mov byte [esp + 0x354], 7
cmp eax, ebx
je 0x405c63
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405c5a
cmp al, 0xff
je 0x405c5a
dec al
mov byte [ecx], al
jmp 0x405c63
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0043f810
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0043f810
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0043f810
xor ax, ax
jmp 0x4066e4
mov al, byte [esp + 0x360]
mov dword [esp + 0x10], ebx
test al, al
jne 0x405ed2
push ebx
lea ecx, [esp + 0x368]
call fcn.0043f9e0
movzx ax, al
sub eax, 3
cmp ax, 0xa
mov dword [esp + 0x10], eax
jle 0x405ce2
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 0x406155
mov ebp, dword [esp + 0x38]
mov edi, 0x481e18
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.0043f9e0
and eax, 0xff
lea edx, [esp + 0x4c]
push eax
push 0x47599c
push edx
call fcn.00458e0a
mov edi, 0x481e18
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.0043f9e0
mov al, byte [ebp + 0x26]
test al, al
ja 0x405d96
mov al, byte [ebp + 0x27]
test al, al
jbe 0x405e3c
cmp word [esp + 0x35c], 0
jne 0x405e3c
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.00413840
test al, al
je 0x405dee
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 0x4759e0
lea ecx, [esp + 0x20]
call fcn.0043fb50
mov cl, byte [ebp + 0x26]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043fa50
mov dl, byte [ebp + 0x27]
lea ecx, [esp + 0x18]
push edx
call fcn.0043fa50
push 0
lea ecx, [esp + 0x1c]
call fcn.0043fa50
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.0043fa50
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
jmp 0x405e8c
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.00413840
test al, al
je 0x405e85
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 0x4759d8
call fcn.0043f770
lea ecx, [esp + 0x20]
call fcn.0043f8b0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00413ee0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x405cf9
jmp 0x406155
mov al, byte [ebp + 0x50]
lea ecx, [ebp + 0x50]
cmp al, 0x80
jb 0x406155
movzx ax, byte [ebp + 0x5c]
cmp ax, 4
mov dword [esp + 0x10], eax
jle 0x405ef8
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 0x406155
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.0043f9e0
mov cl, byte [esi]
mov ebp, dword [esp + 0x44]
push eax
push ecx
mov ecx, ebp
call fcn.00405340
mov al, byte [ebp + 0x26]
test al, al
ja 0x405f56
mov al, byte [ebp + 0x27]
test al, al
jbe 0x406060
cmp word [esp + 0x35c], 0
jne 0x406060
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.004143f0
cmp eax, ebx
jae 0x405f8c
call fcn.00458530
mov edi, dword [esp + 0x24]
test edi, edi
je 0x405fb4
mov al, byte [edi - 1]
test al, al
je 0x405fb4
cmp al, 0xff
je 0x405fb4
test ebx, ebx
jne 0x405fdd
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00413440
jmp 0x406009
test ebx, ebx
jne 0x405fc5
push 1
lea ecx, [esp + 0x24]
call fcn.00413440
jmp 0x406009
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x405fd2
cmp eax, ebx
jae 0x405feb
push 1
lea ecx, [esp + 0x24]
call fcn.00413440
push ebx
lea ecx, [esp + 0x24]
call fcn.00414400
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.00413820
push 2
push 0x4759e0
lea ecx, [esp + 0x20]
call fcn.0043fb50
mov al, byte [ebp + 0x26]
lea ecx, [esp + 0x18]
push eax
call fcn.0043fa50
mov cl, byte [ebp + 0x27]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043fa50
mov edx, dword [esp + 0x360]
lea ecx, [esp + 0x18]
push edx
call fcn.0043fa50
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x18]
inc al
push eax
call fcn.0043fa50
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
jmp 0x40610b
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.004143f0
cmp eax, ebx
jae 0x406087
call fcn.00458530
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4060af
mov al, byte [edi - 1]
test al, al
je 0x4060af
cmp al, 0xff
je 0x4060af
test ebx, ebx
jne 0x4060d8
dec al
push ebx
lea ecx, [esp + 0x24]
mov byte [edi - 1], al
call fcn.00413440
jmp 0x406104
test ebx, ebx
jne 0x4060c0
push 1
lea ecx, [esp + 0x24]
call fcn.00413440
jmp 0x406104
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
ja 0x4060cd
cmp eax, ebx
jae 0x4060e6
push 1
lea ecx, [esp + 0x24]
call fcn.00413440
push ebx
lea ecx, [esp + 0x24]
call fcn.00414400
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.00413820
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
lea edx, [esp + 0x34]
push edx
call fcn.0043f6e0
lea ecx, [esp + 0x20]
call fcn.0043f8b0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00413ee0
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 0x405f0f
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.0043f810
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 5
je 0x406195
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40618c
cmp al, 0xff
je 0x40618c
dec al
mov byte [ecx], al
jmp 0x406195
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.0043f810
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0043f810
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0043f810
mov ax, word [esp + 0x10]
jmp 0x4066e4
xor ecx, ecx
mov eax, 0x100
lea edi, [ebp + 0x50]
mov edx, 0x47ba18
mov edi, 0x481e18
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, 0x481e18
rep movsb byte es:[edi], byte [esi]
jl 0x4061eb
push ebx
lea ecx, [esp + 0x368]
call fcn.0043f9e0
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 0x406255
mov esi, 0xa
mov dword [esp + 0x10], esi
movsx eax, si
xor ebx, ebx
mov byte [ebp + 0x4c], 0
test eax, eax
jle 0x406419
jmp 0x40626c
mov ebp, dword [esp + 0x38]
lea esi, [ebx + ebx*2 + 3]
lea ecx, [esp + 0x364]
push esi
call fcn.0043f9e0
cmp al, 0x25
jne 0x406285
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.0043f9e0
lea edx, [ebx + ebx*2 + 4]
push eax
push edx
lea ecx, [esp + 0x374]
call fcn.0043f9e0
push eax
push esi
lea ecx, [esp + 0x378]
call fcn.0043f9e0
push eax
mov ecx, ebp
call fcn.00403930
mov al, byte [ebp + 0x26]
test al, al
ja 0x4062da
mov al, byte [ebp + 0x27]
test al, al
jbe 0x40638d
cmp word [esp + 0x35c], 0
jne 0x40638d
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.00413840
test al, al
je 0x406332
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 0x4759e0
lea ecx, [esp + 0x20]
call fcn.0043fb50
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
mov dl, byte [esi + 0x26]
push edx
call fcn.0043fa50
mov al, byte [esi + 0x27]
lea ecx, [esp + 0x18]
push eax
call fcn.0043fa50
mov ecx, dword [esp + 0x360]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043fa50
mov dl, bl
lea ecx, [esp + 0x18]
inc dl
push edx
call fcn.0043fa50
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
jmp 0x4063e2
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.00413840
test al, al
je 0x4063d6
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.0043f6e0
lea ecx, [esp + 0x20]
call fcn.0043f8b0
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x14]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00413ee0
movsx eax, word [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x406268
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 2
call fcn.0043f810
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x354], 4
je 0x406459
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x406450
cmp al, 0xff
je 0x406450
dec al
mov byte [ecx], al
jmp 0x406459
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0043f810
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0043f810
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0043f810
mov ax, si
jmp 0x4066e4
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x50]
mov edx, 0x47ba18
rep stosd dword es:[edi], eax
mov edi, 0x481e18
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, 0x481e18
rep movsb byte es:[edi], byte [esi]
jl 0x4064af
lea ecx, [esp + 0x364]
mov edi, 6
mov dword [esp + 0x10], ebx
call fcn.0043fa80
cmp ax, di
jle 0x406658
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.0043f9e0
mov byte [ebp + 0x50], al
lea eax, [edi - 2]
push eax
lea ecx, [esp + 0x368]
call fcn.0043f9e0
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.0043f9e0
push ebx
lea ecx, [esp + 0x368]
mov byte [ebp + 0x52], al
call fcn.0043f9e0
cmp al, 0x8d
jne 0x40661b
xor eax, eax
mov esi, edi
movsx ebx, di
mov dword [0x47ba14], eax
mov dword [0x47ba10], eax
mov al, byte [ebp + 0x52]
add eax, ebx
cmp ebx, eax
jge 0x40661b
push esi
lea ecx, [esp + 0x368]
call fcn.0043f9e0
cmp al, 0x80
jae 0x40661b
push esi
lea ecx, [esp + 0x368]
call fcn.0043f9e0
cmp al, 3
je 0x4065db
push esi
lea ecx, [esp + 0x368]
call fcn.0043f9e0
mov edx, dword [0x47ba14]
mov ecx, dword [0x47ba10]
shl edx, 8
cmp ecx, 0x100
mov byte [edx + ecx + 0x47ba18], al
jge 0x40661b
inc ecx
mov dword [0x47ba10], ecx
jmp 0x406608
mov eax, dword [0x47ba14]
mov edx, dword [0x47ba10]
mov ecx, eax
shl ecx, 8
cmp eax, 0x64
mov byte [ecx + edx + 0x47ba18], 0
jge 0x40661b
inc eax
mov dword [0x47ba10], 0
mov dword [0x47ba14], eax
inc esi
xor eax, eax
mov al, byte [ebp + 0x52]
movsx ecx, si
add eax, ebx
cmp ecx, eax
jl 0x406581
mov esi, dword [esp + 0x10]
lea eax, [edi - 1]
inc esi
push eax
lea ecx, [esp + 0x368]
mov dword [esp + 0x14], esi
call fcn.0043f9e0
xor dx, dx
cmp si, 4
mov dl, al
lea edi, [edi + edx + 3]
je 0x406658
lea ecx, [esp + 0x364]
call fcn.0043fa80
cmp di, ax
jl 0x4064fd
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.0043f810
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x354], 6
je 0x4066a3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40669a
cmp al, 0xff
je 0x40669a
dec al
mov byte [ecx], al
jmp 0x4066a3
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.0043f810
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 0
call fcn.0043f810
lea ecx, [esp + 0x364]
mov dword [esp + 0x354], 0xffffffff
call fcn.0043f810
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