Function at 0x408156
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b842
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1244
call fcn.00423310
mov eax, dword [0x439030]
xor eax, esp
mov dword [esp + 0x1240], eax
push ebx
push esi
push edi
mov eax, dword [0x439030]
xor eax, esp
push eax
lea eax, [esp + 0x1258]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1260], ebx
mov dword [esp + 0x30], ebx
sub esp, 0xc
mov byte [esp + 0x126c], 1
lea ecx, [esp + 0x40]
call fcn.0040418e
or esi, 0xffffffff
test eax, eax
js 0x40865a
push dword [0x43e4ac]
lea ecx, [esp + 0x68]
call fcn.0040443c
mov byte [esp + 0x1260], 2
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x4081fb
push 0x80004003
call fcn.00417e40
push eax
call fcn.0040446f
cmp ax, si
mov byte [esp + 0x1260], 1
lea eax, [esp + 0x64]
push eax
sete byte [esp + 0x1b]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [esp + 0x17], 0
je 0x40865a
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4081f1
lea eax, [esp + 0x38]
push eax
call fcn.00404400
push eax
lea ecx, [esp + 0x34]
call fcn.004041f9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408251
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Node
call fcn.004042e8
mov byte [esp + 0x1264], 3
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x4081f1
lea eax, [esp + 0x50]
mov byte [esp + 0x1264], 1
push eax
mov ecx, ebx
call fcn.004043a2
mov byte [esp + 0x1260], 4
and dword [esp + 0x40], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4081f1
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
call dword [ecx + 0x20]
xor edi, edi
mov dword [esp + 0x38], edi
cmp dword [esp + 0x40], edi
jle 0x408644
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4081f1
push edi
lea eax, [esp + 0x48]
push eax
call fcn.004042ac
push ecx
mov eax, esp
mov byte [esp + 0x1264], 5
mov esi, dword [esp + 0x48]
mov dword [eax], esi
test esi, esi
je 0x4082f0
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, 0x4332d8
call fcn.0040802b
mov dword [esp + 0x2c], eax
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x40830c
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, str._state
call fcn.0040802b
pop ecx
mov dword [esp + 0x50], eax
xor eax, eax
push 0xc6
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
call fcn.0041ba00
add esp, 0xc
push 0x64
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x408346
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea edx, [esp + 0x7c]
mov ecx, str._name
call fcn.00407eeb
and dword [esp + 0x28], 0
pop ecx
pop ecx
mov byte [esp + 0x1260], 6
test esi, esi
je 0x4081f1
and dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x30]
test eax, eax
js 0x40860e
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4081f1
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x20]
mov edi, dword [esp + 0x10]
shl edi, 2
push edi
call fcn.004182d8
pop ecx
push edi
mov dword [esp + 0x20], eax
call fcn.004182d8
pop ecx
push edi
mov dword [esp + 0x28], eax
call fcn.004182d8
mov edi, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
pop ecx
test edi, edi
jle 0x40840d
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
sub ecx, ebx
mov dword [esp + 0x2c], ecx
mov esi, ecx
push 0xc8
call fcn.004182d8
mov dword [esi + ebx], eax
mov dword [esp], 0x1048
call fcn.004182d8
mov dword [ebx], eax
lea ebx, [ebx + 4]
pop ecx
dec edi
jne 0x4083df
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x2c], edx
test edi, edi
jle 0x408590
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4081f1
push edx
lea eax, [esp + 0x60]
push eax
call fcn.004042ac
push ecx
mov eax, esp
mov byte [esp + 0x1264], 7
mov edi, dword [esp + 0x60]
mov dword [eax], edi
test edi, edi
je 0x408469
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, str._index
call fcn.0040802b
mov eax, esp
mov dword [eax], edi
test edi, edi
je 0x408481
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, str._state
call fcn.0040802b
pop ecx
mov dword [esp + 0x3c], eax
xor eax, eax
push 0xc6
push eax
mov word [esp + 0x144], ax
lea eax, [esp + 0x146]
push eax
call fcn.0041ba00
add esp, 0xc
push 0x64
push ecx
mov eax, esp
mov dword [eax], edi
test edi, edi
je 0x4084c1
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea edx, [esp + 0x144]
mov ecx, str._name
call fcn.00407eeb
xor eax, eax
push 0x1046
push eax
mov word [esp + 0x214], ax
lea eax, [esp + 0x216]
push eax
call fcn.0041ba00
add esp, 0x14
push 0x824
push ecx
mov eax, esp
mov dword [eax], edi
test edi, edi
je 0x408506
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea edx, [esp + 0x20c]
mov ecx, str._url
call fcn.00407eeb
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x20c]
push eax
mov eax, dword [esp + 0x24]
push 0x824
push dword [ecx + eax]
call fcn.0041814e
add esp, 0x14
lea eax, [esp + 0x13c]
push eax
mov eax, dword [esp + 0x1c]
push 0x64
push dword [eax]
call fcn.0041814e
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x1260], 6
mov dword [ecx + eax], edx
test edi, edi
je 0x408574
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
add eax, 4
mov edi, dword [esp + 0x10]
inc edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], eax
cmp edx, edi
jl 0x408437
push edi
push dword [esp + 0x4c]
lea eax, [esp + 0x7c]
push dword [esp + 0x2c]
push dword [esp + 0x28]
push dword [esp + 0x60]
push eax
push dword [esp + 0x40]
call fcn.00407bbb
and dword [esp + 0x28], 0
cmp dword [esp + 0x10], 0
jle 0x4085ec
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
sub esi, edi
mov ebx, dword [esp + 0x28]
push dword [edi + esi]
call fcn.0041836a
pop ecx
push dword [edi]
call fcn.0041836a
inc ebx
lea edi, [edi + 4]
pop ecx
cmp ebx, dword [esp + 0x10]
jl 0x4085c9
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
push dword [esp + 0x1c]
call fcn.0041836a
pop ecx
push dword [esp + 0x24]
call fcn.0041836a
pop ecx
push dword [esp + 0x48]
call fcn.0041836a
mov edi, dword [esp + 0x3c]
pop ecx
mov byte [esp + 0x1260], 5
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408624
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x1260], 4
mov eax, dword [esi]
push esi
call dword [eax + 8]
inc edi
mov dword [esp + 0x38], edi
cmp edi, dword [esp + 0x40]
jl 0x4082be
or esi, 0xffffffff
mov byte [esp + 0x1260], 1
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40865a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x1260], 0
test ebx, ebx
je 0x40866c
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [esp + 0x1260], esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x408681
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1240]
xor ecx, esp
call fcn.0041813f
mov esp, ebp
pop ebp
ret