Function at 0x4a1d90
Capabilities:
Get number of processors

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x53e16d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x10], esi
push 0x4a1d50
push 0x18
push dword [esi + 0x34]
xor ebx, ebx
xor edi, edi
push dword [esi + 0x30]
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
call fcn.0052a210
mov ecx, dword [esi + 0x34]
add esp, 0x10
mov dword [ebp + 0x14], ecx
xor edx, edx
xor eax, eax
xor ecx, ecx
cmp dword [esi + 0x34], 2
jb 0x4a1e37
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi + 0x30]
add ecx, 0xfffffffe
shr ecx, 1
xor esi, esi
inc ecx
mov dword [ebp + 0x18], eax
add eax, 0x28
lea edx, [ecx + ecx]
mov dword [ebp + 0x14], edx
xor edx, edx
add edi, dword [eax - 0x18]
adc ebx, dword [eax - 0x14]
add esi, dword [eax]
adc edx, dword [eax + 4]
lea eax, [eax + 0x30]
sub ecx, 1
jne 0x4a1e12
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x20], edx
xor edx, edx
mov dword [ebp + 0x1c], esi
xor eax, eax
mov esi, dword [ebp + 0x10]
jmp 0x4a1e3f
mov ebx, dword [esi + 0x30]
mov dword [ebp + 0x18], ebx
mov ebx, eax
cmp ecx, dword [esi + 0x34]
jae 0x4a1e52
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax*8 + 0x10]
mov eax, dword [ecx + eax*8 + 0x14]
add edi, dword [ebp + 0x1c]
adc ebx, dword [ebp + 0x20]
add edx, edi
mov dword [ebp - 0x10], edx
adc eax, ebx
mov dword [ebp], eax
jne 0x4a1e72
cmp edx, 0x10000000
ja 0x4a1e72
mov byte [ebp + 0x27], 0
jmp 0x4a1edd
xor eax, eax
mov byte [ebp + 0x27], 1
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x28], 0x54266c
mov dword [ebp + 0x2c], 0x54266c
mov dword [ebp + 0x30], 0x54266c
mov dword [ebp + 0x34], 0x54266c
mov dword [ebp + 0x38], 0x54266c
mov dword [ebp + 0x3c], 0x54266c
mov dword [ebp + 0x40], 0x54266c
mov dword [ebp + 0x44], 0x54266c
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], 0x6e
call fcn.004b2040
push 0x100000
mov dword [ebp - 0x20], 0
push 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0x100000
call fcn.00525bbb
mov ebx, eax
add esp, 8
mov dword [ebp + 0x18], ebx
test ebx, ebx
jne 0x4a1f26
mov ecx, 0x5b68fc
call fcn.0047b030
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x100000
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp + 4], 0
mov dword [ebp + 0x20], eax
mov dword [ebp + 8], eax
cmp dword [esi + 0x34], eax
jbe 0x4a20b6
xor ecx, ecx
mov dword [ebp + 0x14], ecx
mov ebx, dword [esi + 0x30]
mov edi, dword [esi]
add ebx, ecx
push 0
mov eax, dword [edi]
push dword [ebx + 4]
push dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
mov edi, dword [ebp + 0x10]
push 0
push dword [ebx + 0xc]
mov edi, dword [edi + 4]
push dword [ebx + 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x1c], esi
test esi, esi
jl 0x4a2097
mov ebx, eax
jg 0x4a1fb2
test ebx, ebx
je 0x4a2097
mov edi, dword [ebp + 0x10]
call fcn.004b0fe0
test esi, esi
ja 0x4a1fcc
jb 0x4a1fc8
cmp ebx, 0x100000
jae 0x4a1fcc
mov ecx, ebx
jmp 0x4a1fd1
mov ecx, 0x100000
mov edi, dword [edi]
push ecx
push dword [ebp + 0x18]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
je 0x4a2097
mov edi, dword [ebp + 0x10]
push esi
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
call fcn.004827f0
mov ecx, dword [ebp + 4]
mov eax, esi
mov esi, dword [ebp + 0x1c]
cdq
sub ebx, eax
sbb esi, edx
add ecx, eax
mov dword [ebp + 0x1c], esi
adc dword [ebp + 0x20], edx
cmp byte [ebp + 0x27], 0
mov dword [ebp + 4], ecx
je 0x4a2085
mov eax, dword [edi]
mov edx, dword [ebp]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x7fffffff
jne 0x4a2041
cmp edx, eax
jne 0x4a2041
mov dword [0x5b691c], 0xffffffff
jmp 0x4a2085
push edx
push eax
mov eax, dword [ebp + 0x20]
push eax
push ecx
call fcn.004af940
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x222c]
cmp byte [eax + 0x714c], 0
jne 0x4a207c
cmp esi, dword [0x5b691c]
je 0x4a207c
push 0
push 0x64
mov eax, esi
cdq
push edx
push eax
push 0x552430
call fcn.004b3bc0
mov dword [0x5b691c], esi
mov esi, dword [ebp + 0x1c]
test esi, esi
jg 0x4a1fb5
jl 0x4a2097
test ebx, ebx
jne 0x4a1fb5
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
inc eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x18
mov dword [ebp + 8], eax
mov dword [ebp + 0x14], ecx
cmp eax, dword [esi + 0x34]
jb 0x4a1f54
mov ebx, dword [ebp + 0x18]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4a20cd
push eax
call fcn.00525b95
add esp, 4
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a20ef
push ebx
call fcn.00525b95
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0051dca8
lea esp, [ebp + 0x78]
pop ebp
ret