Function at 0x51f7cc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov byte [eax - 5], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x10]
cmp eax, 0x64
jne 0x51f91d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
dec eax
sub eax, 0x63
jae 0x51f91d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, eax
add eax, eax
add eax, eax
add eax, eax
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0xd4]
cmp word [edx + eax*8 + 0x22], 0
jne 0x51f91d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
cmp dword [eax + 0xc], 2
jge 0x51f91d
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
call fcn.005776e8
test al, al
je 0x51f91d
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
mov eax, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [esi + 0xd4]
mov ebx, dword [eax + ecx*8]
test ebx, ebx
je 0x51f8c9
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xd4]
lea eax, [eax + ecx*8 + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, eax
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
push eax
push 0xff
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0x18]
call fcn.004be790
jmp 0x51fdd4
mov eax, dword [ebp + 8]
mov eax, dword [esi + 0x19c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xd4]
lea eax, [eax + ecx*8 + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, eax
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
push eax
push 0xff
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0x18]
call fcn.004be790
jmp 0x51fdd4
mov eax, dword [ebp + 8]
lea esi, [eax - 0x28]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jle 0x51faf4
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x51f9a9
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0xffffffff
jle 0x51faa9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xd8]
call fcn.00408154
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
jle 0x51faa9
mov eax, dword [ebp + 8]
add eax, 0xffffff9c
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0043efec
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
lea edx, [edx + edx*2]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xd8]
mov ecx, dword [ecx + edx*4]
lea edx, [ebp - 0x18]
call fcn.00528668
mov eax, dword [ebp + 8]
mov byte [eax - 5], 1
jmp 0x51faa9
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0xffffffff
jle 0x51faa9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xd4]
call fcn.00408154
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
jle 0x51faa9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, eax
add eax, eax
add eax, eax
add eax, eax
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0xd4]
movzx edx, word [edx + eax*8 + 0x1e]
test dl, dl
je 0x51fa3f
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0xd4]
lea edx, [edx + eax*8]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0xd4]
movsx eax, word [edx + eax*8 + 0x22]
mov edx, dword [0x654948]
movzx eax, byte [edx + eax]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x68]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00528cb0
jmp 0x51faa2
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0x14]
mov eax, ebx
add ebx, ebx
add ebx, ebx
add ebx, ebx
sub ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xd4]
lea eax, [eax + ebx*8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xd4]
movsx eax, word [eax + ebx*8 + 0x22]
mov edx, dword [0x654948]
movzx eax, byte [edx + eax]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0043efec
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0xd4]
mov ecx, dword [edx + ebx*8]
lea edx, [ebp - 0x18]
call fcn.00528668
mov eax, dword [ebp + 8]
mov byte [eax - 5], 1
cmp dword [ebp - 0x10], 0xffffffff
je 0x51faf4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0043f0d8
cmp al, 7
jne 0x51fad7
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
lea edx, [ebp - 0x18]
call fcn.00509fac
jmp 0x51faf4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0043efec
call fcn.00439e30
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0x6c]
lea edx, [ebp - 0x18]
call fcn.00523068
mov eax, dword [ebp + 8]
cmp dword [eax - 0x10], 0
jle 0x51fcd9
mov eax, dword [ebp + 8]
cmp byte [eax - 5], 0
je 0x51fc5e
mov eax, dword [ebp + 8]
add eax, 0xffffffd8
mov dl, 1
call fcn.00570ff8
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffd8
mov dl, 1
call fcn.00570fe4
pop edx
call fcn.005280f0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51fc57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.004058f4
call fcn.00406ad0
test eax, eax
jle 0x51fb8b
push 0
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004095c8
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bdd44
jmp 0x51fbd0
mov eax, dword [ebp - 8]
call fcn.0043f0d8
cmp al, 7
jne 0x51fbb2
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x6c]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 8]
call fcn.00509fac
jmp 0x51fbd0
mov eax, dword [ebp - 8]
call fcn.0043efec
call fcn.00439e30
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0x6c]
mov edx, dword [ebp + 8]
add edx, 0xffffffd8
call fcn.00523068
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004095c8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.004095f8
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, eax
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov edx, 0xff
call fcn.0040b62c
xor edx, edx
call fcn.0040b6f4
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.0052526c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fcd9
lea eax, [ebp - 8]
call fcn.00415b74
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.004058f4
call fcn.00406ad0
test eax, eax
jle 0x51fc8e
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x18]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004bdd44
jmp 0x51fcd9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0043f0d8
cmp al, 7
jne 0x51fcb9
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x6c]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00509fac
jmp 0x51fcd9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0043efec
call fcn.00439e30
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0x6c]
mov edx, dword [ebp + 8]
add edx, 0xffffffd8
call fcn.00523068
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
sub eax, 1
jb 0x51fd1c
sub eax, 0x63
jae 0x51fdd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x6c]
push eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 0x10]
mov eax, dword [ebp + 8]
add cl, byte [eax - 0xc]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00509e28
jmp 0x51fdd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x68]
cmp byte [eax + 0x20], 0
jne 0x51fdb9
mov eax, dword [ebp + 8]
cmp dword [eax - 0x70], 0
je 0x51fdb9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x70]
sub eax, 1
jb 0x51fd4b
sub eax, 0x63
je 0x51fd5c
jmp 0x51fd6a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x68]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx - 0x74], eax
jmp 0x51fd9c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x6c]
mov edx, dword [ebp + 8]
mov dword [edx - 0x74], eax
jmp 0x51fd9c
mov eax, dword [ebp + 8]
fild dword [eax - 0x70]
fld dword [0x51fddc]
call fcn.004037e0
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x68]
mov edx, dword [edx + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x6c]
call fcn.00528218
mov edx, dword [ebp + 8]
mov dword [edx - 0x74], eax
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x74]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00509fac
jmp 0x51fdd4
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x6c]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00509fac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret