Function at 0x45e8c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
push ebx
push esi
xor eax, eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45ece4
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, dword [0x4a220c]
mov eax, dword [eax]
call fcn.00408de4
mov eax, dword [0x4a2790]
mov eax, dword [eax]
dec eax
je 0x45e927
dec eax
je 0x45e9b1
jmp case.default.0x45eb88
mov eax, dword [0x4a2574]
mov eax, dword [eax]
sub eax, 0xa
jb 0x45e93f
sub eax, 0x50
jb 0x45e96b
je 0x45e9aa
jmp case.default.0x45eb88
mov eax, dword [ebp - 4]
mov edx, 0x45ecfc
call fcn.00404a74
je 0x45e95d
mov eax, dword [ebp - 4]
mov edx, 0x45ed08
call fcn.00404a74
jne 0x45e964
mov bl, 2
jmp case.default.0x45eb88
mov bl, 1
jmp case.default.0x45eb88
cmp dword [0x4a3c60], 0x4005a
jne 0x45e97e
mov bl, 5
jmp case.default.0x45eb88
mov eax, dword [ebp - 4]
mov edx, 0x45ed14
call fcn.00404a74
je 0x45e99c
mov eax, dword [ebp - 4]
mov edx, 0x45ecfc
call fcn.00404a74
jne 0x45e9a3
mov bl, 4
jmp case.default.0x45eb88
mov bl, 3
jmp case.default.0x45eb88
mov bl, 5
jmp case.default.0x45eb88
mov eax, dword [0x4a2250]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x45eb88
jmp dword [eax*4 + 0x45e9cb]
mov eax, dword [0x4a2574]
mov eax, dword [eax]
dec eax
je 0x45ea04
sub eax, 4
je 0x45ea0b
sub eax, 0x2e
je 0x45ea12
jmp case.default.0x45eb88
mov bl, 6
jmp case.default.0x45eb88
mov bl, 7
jmp case.default.0x45eb88
mov bl, 8
jmp case.default.0x45eb88
mov bl, 9
jmp case.default.0x45eb88
mov eax, dword [0x4a2574]
mov eax, dword [eax]
sub eax, 1
jb 0x45ea36
je 0x45ea3d
dec eax
je 0x45ea44
jmp case.default.0x45eb88
mov bl, 0xa
jmp case.default.0x45eb88
mov bl, 0xb
jmp case.default.0x45eb88
mov dword [ebp - 0xc8], 0x9c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.0045f04c
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x45ea6d
mov bl, 0xe
jmp case.default.0x45eb88
cmp word [ebp - 0x2c], 0
je 0x45ea91
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45ea91
cmp byte [ebp - 0x2e], 1
jne 0x45ea91
mov bl, 0xd
jmp case.default.0x45eb88
mov bl, 0xc
jmp case.default.0x45eb88
mov eax, dword [0x4a2574]
cmp dword [eax], 2
jne 0x45eb78
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x45ed20
mov edx, 0x45ed34
mov eax, 0x80000002
call fcn.004633f8
lea edx, [ebp - 0xcc]
mov eax, dword [0x4a24fc]
call fcn.0040697c
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp - 8]
call fcn.00404c6c
dec eax
je 0x45eb02
lea edx, [ebp - 0xd0]
mov eax, dword [0x4a257c]
call fcn.0040697c
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 8]
call fcn.00404c6c
dec eax
jne 0x45eb09
mov eax, 3
jmp 0x45eb7f
lea edx, [ebp - 0xd4]
mov eax, dword [0x4a26b8]
call fcn.0040697c
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 8]
call fcn.00404c6c
dec eax
je 0x45eb4b
lea edx, [ebp - 0xd8]
mov eax, dword [0x4a2708]
call fcn.0040697c
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 8]
call fcn.00404c6c
dec eax
jne 0x45eb52
mov eax, 2
jmp 0x45eb7f
call fcn.0045ed64
mov esi, eax
cmp esi, 6
jne 0x45eb65
mov eax, 4
jmp 0x45eb7f
cmp esi, 0xa
jne 0x45eb6f
or eax, 0xffffffff
jmp 0x45eb7f
mov eax, dword [0x4a2574]
mov eax, dword [eax]
jmp 0x45eb7f
mov eax, dword [0x4a2574]
mov eax, dword [eax]
cmp eax, 4
ja case.default.0x45eb88
jmp dword [eax*4 + 0x45eb8f]
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45ebca
cmp byte [ebp - 0x2e], 1
jne 0x45ebca
mov bl, 0xf
jmp case.default.0x45eb88
mov bl, 0x10
jmp case.default.0x45eb88
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45ebf8
cmp byte [ebp - 0x2e], 1
jne 0x45ebf8
mov bl, 0x11
jmp case.default.0x45eb88
mov bl, 0x12
jmp case.default.0x45eb88
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45ec23
cmp byte [ebp - 0x2e], 1
jne 0x45ec23
mov bl, 0x13
jmp case.default.0x45eb88
mov bl, 0x15
jmp case.default.0x45eb88
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45ec4b
cmp byte [ebp - 0x2e], 1
jne 0x45ec4b
mov bl, 0x16
jmp case.default.0x45eb88
mov bl, 0x18
jmp case.default.0x45eb88
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45ec73
cmp byte [ebp - 0x2e], 1
jne 0x45ec73
mov bl, 0x19
jmp case.default.0x45eb88
mov bl, 0x1a
jmp case.default.0x45eb88
mov esi, dword [0x4a2250]
mov esi, dword [esi]
cmp esi, 0xa
jl 0x45ecb9
sub esi, 0xa
jne 0x45ecb9
call fcn.0045eed8
sub eax, 1
jae 0x45ecb9
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45ecb7
cmp byte [ebp - 0x2e], 1
jne 0x45ecb7
mov bl, 0x19
jmp 0x45ecb9
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eceb
lea eax, [ebp - 0xd8]
mov edx, 4
call fcn.0040468c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040468c
ret