Function at 0x59a65c
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 - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
cmp eax, 0x64
jne 0x59a7e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
dec eax
sub eax, 0x63
jae 0x59a7e4
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 - 0x10]
mov edx, dword [edx + 0xdc]
cmp word [edx + eax*8 + 0x22], 0
jne 0x59a7e4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
cmp dword [eax + 0xc], 2
jge 0x59a7e4
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00641630
test al, al
je 0x59a7e4
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 - 0x10]
mov eax, dword [eax + 0xdc]
mov esi, dword [eax + ebx*8]
test esi, esi
je 0x59a773
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
push esi
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xdc]
lea eax, [eax + ebx*8 + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, eax
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
push eax
mov eax, dword [ebp + 8]
fild dword [eax - 0x2c]
fdiv dword [0x59abdc]
fsubr dword [0x59abe0]
call fcn.0040492c
mov edx, eax
shl eax, 8
sub eax, edx
push eax
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.00594c7c
jmp 0x59abd3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x1a4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xdc]
lea eax, [eax + ebx*8 + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, eax
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
push eax
mov eax, dword [ebp + 8]
fild dword [eax - 0x2c]
fdiv dword [0x59abdc]
fsubr dword [0x59abe0]
call fcn.0040492c
mov edx, eax
shl eax, 8
sub eax, edx
push eax
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.00594c7c
jmp 0x59abd3
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 - 8], 0
jle 0x59a91c
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0xffffffff
jle 0x59a8fe
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xdc]
call fcn.00408928
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
jle 0x59a8fe
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 - 0x10]
mov edx, dword [edx + 0xdc]
movzx edx, word [edx + eax*8 + 0x1e]
test dl, dl
je 0x59a894
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
mov edx, dword [edx + 0xdc]
lea edx, [edx + eax*8]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
mov edx, dword [edx + 0xdc]
movsx eax, word [edx + eax*8 + 0x22]
mov edx, dword [0x668998]
movzx eax, byte [edx + eax]
push eax
mov ecx, dword [0x668dfc]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.005fb05c
jmp 0x59a8f7
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 - 0x10]
mov eax, dword [eax + 0xdc]
lea eax, [eax + ebx*8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0xdc]
movsx eax, word [eax + ebx*8 + 0x22]
mov edx, dword [0x668998]
movzx eax, byte [edx + eax]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00466d2c
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
mov edx, dword [edx + 0xdc]
mov ecx, dword [edx + ebx*8]
lea edx, [ebp - 0x18]
call fcn.005faa14
mov eax, dword [ebp + 8]
mov byte [eax - 1], 1
cmp dword [ebp - 0x10], 0xffffffff
je 0x59a91c
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
lea edx, [ebp - 0x18]
call fcn.005965bc
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jle 0x59aaa0
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x59aa55
mov eax, dword [ebp + 8]
add eax, 0xffffffd8
mov dl, 1
call fcn.00637dcc
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffd8
mov dl, 1
call fcn.00637db8
pop edx
call fcn.005fa514
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x59aa4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x34]
call fcn.00406fd4
test eax, eax
jle 0x59a9ae
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.0040af00
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
call fcn.00594250
jmp 0x59a9c7
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x30]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 8]
call fcn.005965bc
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.0040af00
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.0040af30
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, eax
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov edx, 0xff
call fcn.0044e614
xor edx, edx
call fcn.0044e6dc
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.005f7a08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59aaa0
lea eax, [ebp - 8]
call fcn.00424b14
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x34]
call fcn.00406fd4
test eax, eax
jle 0x59aa80
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.00594250
jmp 0x59aaa0
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x30]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.005965bc
jmp 0x59abd3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
add eax, dword [edx - 8]
sub eax, 1
jb 0x59aae3
sub eax, 0x63
jae 0x59abd3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
push eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 0xc]
mov eax, dword [ebp + 8]
add cl, byte [eax - 8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0059643c
jmp 0x59abd3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.005959a4
mov edx, dword [ebp + 8]
mov dword [edx - 0x38], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x38], 0
je 0x59aba2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
sub eax, 1
jb 0x59ab18
sub eax, 0x63
je 0x59ab38
jmp 0x59ab58
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x30]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.005965bc
jmp 0x59abd3
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x35]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x30]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.005965bc
jmp 0x59abd3
mov eax, dword [ebp + 8]
mov dl, 0x64
sub dl, byte [eax - 0x2c]
push edx
mov eax, dword [ebp + 8]
mov edx, 0x64
sub edx, dword [eax - 0x2c]
mov eax, edx
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov edx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x35]
call fcn.0044e6dc
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x30]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00596670
jmp 0x59abd3
mov eax, dword [ebp + 8]
mov edx, 0x64
sub edx, dword [eax - 0x2c]
mov eax, edx
shl eax, 8
sub eax, edx
mov ecx, 0x64
cdq
idiv ecx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x30]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.005965bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret