Function at 0x415460
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x457150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [esp + 0x4c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [0x463058]
xor ebp, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
mov ecx, 0x64
cmp edx, 1
mov byte [esp + 0x54], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
jg 0x4154c7
cmp dword [eax - 4], ecx
jge 0x415526
mov edi, dword [eax - 8]
cmp edi, ecx
mov dword [esp + 0x18], edi
jle 0x4154d6
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x415526
mov edx, dword [esp + 0x14]
lea ecx, [edi + edi + 2]
lea eax, [edx + edx + 2]
cmp eax, ecx
jb 0x415515
mov edi, dword [esp + 0x10]
mov edx, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push esi
mov dword [eax - 8], edi
call fcn.00403f10
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x40]
push 0x64
push eax
push ecx
call dword [0x45a43c]
lea ecx, [esp + 0x10]
call fcn.004073c0
mov edx, dword [esp + 0x10]
push edx
call dword [0x45a300]
mov ecx, dword [esp + 0x10]
push 1
push ebp
push ebp
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x1c]
push ebp
lea esi, [ebx + 0x20]
mov word [edx + eax*2], bp
mov ecx, dword [ebx + 0x24]
lea eax, [esp + 0x34]
lea edx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x70]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.00431c50
mov edx, dword [ebx + 0x40]
add esp, 0x24
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [0x45a4f8]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
sub eax, ecx
sub eax, edx
mov edi, dword [esp + 0x30]
cdq
sub eax, edx
mov dword [esp + 0x3c], ebp
sar eax, 1
add eax, ecx
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
sub eax, edi
mov edi, dword [ebx + 0x28]
push ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], eax
call dword [0x45a440]
test eax, eax
jne 0x4155d8
mov edi, 0xc0c0c0
cmp dword [ebx + 0x64], ebp
je 0x4155ec
push 1
lea edx, [esp + 0x40]
push 1
push edx
call dword [0x45a464]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
push 0xff
push 1
push eax
mov eax, dword [ebx + 0x24]
push ecx
push ebp
lea edx, [esp + 0x50]
push edi
push edx
mov edx, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x30]
push esi
push ecx
push edx
call fcn.004319f0
mov eax, dword [esp + 0x3c]
mov edx, dword [0x46305c]
add esp, 0x2c
lea ecx, [eax - 0xc]
pop edi
pop esi
pop ebp
cmp ecx, edx
pop ebx
je 0x41564c
add eax, 0xfffffff4
push eax
call dword [0x45a2b4]
test eax, eax
jg 0x41564c
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 4