Function at 0x407940
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x438a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push fcn.00423788
push fcn.0042363d
push 0x14
lea eax, [esp + 0x30]
xor esi, esi
push 4
push eax
mov dword [esp + 0x90], esi
call fcn.0040e610
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.0042363d
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 2
call fcn.0042363d
lea ecx, [esp + 0x84]
mov bl, 3
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], bl
mov dword [ebp + 0x12c], esi
mov dword [ebp + 0x128], esi
mov dword [ebp + 0x13c], esi
call fcn.00423881
lea ecx, [esp + 0x10]
call fcn.0041dd7e
push 0x448144
lea ecx, [esp + 0x14]
call fcn.0041da5d
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0041d9c5
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 4
call fcn.00423881
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], bl
call fcn.00423788
mov eax, dword [esp + 0x10]
xor edi, edi
cmp dword [eax - 8], esi
je 0x407af8
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
call fcn.00423881
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edx, 4
push eax
push ecx
inc edi
mov dword [esp + 0x20], edx
call fcn.0040dce0
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
jne 0x407af8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov eax, dword [edx - 8]
inc eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041d89a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 5
call fcn.00423881
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], bl
call fcn.00423788
lea ecx, [esp + 0x10]
call fcn.0041dd7e
push 0x448144
lea ecx, [esp + 0x14]
call fcn.0041da5d
cmp eax, esi
jle 0x407add
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0041d9c5
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 6
call fcn.00423881
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], bl
call fcn.00423788
jmp 0x407aeb
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00423881
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], esi
jne 0x407a23
cmp edi, esi
jle 0x407c19
lea esi, [esp + 0x24]
mov dword [esp + 0x18], edi
mov edx, dword [esi]
push 4
push edx
push 0x448128
call fcn.0041d5a0
add esp, 0xc
test eax, eax
push 4
jne 0x407b5b
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0041d89a
lea edi, [ebp + 0x124]
push eax
mov ecx, edi
mov byte [esp + 0x80], 7
call fcn.00423881
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], bl
call fcn.00423788
mov ecx, edi
call fcn.0041dd7e
jmp 0x407c07
mov ecx, dword [esi]
push ecx
push 0x44813c
call fcn.0041d5a0
add esp, 0xc
test eax, eax
jne 0x407ba9
lea edx, [esp + 0x1c]
push 5
push edx
mov ecx, esi
call fcn.0041d89a
lea edi, [ebp + 0x120]
push eax
mov ecx, edi
mov byte [esp + 0x80], 8
call fcn.00423881
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], bl
call fcn.00423788
mov ecx, edi
call fcn.0041dd7e
jmp 0x407c07
mov eax, dword [esi]
push eax
push 0x448138
call fcn.00416010
add esp, 8
test eax, eax
jne 0x407bc9
mov dword [ebp + 0x12c], 1
jmp 0x407c07
mov ecx, dword [esi]
push ecx
push 0x448134
call fcn.00416010
add esp, 8
test eax, eax
jne 0x407be9
mov dword [ebp + 0x128], 1
jmp 0x407c07
mov edx, dword [esi]
push edx
push 0x448130
call fcn.00416010
add esp, 8
test eax, eax
jne 0x407c07
mov dword [ebp + 0x13c], 1
mov eax, dword [esp + 0x18]
add esi, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x407b08
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 2
call fcn.00423788
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.00423788
push fcn.00423788
push 0x14
lea eax, [esp + 0x2c]
push 4
push eax
mov byte [esp + 0x8c], 0
call fcn.0040e4f0
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00423788
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret 4