Function at 0x456180
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456528
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x45650a
mov eax, dword [ebp - 4]
add eax, 0x50
call fcn.00405438
mov eax, dword [ebp - 4]
add eax, 0x54
call fcn.00405438
mov eax, dword [ebp - 4]
add eax, 0x58
call fcn.00405438
mov eax, dword [ebp - 4]
add eax, 0x5c
call fcn.00405438
mov eax, dword [ebp - 4]
add eax, 0x60
call fcn.00405438
mov eax, dword [ebp - 4]
add eax, 0x4c
call fcn.00405438
mov eax, dword [ebp - 4]
call fcn.00454e90
push 0
push 0x456538
push 0x456544
call sub.kernel32.dll_GetProfileIntA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x45622b
push 0x45654c
push 0x456538
push 0x456544
call sub.kernel32.dll_WriteProfileStringA
xor edx, edx
push ebp
push 0x456503
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 1
jne 0x45627f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
push 0xf0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x140
xor edx, edx
xor eax, eax
call fcn.0040ecec
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor ecx, ecx
xor edx, edx
call fcn.0045670c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, esi
call fcn.0040ecec
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x24]
lea edi, [eax + 0x64]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.00404220
mov eax, dword [ebp - 0x28]
call fcn.00404230
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
call fcn.004549dc
xor edx, edx
push ebp
push 0x4564c5
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x45644d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.0042afcc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [eax]
call dword [eax + 0x74]
call fcn.00405534
push 0x40000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.00405534
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [eax]
call dword [eax + 0xb0]
call fcn.00405534
mov eax, dword [ebp - 4]
call fcn.0045610c
mov eax, dword [ebp - 4]
mov byte [eax + 0xa8], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00405534
xor edx, edx
push ebp
push 0x456389
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x64
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00405534
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4563ad
mov eax, dword [ebp - 0xc]
dec eax
sub eax, 3
jb 0x456443
mov eax, dword [ebp - 4]
call fcn.004554d4
mov eax, dword [0x49ad90]
mov eax, dword [eax]
cmp byte [eax + 0x8d], 0
jne 0x456352
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00405534
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [eax]
call dword [eax + 0xb0]
call fcn.00405534
mov eax, dword [ebp - 4]
call fcn.004554d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.0042afcc
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
jne 0x4563f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00405534
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [eax]
call dword [eax + 0xb0]
call fcn.00405534
jmp 0x456352
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45646b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4564cc
mov eax, dword [ebp - 4]
mov byte [eax + 0xa8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.00405534
push 0
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0040ecec
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x24]
lea edi, [eax + 0x64]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045610c
mov eax, dword [ebp - 4]
call fcn.004560dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45652f
lea eax, [ebp - 0x2c]
call fcn.00403ae8
lea eax, [ebp - 0x28]
call fcn.00404118
ret