Function at 0x647cbc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64861d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x648602
mov eax, dword [ebp - 4]
call fcn.00649204
xor eax, eax
push ebp
push 0x6485f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.006491cc
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x54]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
xor eax, eax
push ebp
push 0x6485d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x10], eax
test byte [ebp - 5], 8
je 0x647e3b
mov eax, dword [ebp - 4]
call fcn.006499d0
cmp dword [eax + 8], 0
jle 0x647dab
mov eax, dword [ebp - 4]
call fcn.006499d0
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov edi, eax
dec edi
test edi, edi
jl 0x647e3b
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x20]
cmp dword [eax + 8], 0
jle 0x647e37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x58]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
inc ebx
dec edi
jne 0x647dc0
test byte [ebp - 5], 4
je 0x64804a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov edi, eax
dec edi
test edi, edi
jl 0x647f25
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.0064230c
test al, al
je 0x647f1d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x34]
call fcn.00644af4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x18]
pop edx
pop ecx
call fcn.00647ca4
test al, al
jne 0x647f1d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00644a94
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x5c]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
inc ebx
dec edi
jne 0x647e5e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov edi, eax
sub edi, 2
test edi, edi
jl 0x64805a
inc edi
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
cmp dword [eax + 0x34], 0
je 0x648040
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x34]
call fcn.00644bfc
add al, 0xfe
sub al, 2
jae 0x648040
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0064598c
call fcn.0064230c
test al, al
jne 0x648040
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
lea edx, [ebp - 0x20]
call fcn.00641f14
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0064598c
lea edx, [ebp - 0x30]
call fcn.00641f14
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x40]
call fcn.00413c4c
test al, al
je 0x648040
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x40]
call fcn.00413bf4
test al, al
je 0x647ff7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00644c0c
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x60]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
inc ebx
dec edi
jne 0x647f40
jmp 0x64805a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
add eax, eax
add dword [ebp - 0xc], eax
test byte [ebp - 5], 2
je 0x64812d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov ebx, eax
dec ebx
cmp ebx, 1
jl 0x64813b
inc dword [ebp - 0xc]
mov esi, ebx
dec esi
jmp 0x648084
dec esi
test esi, esi
jle 0x6480b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.0064598c
cmp dword [eax + 0x34], 0
je 0x6480b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.0064598c
mov eax, dword [eax + 0x34]
call fcn.00644bfc
cmp al, 3
je 0x648083
test esi, esi
jl 0x6480d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.0064598c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
pop edx
call fcn.0064409c
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x64]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
dec ebx
test ebx, ebx
jne 0x64807b
jmp 0x64813b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
add dword [ebp - 0xc], eax
test byte [ebp - 5], 4
je 0x6482ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x6482a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov esi, eax
dec esi
cmp esi, 0
jl 0x64825a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00640ec4
mov edx, dword [0x6348f8]
call fcn.00408a60
test al, al
jne 0x648239
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00640ec4
mov edx, dword [0x634500]
call fcn.00408a60
test al, al
jne 0x648239
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00640ec4
mov edx, dword [0x63513c]
call fcn.00408a60
test al, al
jne 0x648239
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00640ec4
mov edx, dword [0x6352dc]
call fcn.00408a60
test al, al
je 0x648250
test ebx, ebx
jg 0x648239
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
dec eax
jne 0x648250
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.00637e30
dec esi
cmp esi, 0xffffffff
jne 0x64818b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.006411e8
test al, al
je 0x64829b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
call fcn.00637de8
test eax, eax
jne 0x64829b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.0040874c
dec ebx
cmp ebx, 0xffffffff
jne 0x64816a
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x68]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
test byte [ebp - 5], 1
je 0x648435
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x648443
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.006411e8
test al, al
jne 0x648429
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.0064230c
test al, al
je 0x648429
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x34]
call fcn.00644bd0
movzx esi, ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.00643ce8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.006411e8
test al, al
je 0x6483e0
test ebx, ebx
jle 0x6483d3
mov edx, ebx
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0064598c
call fcn.0064230c
test al, al
je 0x6483d3
mov edi, ebx
dec edi
mov edx, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0064598c
mov eax, dword [eax + 0x34]
call fcn.00644bd0
add ax, si
push eax
mov edx, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0064598c
mov eax, dword [eax + 0x34]
pop edx
call fcn.00644bd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.00637e30
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x6c]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
dec ebx
cmp ebx, 0xffffffff
jne 0x64830f
jmp 0x648443
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
add dword [ebp - 0xc], eax
test byte [ebp - 5], 4
je 0x648579
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x648530
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
cmp dword [eax + 0x34], 0
je 0x6484e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov esi, dword [eax + 0x34]
mov eax, esi
call fcn.00644bd0
test ax, ax
je 0x6484af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
dec eax
jne 0x6484e5
mov eax, esi
call fcn.00644a88
test al, al
jne 0x6484e5
mov eax, esi
call fcn.00644be0
test al, al
jne 0x6484e5
mov eax, esi
call fcn.00644bfc
sub al, 2
jb 0x6484de
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.00637de8
dec eax
jne 0x6484e5
mov eax, esi
call fcn.0040874c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.006411e8
test al, al
je 0x648526
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
mov eax, dword [eax + 0x30]
call fcn.00637de8
test eax, eax
jne 0x648526
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, ebx
call fcn.0064598c
call fcn.0040874c
dec ebx
cmp ebx, 0xffffffff
jne 0x648472
mov eax, dword [ebp - 0x10]
push eax
push 0x64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MulDiv
push eax
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x70]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6485da
call fcn.00406f4c
test eax, eax
jne 0x648596
mov ebx, 0x64
jmp 0x648598
xor ebx, ebx
push ebx
push 0
push 0
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00413c18
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x74]
mov eax, dword [0x6d8750]
call fcn.004101e4
mov eax, dword [ebp - 0x74]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffd
call fcn.00408b4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x648624
lea eax, [ebp - 0x74]
mov edx, 9
call fcn.0040a68c
ret