Function at 0x514980
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5153f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x5149d3
mov eax, dword [ebp - 4]
cmp word [eax + 0x34], 4
je 0x5149d3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10], 0
je 0x5149d3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
cmp byte [eax + 0x2c], 0
jne 0x5149d7
xor eax, eax
jmp 0x5149d9
mov al, 1
mov byte [ebp - 0x42], al
cmp byte [ebp - 0x42], 0
je 0x514a24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x514a24
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.004f17ec
mov ax, word [eax + 8]
add eax, 0xffffff9a
sub ax, 2
jae 0x514a1c
mov byte [ebp - 0x42], 0
jmp 0x514a24
inc dword [ebp - 8]
dec dword [ebp - 0x4c]
jne 0x5149fb
mov eax, dword [ebp - 4]
cmp word [eax + 0x34], 4
jne 0x514a55
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0
je 0x514a55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp byte [eax + 0x1e], 0
je 0x514a55
mov edx, 8
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
jmp 0x514a7a
cmp byte [ebp - 0x42], 0
je 0x514a6d
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
jmp 0x514a7a
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
je 0x514a9e
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00518a2c
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
add eax, 0x4c
call fcn.004050e4
jmp 0x514aa9
mov eax, dword [ebp - 4]
add eax, 0x4c
call fcn.00405090
mov edx, 0x65
mov eax, dword [0x4d8b30]
call fcn.004d8dc4
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x515173
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x515158
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x514d32
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x514b35
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.004f17ec
mov eax, dword [eax + 0x40]
cmp eax, dword [ebp - 0x38]
je 0x514b35
inc dword [ebp - 8]
dec dword [ebp - 0x4c]
jne 0x514b17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 8]
jg 0x514b57
mov ecx, 0x127d
mov edx, 0x51540c
mov eax, 0x515444
call fcn.00404fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.004f17ec
call fcn.00511f1c
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x41], 1
jne 0x514c6b
mov eax, dword [ebp - 0x18]
call fcn.004ee2a4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x514c1a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
jne 0x514ba2
mov byte [ebp - 0x11], 3
mov al, byte [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x16
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0
je 0x514d23
cmp byte [ebp - 0x11], 1
je 0x514d23
cmp byte [ebp - 0x11], 0
jne 0x514b8c
jmp 0x514d23
xor eax, eax
mov dword [ebp - 0x24], eax
push 3
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
jmp 0x514d23
cmp byte [ebp - 0x41], 2
jne 0x514d23
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004ee078
mov al, byte [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x16
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
cmp eax, dword [ebp - 0x24]
jbe 0x514ce4
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004ee11c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004ee1b0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
cmp dword [ebp - 0x10], 0
je 0x514d23
cmp byte [ebp - 0x11], 1
je 0x514d23
cmp byte [ebp - 0x11], 0
jne 0x514c7d
cmp dword [ebp - 0x10], 0
jne 0x514afe
jmp 0x515158
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 1
jne 0x515150
mov dword [ebp - 0x30], 0xfffff3c7
mov dword [ebp - 0x34], 0xfffff3c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x514ee2
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.004f17ec
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ax, word [eax + 8]
add eax, 0xfffffff3
sub ax, 2
jae 0x514ed6
mov eax, dword [ebp - 0x40]
mov al, byte [eax + 0xa]
sub al, 1
je 0x514da1
sub al, 2
jne 0x514ed6
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
jne 0x514ed6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
je 0x514dd5
push ebp
lea edx, [ebp - 0x58]
mov eax, dword [0x5584ec]
call fcn.00407720
mov eax, dword [ebp - 0x58]
call fcn.00514924
pop ecx
jmp 0x514ee2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
mov eax, dword [ebp - 0x40]
call fcn.00511f1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x514e18
mov ecx, 0x12c3
mov edx, 0x51540c
mov eax, 0x515444
call fcn.00404fbc
mov eax, dword [ebp - 0x18]
call fcn.004ee2a4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x514ea8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
jne 0x514e3f
mov byte [ebp - 0x11], 3
mov al, byte [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x16
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0
je 0x514ed6
cmp byte [ebp - 0x11], 1
je 0x514ed6
cmp byte [ebp - 0x11], 0
jne 0x514e29
jmp 0x514ed6
xor eax, eax
mov dword [ebp - 0x24], eax
push 3
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
dec dword [ebp - 0x4c]
jne 0x514d6a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
jne 0x514f3f
push ebp
lea edx, [ebp - 0x5c]
mov eax, dword [0x557d2c]
call fcn.00407720
mov eax, dword [ebp - 0x5c]
call fcn.00514924
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
jne 0x514f3f
xor eax, eax
mov dword [ebp - 0x24], eax
push 3
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
je 0x514f09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5150b2
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.004f17ec
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ax, word [eax + 8]
add eax, 0xfffffff3
sub ax, 2
jae 0x5150a6
mov eax, dword [ebp - 0x40]
mov al, byte [eax + 0xa]
add al, 0xfe
sub al, 2
jae 0x5150a6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
je 0x514fb5
push ebp
lea edx, [ebp - 0x60]
mov eax, dword [0x558338]
call fcn.00407720
mov eax, dword [ebp - 0x60]
call fcn.00514924
pop ecx
jmp 0x5150b2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
mov eax, dword [ebp - 0x40]
call fcn.00511f1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x514ff8
mov ecx, 0x12f3
mov edx, 0x51540c
mov eax, 0x515444
call fcn.00404fbc
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004ee078
mov al, byte [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x16
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
cmp eax, dword [ebp - 0x24]
jbe 0x515067
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004ee11c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004ee1b0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
cmp dword [ebp - 0x10], 0
je 0x5150a6
cmp byte [ebp - 0x11], 1
je 0x5150a6
cmp byte [ebp - 0x11], 0
jne 0x515000
inc dword [ebp - 8]
dec dword [ebp - 0x4c]
jne 0x514f5c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
jne 0x51512f
push ebp
lea edx, [ebp - 0x64]
mov eax, dword [0x558500]
call fcn.00407720
mov eax, dword [ebp - 0x64]
call fcn.00514924
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
jne 0x51512f
mov dword [ebp - 0x24], 0x64
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x11]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00517f44
push 3
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00514560
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
je 0x5150d9
xor eax, eax
mov dword [ebp - 0x24], eax
push 3
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, 5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.005180ec
jmp 0x515158
mov eax, dword [ebp - 4]
call fcn.0051242c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51517a
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x4d8b30]
call fcn.004d8de0
ret