Function at 0x407bd0
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 0x407c94
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x407c86
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 0x407cb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x407d2e
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 0x407d2a
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 0x407d85
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x407d77
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 0x407daa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x407e2d
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 0x69
push eax
call fcn.0042e4d0
push str.Bar3
lea ecx, [esp + 0x54]
push ebx
push ecx
call fcn.0042e4d0
push str.BarID
lea edx, [esp + 0x60]
push 0xe81c
push edx
call fcn.0042e4d0
push str.Bars
lea eax, [esp + 0x6c]
push 4
push eax
call fcn.0042e4d0
mov eax, dword [esp + 0x74]
add esp, 0x48
cmp eax, ebx
je 0x407e29
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_Bar4
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 0x407e84
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x407e76
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 0x407ea9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x407fa1
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 0x146
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 0x407f9d
push eax
call edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push str.Bar_State_Bar5
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 0x407ff8
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x407fea
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 0x40801d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x40811f
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 0x291
push eax
call fcn.0042e4d0
push str.MRUDockID
lea ecx, [esp + 0x54]
push 0xe81c
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 0xe1
push eax
call fcn.0042e4d0
add esp, 0x48
push str.MRUDockTopPos
lea ecx, [esp + 0x30]
push 0x148
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 0x148
push eax
call fcn.0042e4d0
mov eax, dword [esp + 0x74]
add esp, 0x48
cmp eax, ebx
je 0x40811b
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 0x408176
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408168
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 0x40819b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x408240
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 0xe1
push ecx
call fcn.0042e4d0
push str.sizeHorzCY
lea edx, [esp + 0x60]
push 0x50
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 0x149
push ecx
call fcn.0042e4d0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x40823c
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 0x408297
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x408289
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 0x4082bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x408361
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 0x148
push ecx
call fcn.0042e4d0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, ebx
je 0x40835d
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 0x4083b8
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x4083aa
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 0x4083dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x408432
push str.Bars
lea ecx, [esp + 0x30]
push 6
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 0x40842e
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 0x408452
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 0x40845d
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