Function at 0x457c70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a39d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
push ebp
push 0x82
mov dword [esp + 0x30], ebp
call fcn.0041c180
add esp, 8
mov edi, eax
push ebp
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, eax
cmp esi, ebp
je 0x4582bd
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x457cde
mov dword [esp + 0x28], 1
jmp 0x457ce6
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
push ebp
push 0x83
push esi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push esi
mov ecx, ebx
call fcn.00440510
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
cmp dword [0x4d8ab8], ebp
je 0x457d13
push 1
push 0x8a
push esi
call edi
cmp dword [0x4d8ab4], ebp
je 0x457d25
push 1
push 0x8010
push esi
call edi
mov ecx, 0x4d7d50
call fcn.0040c8f0
test eax, eax
je 0x457e01
mov edi, dword [sym.imp.USER32.dll_InsertMenuW]
push ebp
push ebp
push 0x800
push 0xa9
push esi
call edi
push 1
push ebp
mov ecx, 0x4d7d50
call fcn.0040d6f0
push 1
lea ecx, [esp + 0x30]
push 0x139
push ecx
mov ebp, eax
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0xc
xor edx, edx
test ebp, ebp
sete dl
push eax
push 0x66
mov ebp, edx
push ebp
push 0xa9
push esi
call edi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x457da6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
lea ecx, [esp + 0x34]
push 0x13a
push ecx
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x67
push ebp
push 0xa9
push esi
call edi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457de8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0x800
push 0xa9
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
xor ebp, ebp
call fcn.00468b49
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x457e1b
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], ebp
call fcn.00468b49
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x457e49
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 1
call fcn.00468b49
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x457e78
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x44], 2
call fcn.00468b49
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x457ea7
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov byte [esp + 0x54], 3
call fcn.004412c0
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
xor ecx, ecx
cmp eax, ebp
sete cl
push ecx
push 0x97
push esi
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
xor ecx, ecx
cmp eax, ebp
sete cl
push ecx
push 0x98
push esi
call edi
cmp dword [0x4d7df0], ebp
je 0x457f17
push 1
push 0x802b
push esi
call edi
push ebp
push ebp
mov ecx, 0x4d7d14
call fcn.004135b0
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
test eax, eax
jne 0x457f36
push ebp
push 0x800d
push esi
call edi
call fcn.0043b8c0
cmp eax, 1
jg 0x457f49
push ebp
push 0x8010
push esi
call edi
cmp ebx, ebp
jne 0x457f51
xor eax, eax
jmp 0x457f54
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, ebp
jne 0x457f6b
xor eax, eax
jmp 0x457f6e
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
push ebp
push eax
mov eax, dword [esp + 0x3c]
push ebp
push edx
push eax
push 0x1908
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ecx, dword [ebx + 0x20]
push ebp
push ebp
push ebp
push ecx
mov esi, eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp esi, 0x800d
jg 0x4581c1
je 0x45819e
lea eax, [esi - 0x65]
cmp eax, 0x4a
ja case.0x4581d3.32785
movzx edx, byte [eax + 0x458334]
jmp dword [edx*4 + 0x4582e0]
push ebp
push 1
push 1
mov ecx, ebx
call fcn.0043ce90
jmp case.0x4581d3.32785
push ebp
push 1
mov ecx, ebx
call fcn.00456190
jmp case.0x4581d3.32785
push ebp
push ebp
mov ecx, ebx
call fcn.00456190
jmp case.0x4581d3.32785
push 1
push 1
mov ecx, ebx
call fcn.00456190
jmp case.0x4581d3.32785
xor eax, eax
cmp dword [ebx + 0xe24], ebp
sete al
mov dword [ebx + 0xe24], eax
jmp case.0x4581d3.32785
xor ecx, ecx
cmp dword [ebx + 0xe1c], ebp
sete cl
mov dword [ebx + 0xe1c], ecx
jmp case.0x4581d3.32785
xor edx, edx
cmp dword [ebx + 0xe20], ebp
sete dl
mov dword [ebx + 0xe20], edx
jmp case.0x4581d3.32785
call fcn.00439a90
jmp case.0x4581d3.32785
push 0x4b9c88
call fcn.0043edb0
add esp, 4
test eax, eax
je case.0x4581d3.32785
push 1
mov ecx, ebx
call fcn.00444d10
cmp eax, 1
jne case.0x4581d3.32785
push eax
push ebp
push eax
mov ecx, ebx
call fcn.0043ce90
jmp case.0x4581d3.32785
mov ecx, ebx
call fcn.004408f0
jmp case.0x4581d3.32785
mov ecx, ebx
call fcn.00446b70
jmp case.0x4581d3.32785
push 1
push ebp
mov ecx, ebx
mov dword [0x4d8ab8], 1
call fcn.0044cc90
mov dword [0x4d8ab8], ebp
jmp case.0x4581d3.32785
mov ecx, 0x4d7c58
call fcn.004203b0
jmp case.0x4581d3.32785
mov ecx, ebx
call fcn.004509e0
jmp case.0x4581d3.32785
mov ecx, ebx
call fcn.00450b80
jmp case.0x4581d3.32785
push str.TryRunFileItem2
call fcn.0043edb0
add esp, 4
test eax, eax
je case.0x4581d3.32785
mov eax, dword [0x4d8770]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ebp
push eax
push ecx
push edx
call fcn.004328a0
add esp, 0x10
jmp case.0x4581d3.32785
push str.TryRunFileItem3
call fcn.0043edb0
add esp, 4
test eax, eax
je case.0x4581d3.32785
mov eax, dword [0x4d8774]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ebp
push eax
push ecx
push edx
call fcn.004328a0
add esp, 0x10
jmp case.0x4581d3.32785
mov ecx, 0x4d7c58
call fcn.00420680
jmp case.0x4581d3.32785
push str.OpenEventLog
call fcn.0043edb0
add esp, 4
test eax, eax
je case.0x4581d3.32785
mov ecx, 0x4d7d50
call fcn.0040d060
test eax, eax
jmp 0x458216
push str.ExportEventLog
call fcn.0043edb0
add esp, 4
test eax, eax
je case.0x4581d3.32785
mov ebx, dword [ebx + 0x20]
push ebx
call fcn.00430300
jmp 0x45821f
push str.CloseAllSchedules
call fcn.0043edb0
add esp, 4
test eax, eax
je case.0x4581d3.32785
mov ebx, dword [ebx + 0x20]
push ebp
push ebx
call fcn.00430810
add esp, 8
cmp eax, 0xffffffff
jmp 0x458216
lea eax, [esi - 0x8010]
cmp eax, 0x22
ja case.0x4581d3.32785
movzx eax, byte [eax + 0x45839c]
jmp dword [eax*4 + 0x458380]
call fcn.004399c0
jmp case.0x4581d3.32785
call fcn.00434790
jmp case.0x4581d3.32785
call fcn.004313f0
jmp case.0x4581d3.32785
call fcn.00431430
jmp case.0x4581d3.32785
call fcn.00431220
test eax, eax
jmp 0x458216
mov dword [0x4d8ab4], 1
call fcn.004510a0
mov dword [0x4d8ab4], ebp
cmp eax, ebp
jne case.0x4581d3.32785
push 0x10
call fcn.0041bd20
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45826c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458291
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4582b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
cmp edi, ebp
je 0x4582c8
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret