Function at 0x452b60
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cb5d0
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x64]
push edi
test eax, eax
jne 0x452d3c
mov eax, dword [ebx + 0x6c]
mov ecx, 0x5dac80
push eax
call fcn.00465fa0
mov ebp, eax
test ebp, ebp
je 0x452e21
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
call fcn.00401600
mov edi, 0x4e16d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4e16d8
lea ecx, [esp + 0x3c]
call fcn.00401560
mov al, byte [esp + 0x13]
xor edx, edx
mov dl, byte [ebp + 4]
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x80], 0
mov esi, dword [edx*4 + 0x4e18d0]
mov byte [esp + 0x28], al
call fcn.00401600
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x2c]
call fcn.00401560
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 1
call fcn.00401600
mov edi, 0x4e16d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4e16d4
lea ecx, [esp + 0x1c]
call fcn.00401560
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
mov byte [esp + 0x88], 2
call fcn.00452fd0
lea edx, [esp + 0x30]
mov byte [esp + 0x88], 3
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00453120
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x5c]
push ecx
push eax
push edx
mov byte [esp + 0xa0], 4
call fcn.00453120
add esp, 0x24
mov ecx, dword [0x4cf418]
mov byte [esp + 0x7c], 5
push ecx
push 0
push eax
lea ecx, [ebx + 0x94]
call fcn.00401c40
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 4
call fcn.00401600
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 3
call fcn.00401600
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x80], 2
call fcn.00401600
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 1
call fcn.00401600
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 0
call fcn.00401600
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
call fcn.00401600
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
cmp eax, 1
jne 0x452e21
mov ecx, dword [0x5d8ff4]
mov eax, dword [0x5d8ff0]
cmp eax, ecx
je 0x452e21
mov edx, dword [ebx + 0x6c]
cmp dword [eax], edx
je 0x452d68
add eax, 0x16c
cmp eax, ecx
jne 0x452d5b
cmp eax, ecx
je 0x452e21
lea esi, [eax + 0x6c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ebx + 0x94]
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x452d91
call fcn.004a9dbb
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x452dc7
mov al, byte [ecx - 1]
test al, al
je 0x452dc7
cmp al, 0xff
je 0x452dc7
test ebx, ebx
jne 0x452dfc
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00401600
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
test ebx, ebx
jne 0x452de7
push 1
mov ecx, ebp
call fcn.00401600
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x452df3
cmp eax, ebx
jae 0x452e04
push 1
mov ecx, ebp
call fcn.00401600
push ebx
mov ecx, ebp
call fcn.00401e70
mov edi, dword [ebp + 4]
mov ecx, ebx
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 eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret