Function at 0x545efc
Capabilities:
Check os version
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff2e4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xd1c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x546218
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0xffffffff
mov eax, dword [0x561fc8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xac], 6
jb 0x5461e3
push 0x546228
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
cmp esi, 0x20
jb 0x5461e3
push 0x546238
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5461e3
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, 0x60
call fcn.004035ec
mov dword [ebp - 0x110], 0x60
mov eax, dword [0x561fc8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x54607d
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x545b84]
call fcn.00406574
add esp, 4
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x545bbc]
call fcn.00406574
add esp, 4
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x546066
inc eax
mov dword [ebp - 0x1c], eax
xor esi, esi
lea ecx, [ebp - 0xd1c]
mov edx, esi
mov eax, dword [ebx + 0x5c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xd1c]
mov edx, esi
shl edx, 9
add edx, esi
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + edx*2]
mov ecx, 0x402
call fcn.004060c8
mov eax, esi
shl eax, 9
add eax, esi
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*2]
mov edx, dword [ebp - 0x14]
mov dword [edx + esi*8 + 4], eax
lea eax, [esi + 0x64]
mov edx, dword [ebp - 0x14]
mov dword [edx + esi*8], eax
inc esi
dec dword [ebp - 0x1c]
jne 0x546016
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xe8], eax
cmp dword [ebx + 0x30], 0
je 0x5460a2
lea edx, [ebp - 0x512]
mov ecx, 0x402
mov eax, dword [ebx + 0x30]
call fcn.004060c8
lea eax, [ebp - 0x512]
mov dword [ebp - 0xfc], eax
cmp dword [ebx + 0x3c], 0
je 0x5460d9
lea eax, [ebp - 0x914]
xor ecx, ecx
mov edx, 0x402
call fcn.004035ec
lea edx, [ebp - 0x914]
mov ecx, 0x402
mov eax, dword [ebx + 0x3c]
call fcn.004060c8
lea eax, [ebp - 0x914]
mov dword [ebp - 0xf4], eax
cmp dword [ebx + 0x34], 0
je 0x546110
lea eax, [ebp - 0xd16]
xor ecx, ecx
mov edx, 0x402
call fcn.004035ec
lea edx, [ebp - 0xd16]
mov ecx, 0x402
mov eax, dword [ebx + 0x34]
call fcn.004060c8
lea eax, [ebp - 0xd16]
mov dword [ebp - 0xf0], eax
xor eax, eax
mov al, byte [ebx + 0xb8]
cmp eax, 7
ja case.0x54611d.0
jmp dword [eax*4 + 0x546124]
mov dword [ebp - 0xf8], 0xfffd
jmp case.0x54611d.0
mov dword [ebp - 0xf8], 0x63
jmp case.0x54611d.0
mov dword [ebp - 0xf8], 0x62
jmp case.0x54611d.0
mov dword [ebp - 0xf8], 0x68
jmp case.0x54611d.0
mov dword [ebp - 0xf8], 0x69
jmp case.0x54611d.0
mov dword [ebp - 0xf8], 0x6a
jmp case.0x54611d.0
mov dword [ebp - 0xf8], 0x6b
mov dword [ebp - 0xbc], 0x545bf8
mov dword [ebp - 0xb8], ebx
mov eax, dword [ebx + 0xbc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebx + 0xc0]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [ebx + 0x50], eax
mov al, byte [ebp - 9]
mov byte [ebx + 0x54], al
mov edi, dword [ebp - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54621f
lea eax, [ebp - 0xd1c]
call fcn.00404f44
lea eax, [ebp - 0x18]
mov edx, dword [0x545bbc]
call fcn.00406680
lea eax, [ebp - 0x14]
mov edx, dword [0x545b84]
call fcn.00406680
ret