Function at 0x480318
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0x6c2d58
mov dword [ebp - 0x1c], esp
mov eax, 0x56498f
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 4]
mov word [ebp - 0x18], 0
mov dword [ebp - 0xc], ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
mov dword fs:[0], ecx
mov word [ebp - 0x18], 8
mov eax, dword [ebx]
mov dword [eax + 0x44], edx
mov ecx, dword [ebx]
mov dword [ecx + 0x40], edx
mov eax, dword [ebx]
xor edx, edx
mov byte [eax + 0x30], dl
mov eax, dword [ebx]
mov byte [eax + 0x38], dl
mov eax, dword [ebx]
mov byte [eax + 0x32], dl
mov eax, dword [ebx]
mov byte [eax + 0x28], dl
mov eax, dword [ebx]
mov byte [eax + 0x20], dl
mov eax, dword [ebx]
mov byte [eax + 0x18], dl
mov eax, dword [ebx]
mov byte [eax + 0x10], dl
mov eax, dword [ebx]
mov byte [eax + 8], dl
mov eax, dword [ebx]
mov byte [eax], dl
mov eax, dword [ebx]
call fcn.004f8da4
test eax, eax
je 0x4803ba
cmp dword [0x71d760], 0
je 0x4803b0
mov eax, dword [0x71d760]
jmp 0x4803b5
mov eax, dword [0x71d75c]
call fcn.0047adc4
mov edx, dword [ebx]
cmp byte [edx], 0
je 0x4803e1
mov ecx, dword [ebx]
cmp byte [ecx + 8], 0
je 0x4803e1
mov eax, dword [ebx]
cmp byte [eax + 0x10], 0
je 0x4803e1
mov edx, dword [ebx]
cmp byte [edx + 0x18], 0
je 0x4803e1
mov ecx, dword [ebx]
cmp byte [ecx + 0x20], 0
jne 0x4803fb
cmp dword [0x71d760], 0
je 0x4803f1
mov eax, dword [0x71d760]
jmp 0x4803f6
mov eax, dword [0x71d75c]
call fcn.0047adc4
mov edx, dword [ebx]
cmp byte [edx + 0x28], 0
jne 0x480410
mov ecx, dword [ebx]
mov byte [ecx + 0x28], 1
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, dword [ebx]
cmp byte [ecx + 0x32], 0
je 0x480473
mov eax, dword [ebx]
cmp dword [eax + 0x34], 0
jge 0x480424
mov cl, 1
jmp 0x480426
xor ecx, ecx
test cl, cl
je 0x48042f
mov eax, dword [ebx]
neg dword [eax + 0x34]
mov edx, dword [ebx]
mov edi, 0x64
mov esi, dword [edx + 0x34]
mov eax, esi
cdq
idiv edi
mov edi, eax
mov eax, esi
cdq
mov esi, 0x64
idiv esi
shl edi, 4
mov eax, edx
shl eax, 2
mov edx, dword [ebx]
lea edi, [edi + edi*4]
lea eax, [eax + eax*2]
lea edi, [edi + edi*4]
lea eax, [eax + eax*4]
lea edi, [edi + edi*8]
add edi, eax
test cl, cl
mov dword [edx + 0x34], edi
je 0x480473
mov ecx, dword [ebx]
neg edi
mov dword [ecx + 0x34], edi
mov eax, dword [ebx]
cmp byte [eax + 0x38], 0
je 0x4804d6
mov edx, dword [ebx]
cmp dword [edx + 0x3c], 0
jge 0x480487
mov cl, 1
jmp 0x480489
xor ecx, ecx
test cl, cl
je 0x480492
mov eax, dword [ebx]
neg dword [eax + 0x3c]
mov edx, dword [ebx]
mov edi, 0x64
mov esi, dword [edx + 0x3c]
mov eax, esi
cdq
idiv edi
mov edi, eax
mov eax, esi
cdq
mov esi, 0x64
idiv esi
shl edi, 4
mov eax, edx
shl eax, 2
mov edx, dword [ebx]
lea edi, [edi + edi*4]
lea eax, [eax + eax*2]
lea edi, [edi + edi*4]
lea eax, [eax + eax*4]
lea edi, [edi + edi*8]
add edi, eax
test cl, cl
mov dword [edx + 0x3c], edi
je 0x4804d6
mov ecx, dword [ebx]
neg edi
mov dword [ecx + 0x3c], edi
mov eax, dword [ebx]
cmp byte [eax + 0x32], 0
jne 0x4804f8
mov edx, dword [ebx]
cmp byte [edx + 0x38], 0
jne 0x4804f8
mov ecx, dword [ebx]
mov byte [ecx + 0x32], 1
mov edx, dword [ebx]
mov eax, dword [0x6dbc5c]
neg eax
mov dword [edx + 0x34], eax
mov ecx, dword [ebx]
cmp byte [ecx + 0x30], 0
je 0x48050e
mov eax, dword [ebx]
cmp byte [eax + 0x31], 0
je 0x48050e
mov edx, dword [ebx]
add dword [edx + 0x1c], 0xc
push 0x24
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0056420c
add esp, 0xc
mov eax, dword [ebx]
mov edx, dword [eax + 4]
add edx, 0xfffff894
mov dword [ebp - 0x38], edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x48], eax
mov edx, dword [ebx]
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00572ac8
pop ecx
mov esi, eax
cmp esi, 0xffffffff
jne 0x48057f
cmp dword [0x71d76c], 0
je 0x480575
mov eax, dword [0x71d76c]
jmp 0x48057a
mov eax, dword [0x71d768]
call fcn.0047adc4
mov edx, dword [ebx]
xor eax, eax
sub esi, dword [0x6dbc5c]
cmp byte [edx + 0x32], 0
je 0x480594
mov ecx, dword [ebx]
add eax, dword [ecx + 0x34]
mov edx, dword [ebx]
cmp byte [edx + 0x38], 0
je 0x4805a1
mov ecx, dword [ebx]
add eax, dword [ecx + 0x3c]
sub esi, eax
push 0
push 0x3e8
mov eax, esi
cdq
call fcn.0056cc0c
mov ecx, dword [ebx]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret