Function at 0x40a6e0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44e9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4655f0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
xor ecx, ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x18], ecx
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 0x8f8]
cmp eax, ebx
je 0x40a74d
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebx
setge al
test al, al
jne 0x40a779
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov esi, dword [esp + 0x8c]
mov word [esi], 0xb
mov word [esi + 8], bx
mov byte [esp + 0x80], 0
je 0x40a771
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
or ebp, 0xffffffff
jmp 0x40aa0e
mov esi, dword [esp + 0x90]
push esi
lea ecx, [esp + 0x8c]
call fcn.0040d3c0
lea edx, [esp + 0x28]
push edx
push 0x800
push 1
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x38], ebx
mov ecx, dword [eax]
push 0x4566e8
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
jge 0x40a822
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
push ecx
mov word [edi], 0xb
mov word [edi + 8], bx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a7f8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
or ebp, 0xffffffff
lea eax, [esi - 0x10]
mov dword [esp + 0x80], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40a81b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40aa37
mov edi, dword [esp + 0x94]
mov ebp, dword [edi + 8]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
xor ecx, ecx
mov eax, ebp
mov edx, 0x10
mul edx
seto cl
mov dword [esp + 0x3c], ebp
neg ecx
or ecx, eax
push ecx
call fcn.004181ca
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
jle 0x40a91b
lea eax, [ebp - 1]
lea ecx, [ebp*4 - 4]
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x40a89b
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x20]
cmp eax, ebx
jl 0x40a9bc
cmp eax, dword [edi + 8]
jge 0x40a9bc
mov eax, dword [edi + 4]
add eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
mov eax, dword [eax]
push eax
call fcn.0040d3c0
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
lea ebx, [esi + edx + 8]
test ebx, ebx
je 0x40a8e8
test edi, edi
jne 0x40a8d7
xor eax, eax
jmp 0x40a8e6
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
push edi
mov word [esi + eax], 8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x24]
sub dword [esp + 0x1c], 4
sub dword [esp + 0x20], 1
add eax, 1
add esi, 0x10
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x24], eax
jl 0x40a890
xor eax, eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
mov byte [esp + 0x94], 3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
push ebx
push 0x4566e8
or ebp, 0xffffffff
mov dword [esp + 0x4c], ebp
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x34]
push eax
call fcn.004181cf
add esp, 4
lea ecx, [esp + 0x44]
cmp esi, ebx
mov esi, dword [esp + 0x8c]
push ecx
jge 0x40a9c1
mov word [esi], 0xb
mov word [esi + 8], bx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [esp + 0x88]
push edx
jmp 0x40a9f0
call fcn.0041882b
push esi
mov word [esi], bx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x40a9dd
push eax
mov word [esi], 0xa
mov dword [esi + 8], eax
call fcn.00401640
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40aa0e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x80], ebp
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40aa35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0x10