Function at 0x517b90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bfc75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x58]
call fcn.0043d860
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x517f76
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x44]
mov edi, 2
xor ebx, ebx
cmp edx, edi
push eax
sete bl
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.00541000
mov eax, dword [esi + 0x5c]
mov ecx, 1
cmp eax, ecx
jne 0x517bfc
mov dword [esp + 0x10], ecx
jmp 0x517c41
cmp eax, edi
jne 0x517c06
mov dword [esp + 0x10], ecx
jmp 0x517c41
cmp eax, 3
jne 0x517c11
mov dword [esp + 0x10], edi
jmp 0x517c41
cmp eax, 4
jne 0x517c20
mov dword [esp + 0x10], 3
jmp 0x517c41
cmp eax, 5
jne 0x517c2f
mov dword [esp + 0x10], 6
jmp 0x517c41
xor edx, edx
cmp eax, 6
setne dl
dec edx
and edx, 4
mov dword [esp + 0x10], edx
je 0x517c5f
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x40]
push eax
push 0
push edx
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0x64]
push ebx
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.005413c0
test ebx, ebx
je 0x517c9c
mov ebx, dword [esi + 0x6c]
xor edi, edi
dec ebx
js 0x517c82
mov edx, dword [esi + 0x68]
mov ecx, dword [edx + ebx*4]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x517c7f
mov edi, 1
dec ebx
jns 0x517c6b
neg edi
sbb edi, edi
push 0
and edi, 0xfffffffe
mov ecx, esi
add edi, 7
push edi
push 2
call fcn.00518100
mov ebx, dword [esp + 0xc]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x517d4f
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x134]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.005411b0
mov edi, eax
lea ecx, [esp + 0x58]
push edi
call fcn.0041e610
mov ecx, edi
lea edx, [esp + 0x58]
sub ecx, edx
lea eax, [esp + 0x68]
mov edx, 4
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
mov ebx, dword [ecx + eax + 4]
mov dword [eax + 4], ebx
add eax, 8
dec edx
jne 0x517cdb
mov ax, word [edi + 0x30]
lea ecx, [edi + 0x38]
push ecx
lea ecx, [esp + 0x94]
mov word [esp + 0x8c], ax
call fcn.00438700
lea edx, [edi + 0x80]
lea ecx, [esp + 0xd8]
push edx
call fcn.00438700
mov ax, word [edi + 0xc8]
add edi, 0xcc
push edi
lea ecx, [esp + 0x128]
mov word [esp + 0x124], ax
call fcn.0041e610
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.004d0de0
mov ebx, dword [esp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x38]
lea edx, [esi + 0x4c]
push edx
push edi
call fcn.004d0e90
mov ecx, dword [esi + 0x38]
xor eax, eax
test ebx, ebx
setne al
inc eax
push eax
call fcn.004d0e80
lea ecx, [esp + 0x18]
call fcn.00479c40
lea ecx, [esp + 0x24]
call fcn.00479c40
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x84]
mov eax, dword [ecx + 0x10]
mov ecx, dword [esi + 0x88]
cmp edx, ecx
jle 0x517d9e
mov ax, word [eax + 0x38]
jmp 0x517da2
mov ax, word [eax + 0x36]
test ax, ax
je 0x517e68
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x58]
mov edi, dword [eax + 4]
push edi
call fcn.0041e610
mov ecx, edi
lea edx, [esp + 0x58]
sub ecx, edx
lea eax, [esp + 0x68]
mov edx, 4
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
mov ebx, dword [ecx + eax + 4]
mov dword [eax + 4], ebx
add eax, 8
dec edx
jne 0x517dcc
mov ax, word [edi + 0x30]
lea ecx, [edi + 0x38]
push ecx
lea ecx, [esp + 0x94]
mov word [esp + 0x8c], ax
call fcn.00438700
lea edx, [edi + 0x80]
lea ecx, [esp + 0xd8]
push edx
call fcn.00438700
mov ax, word [edi + 0xc8]
add edi, 0xcc
push edi
lea ecx, [esp + 0x128]
mov word [esp + 0x124], ax
call fcn.0041e610
mov eax, dword [esi + 0x5c]
dec eax
je 0x517e41
dec eax
je 0x517ebc
sub eax, 3
je 0x517e54
push 0x3ff921fb
push 0x54442d18
lea ecx, [esp + 0x60]
call fcn.0043dd70
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.004d0de0
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0xc]
cmp dword [esi + 0x5c], 5
je 0x517ed1
mov edx, dword [esi + 0x40]
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.005410f0
test eax, eax
jne 0x517e96
mov eax, dword [esi + 0x40]
test eax, eax
je 0x517ed1
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00541150
test eax, eax
je 0x517ed1
mov eax, dword [esi + 0x40]
push ebx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.005412d0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push ecx
push 1
jmp 0x517edd
push 0x3ff921fb
push 0x54442d18
lea ecx, [esp + 0x60]
call fcn.0043dc20
jmp 0x517e54
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
mov ecx, dword [esi + 0x38]
lea edx, [esi + 0x64]
push edx
push edi
call fcn.004cfa20
mov eax, dword [esi + 0x40]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00541370
fstp dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.004d0f60
mov ecx, dword [esi + 0x38]
push edi
call fcn.004cf620
mov eax, dword [esi + 0x5c]
cmp eax, 2
je 0x517f49
cmp eax, 5
je 0x517f49
fmul dword [0x5d8ec8]
fst dword [esp + 0xc]
fcomp dword [esi + 0x34]
fnstsw ax
test ah, 0x41
jne 0x517f52
call int.0059d7a7
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push edx
mov ecx, eax
call fcn.0054eef0
jmp 0x517f4f
fmul dword [0x5cb6d8]
fstp dword [esi + 0x34]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
push eax
push edi
call fcn.004d0ed0
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x5180de
push 0x40
call fcn.00586401
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
xor eax, eax
cmp edi, eax
mov dword [esp + 0x210], eax
je 0x518076
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x1a5
push ecx
mov ecx, dword [0x61d3a0]
call fcn.0055e860
push ecx
mov ecx, dword [0x61d3a0]
mov edx, esp
mov dword [esp + 0x18], esp
push 0x1a9
push edx
mov byte [esp + 0x220], 1
call fcn.0055e860
push ecx
mov ecx, dword [0x61d3a0]
mov eax, esp
mov dword [esp + 0x44], esp
push 0x1b4
push eax
mov byte [esp + 0x224], 2
call fcn.0055e860
push ecx
mov byte [esp + 0x220], 3
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x196
push ecx
mov ecx, dword [0x61d3a0]
call fcn.0055e860
push ecx
mov ecx, dword [0x61d3a0]
mov edx, esp
mov dword [esp + 0x50], esp
push 0x198
push edx
mov byte [esp + 0x22c], 4
call fcn.0055e860
push ecx
mov ecx, dword [0x61d3a0]
mov eax, esp
mov dword [esp + 0x48], esp
push 0x1a7
push eax
mov byte [esp + 0x230], 5
call fcn.0055e860
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, edi
mov byte [esp + 0x234], 0
call fcn.004d7cc0
mov ecx, dword [esi + 0x6c]
lea edi, [esi + 0x64]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x218], 0xffffffff
call fcn.00581a6e
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x38]
lea edx, [esi + 0x4c]
push edx
push ebx
call fcn.004d0e90
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x38]
push eax
call fcn.004cf7e0
mov ecx, dword [esi + 0x38]
push 1
call fcn.004d0e80
lea ecx, [esp + 0x4c]
call fcn.00479c40
lea ecx, [esp + 0x40]
call fcn.00479c40
lea ecx, [esp + 0x40]
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push 0
push edi
push ebx
call fcn.004cfa20
mov ecx, dword [esp + 0x208]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4