Function at 0x408480
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x579690
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov eax, dword [0x5ee8b4]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x44], ebx
call fcn.00402a50
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], ebp
mov ecx, esi
mov byte [esp + 0x40], 1
call fcn.00407660
push str.Bar_State_Bar2
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403710
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x408544
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408536
push ecx
call edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408569
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x4085de
push str.Bar0
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0042e4d0
push str.Bar1
lea edx, [esp + 0x3c]
push 0xe800
push edx
call fcn.0042e4d0
push str.Bar2
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0042e4d0
push str.BarID
lea ecx, [esp + 0x54]
push 0xe81b
push ecx
call fcn.0042e4d0
push str.Bars
lea edx, [esp + 0x60]
push 3
push edx
call fcn.0042e4d0
mov eax, dword [esp + 0x68]
add esp, 0x3c
cmp eax, ebx
je 0x4085da
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_Bar3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
cmp eax, ebx
jne 0x408635
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408627
push ecx
call edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40865a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x4086cc
push str.Bar0
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0042e4d0
push str.Bar1
lea edx, [esp + 0x3c]
push 0x69
push edx
call fcn.0042e4d0
push str.Bar2
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0042e4d0
push str.BarID
lea ecx, [esp + 0x54]
push 0xe81e
push ecx
call fcn.0042e4d0
push str.Bars
lea edx, [esp + 0x60]
push 3
push edx
call fcn.0042e4d0
mov eax, dword [esp + 0x68]
add esp, 0x3c
cmp eax, ebx
je 0x4086c8
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_Bar4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
cmp eax, ebx
jne 0x408723
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408715
push ecx
call edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x4087ba
push str.Bar0
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0042e4d0
push str.Bar1
lea edx, [esp + 0x3c]
push 0x6a
push edx
call fcn.0042e4d0
push str.Bar2
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0042e4d0
push str.BarID
lea ecx, [esp + 0x54]
push 0xe81c
push ecx
call fcn.0042e4d0
push str.Bars
lea edx, [esp + 0x60]
push 3
push edx
call fcn.0042e4d0
mov eax, dword [esp + 0x68]
add esp, 0x3c
cmp eax, ebx
je 0x4087b6
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_Bar5
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
cmp eax, ebx
jne 0x408811
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408803
push ecx
call edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408836
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x40892e
push str.BarID
lea ecx, [esp + 0x30]
push 0x6a
push ecx
call fcn.0042e4d0
push str.Docking
lea edx, [esp + 0x3c]
push 1
push edx
call fcn.0042e4d0
push str.MRUDockBottomPos
lea eax, [esp + 0x48]
push 0x141
push eax
call fcn.0042e4d0
push str.MRUDockID
lea ecx, [esp + 0x54]
push ebx
push ecx
call fcn.0042e4d0
push str.MRUDockLeftPos
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0042e4d0
push str.MRUDockRightPos
lea eax, [esp + 0x6c]
push 0x1d1
push eax
call fcn.0042e4d0
add esp, 0x48
push str.MRUDockTopPos
lea ecx, [esp + 0x30]
push 0xfffffffffffffffe
push ecx
call fcn.0042e4d0
push str.MRUFloatStyle
lea edx, [esp + 0x3c]
push 4
push edx
call fcn.0042e4d0
push str.MRUFloatXPos
lea eax, [esp + 0x48]
push SysReAllocString
push eax
call fcn.0042e4d0
push str.MRUFloatYPos
lea ecx, [esp + 0x54]
push 0xcdcdcdcd
push ecx
call fcn.0042e4d0
push str.XPos
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0042e4d0
push str.YPos
lea eax, [esp + 0x6c]
push 0xfffffffffffffffe
push eax
call fcn.0042e4d0
mov eax, dword [esp + 0x74]
add esp, 0x48
cmp eax, ebx
je 0x40892a
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_Bar6
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
cmp eax, ebx
jne 0x408985
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408977
push ecx
call edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4089aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x408aa9
push str.BarID
lea ecx, [esp + 0x30]
push 0x69
push ecx
call fcn.0042e4d0
push str.Docking
lea edx, [esp + 0x3c]
push 1
push edx
call fcn.0042e4d0
push str.MRUDockBottomPos
lea eax, [esp + 0x48]
push 0x14c
push eax
call fcn.0042e4d0
push str.MRUDockID
lea ecx, [esp + 0x54]
push 0xe81e
push ecx
call fcn.0042e4d0
push str.MRUDockLeftPos
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0042e4d0
push str.MRUDockRightPos
lea eax, [esp + 0x6c]
push 0x400
push eax
call fcn.0042e4d0
add esp, 0x48
push str.MRUDockTopPos
lea ecx, [esp + 0x30]
push 0xfffffffffffffffe
push ecx
call fcn.0042e4d0
push str.MRUFloatStyle
lea edx, [esp + 0x3c]
push 0x1000
push edx
call fcn.0042e4d0
push str.MRUFloatXPos
lea eax, [esp + 0x48]
push 0x3b8
push eax
call fcn.0042e4d0
push str.MRUFloatYPos
lea ecx, [esp + 0x54]
push 0xdc
push ecx
call fcn.0042e4d0
push str.XPos
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0042e4d0
push str.YPos
lea eax, [esp + 0x6c]
push 0xfffffffffffffffe
push eax
call fcn.0042e4d0
mov eax, dword [esp + 0x74]
add esp, 0x48
cmp eax, ebx
je 0x408aa5
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_SCBar_105
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
cmp eax, ebx
jne 0x408b00
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408af2
push ecx
call edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408b25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x408bcd
push str.Expanded
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0042e4d0
push str.sizeFloatCX
lea edx, [esp + 0x3c]
push 0xe1
push edx
call fcn.0042e4d0
push str.sizeFloatCY
lea eax, [esp + 0x48]
push 0x50
push eax
call fcn.0042e4d0
push str.sizeHorzCX
lea ecx, [esp + 0x54]
push 0x400
push ecx
call fcn.0042e4d0
push str.sizeHorzCY
lea edx, [esp + 0x60]
push 0x14e
push edx
call fcn.0042e4d0
push str.sizeVertCX
lea eax, [esp + 0x6c]
push 0x1d1
push eax
call fcn.0042e4d0
add esp, 0x48
push str.sizeVertCY
lea ecx, [esp + 0x30]
push 0x207
push ecx
call fcn.0042e4d0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x408bc9
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_SCBar_106
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
cmp eax, ebx
jne 0x408c24
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408c16
push ecx
call edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x408cee
push str.Expanded
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0042e4d0
push str.sizeFloatCX
lea edx, [esp + 0x3c]
push 0xe1
push edx
call fcn.0042e4d0
push str.sizeFloatCY
lea eax, [esp + 0x48]
push 0x64
push eax
call fcn.0042e4d0
push str.sizeHorzCX
lea ecx, [esp + 0x54]
push 0xe1
push ecx
call fcn.0042e4d0
push str.sizeHorzCY
lea edx, [esp + 0x60]
push 0x64
push edx
call fcn.0042e4d0
push str.sizeVertCX
lea eax, [esp + 0x6c]
push 0x1d1
push eax
call fcn.0042e4d0
add esp, 0x48
push str.sizeVertCY
lea ecx, [esp + 0x30]
push 0x143
push ecx
call fcn.0042e4d0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x408cea
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_Summary
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x44], ebx
call esi
cmp eax, ebx
jne 0x408d45
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408d37
push ecx
call edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov eax, dword [esp + 0x24]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x408dbf
push str.Bars
lea ecx, [esp + 0x30]
push 7
push ecx
call fcn.0042e4d0
push str.ScreenCX
lea edx, [esp + 0x3c]
push 0x400
push edx
call fcn.0042e4d0
push str.ScreenCY
lea eax, [esp + 0x48]
push 0x300
push eax
call fcn.0042e4d0
mov eax, dword [esp + 0x50]
add esp, 0x24
cmp eax, ebx
je 0x408dbb
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea eax, [ebp - 0x10]
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ddf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x408dea
push eax
call edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret