Function at 0x10031b60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016950f
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov dword [esp + 0x30], ecx
xor esi, esi
push eax
xor ecx, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], esi
call fcn.10035ce0
add esp, 4
cmp eax, esi
jl 0x100320d5
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 0x14]
mov byte [esp + 0x16], al
test al, al
je 0x10031bf6
cmp ecx, 1
je 0x10031c0a
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
cmp eax, esi
jl 0x100320d5
push 0x11
push str.GDB_SystemCatalog
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
mov dword [esp + 0x38], edi
lea ecx, [ebx + 0x1e0]
mov dword [esp + 0xd0], esi
push esi
lea eax, [esp + 0x44]
mov dword [esp + 0x40], ecx
call fcn.100164f0
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], esi
cmp edi, esi
je 0x10031c4f
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
push esi
mov dword [esp + 0xd8], 1
mov dword [esp + 0x28], esi
push esi
lea esi, [esp + 0x2c]
call fcn.100163a0
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 2
mov edi, dword [esp + 0x20]
push ecx
push edi
mov ecx, ebx
call fcn.10033b20
mov esi, eax
test esi, esi
js 0x10031fb0
cmp esi, 1
je 0x10031cfe
cmp byte [esp + 0x17], 0
jne 0x10031cad
mov esi, 0x80040353
jmp 0x10031fb0
push 0
push 0
push 0
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.100163a0
mov byte [esp + 0xd0], 3
mov edx, dword [esp + 0x24]
push 1
push edx
mov edi, esi
call fcn.10034320
mov ecx, esi
call fcn.1004a350
mov esi, eax
mov eax, edi
mov byte [esp + 0xd0], 2
call fcn.100164d0
test esi, esi
js 0x10031fb0
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
je 0x10031e1a
cmp dword [esp + 0x28], 1
jne 0x10031d44
mov eax, dword [edi]
mov ecx, dword [eax - 4]
push ecx
push eax
mov esi, 0x8004056f
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
push edi
push esi
push 0x1044ebe0
call fcn.10025150
test edi, edi
je 0x10031fb0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10031fb0
push 0
push 0
push 0
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.100163a0
mov byte [esp + 0xd0], 4
cmp dword [ebx + 0x28], 1
mov edx, esi
jle 0x10031d79
mov eax, dword [esp + 0x24]
push eax
push 0x64
push str._c_08x.gdbtable
jmp 0x10031d85
mov ecx, dword [esp + 0x24]
push ecx
push 0x64
push str._c_07x.gdbtable
call fcn.10016c90
mov eax, dword [esp + 0x34]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.10049d90
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x10031dc0
lea eax, [esp + 0x10]
mov byte [esp + 0xd0], 2
call fcn.100164d0
jmp 0x10031fb0
mov edx, str.DELTA
lea esi, [esp + 0x38]
call fcn.10017360
mov byte [esp + 0xd0], 5
mov eax, dword [eax]
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10031dfc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x10]
mov byte [esp + 0xd0], 2
call fcn.100164d0
test esi, esi
js 0x10031fb0
jmp 0x10032013
lea esi, [esp + 0x3c]
call fcn.10024a20
mov esi, eax
test esi, esi
js 0x10031fb0
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x28], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x80]
call edx
inc eax
cmp dword [ebx + 0x28], 1
push eax
mov dword [esp + 0x28], eax
lea edx, [esp + 0x24]
push 0x61
jle 0x10031e5b
push str._c_08x.gdbtable
jmp 0x10031e60
push str._c_07x.gdbtable
call fcn.10016c90
mov ecx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
lea ecx, [esp + 0x2c]
call fcn.10049d90
mov esi, eax
add esp, 0xc
test esi, esi
js 0x10031fb0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x38]
push eax
call edx
mov esi, eax
test esi, esi
js 0x10031fb0
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add ecx, 0x18
push ecx
call edi
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x18]
mov ecx, 8
mov word [eax + 0x18], cx
mov eax, dword [edx]
mov ecx, dword [eax - 4]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 8]
add ecx, 0x30
push ecx
call edi
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 8]
mov ecx, 3
mov word [eax + 0x30], cx
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x38], ecx
cmp dword [ebx + 0x28], 4
jge 0x10031f80
mov esi, dword [esp + 0x1c]
add esi, 0x18
lea ecx, [ebx + 0x18]
lea eax, [esp + 0x4c]
call fcn.10030010
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
push 0x28
mov dword [esp + 0x68], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x74], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 8]
add ecx, 0x48
push ecx
call edi
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 8]
lea edx, [esp + 0x6c]
mov ecx, 8
push edx
mov word [eax + 0x48], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + 8]
mov dword [edx + 0x50], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xa0]
push 1
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ebx + 0x14]
mov edx, dword [edx + 8]
push edx
call eax
mov esi, eax
test esi, esi
jns 0x1003200f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push 1
call eax
cmp byte [esp + 0x16], 0
jne 0x10031fc3
mov ebx, dword [ebx + 0x10]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10031fd3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10031ff3
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x10031ff3
add eax, 0xfffffff4
dec dword [eax]
jne 0x10031ff3
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0xd4], 0xffffffff
call fcn.10024970
mov eax, esi
jmp 0x100320d5
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x16], 0
jne 0x10032024
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
mov edx, dword [eax + 0xd8]
push ecx
mov ecx, edi
call edx
cmp dword [esp + 0x30], 0
je 0x100320ab
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov esi, 1
add dword [eax - 0xc], esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0xd0], 6
call fcn.10016cb0
push 0xc
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x10032080
mov dword [eax], 0
mov dword [eax + 4], esi
mov dword [eax + 8], 0
jmp 0x10032082
xor eax, eax
mov edx, dword [esp + 0x18]
push eax
mov dword [eax], edi
mov ecx, dword [esp + 0x28]
push edx
add ebx, 0x2c
push ebx
mov dword [eax + 8], ecx
call fcn.10036580
mov eax, dword [esp + 0x30]
mov dword [eax], edi
lea eax, [esp + 0x18]
call fcn.100164d0
jmp 0x100320b5
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
lea eax, [esp + 0x20]
call fcn.100164d0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0xd4], 0xffffffff
call fcn.10024970
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 0x10