Function at 0x40d320
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48deb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x20], 0
jne 0x40d38c
mov eax, dword [ebp + 0x18]
push 0x584
lea ecx, [ebp + 0x14]
push eax
push ecx
call fcn.00481cbf
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx*4]
lea edx, [ecx + edx*2]
shl edx, 5
add edx, ecx
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 0x580]
jl 0x40d38c
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0x584
dec ecx
jne 0x40d37c
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esp + 0x10], esi
mov ecx, 0x15f
mov eax, dword [esi]
add esi, 8
mov dword [ebp + 0x10], eax
mov dword [esi - 4], edi
mov dword [esi - 8], 0
mov eax, dword [ebp + 0xc]
inc eax
mov ebx, esi
mov dword [ebp + 0xc], eax
xor eax, eax
mov edi, ebx
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x18], ebx
test ebx, ebx
mov byte [esp + 0x24], 1
je 0x40d3d4
mov ecx, ebx
call fcn.0040d5f0
add ebx, 0x57c
mov ecx, edi
dec edi
mov byte [esp + 0x24], 0
test ecx, ecx
mov dword [esp + 0x14], ebx
jne 0x40d3c0
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
call fcn.00482375
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
push eax
call fcn.00482375
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 8]
call fcn.00482375
lea edx, [esp + 0x38]
lea ecx, [esi + 0xc]
push edx
call fcn.00482375
lea eax, [esp + 0x3c]
lea ecx, [esi + 0x10]
push eax
call fcn.00482375
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esi + 0x14]
call fcn.00482375
lea edx, [esp + 0x44]
lea ecx, [esi + 0x18]
push edx
call fcn.00482375
mov ecx, dword [esp + 0x48]
lea eax, [esi + 0x1c]
lea ebx, [esp + 0x30]
lea edi, [esi + 0x2c]
mov dword [eax], ecx
mov edx, dword [esp + 0x4c]
sub ebx, esi
mov dword [esp + 0x14], 5
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x2c]
sub eax, esi
mov dword [esp + 0x18], eax
jmp 0x40d483
mov eax, dword [esp + 0x18]
add eax, edi
mov ecx, edi
push eax
call fcn.00482375
lea eax, [ebx + edi]
lea ecx, [edi + 4]
push eax
call fcn.00482375
mov eax, dword [esp + 0x14]
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x40d47f
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esi + 0x54]
call fcn.00482375
lea edx, [esp + 0x84]
lea ecx, [esi + 0x58]
push edx
call fcn.00482375
lea eax, [esp + 0x88]
lea ecx, [esi + 0x5c]
push eax
call fcn.00482375
mov ecx, dword [esp + 0x8c]
lea edi, [esi + 0x64]
mov dword [esi + 0x60], ecx
mov ecx, 0x146
lea esi, [esp + 0x90]
pop ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d502
mov esi, dword [esp + 0xc]
mov dword [eax], esi
jmp 0x40d50b
mov edx, dword [esp + 0xc]
mov dword [ebp + 4], edx
mov esi, edx
mov dword [ebp + 8], esi
lea ecx, [esp + 0x84]
mov dword [esp + 0x20], 0xb
call fcn.00482288
lea ecx, [esp + 0x80]
mov byte [esp + 0x20], 0xa
call fcn.00482288
lea ecx, [esp + 0x7c]
mov byte [esp + 0x20], 9
call fcn.00482288
push 0x403790
push 5
lea eax, [esp + 0x5c]
push 8
push eax
mov byte [esp + 0x30], 8
call fcn.00472130
lea ecx, [esp + 0x40]
mov byte [esp + 0x20], 7
call fcn.00482288
lea ecx, [esp + 0x3c]
mov byte [esp + 0x20], 6
call fcn.00482288
lea ecx, [esp + 0x38]
mov byte [esp + 0x20], 5
call fcn.00482288
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], 4
call fcn.00482288
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 3
call fcn.00482288
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.00482288
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 0x57c