Function at 0x4aa460
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57764a
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1bc], 0x11c
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x4aa4f2.3
lea ecx, [ebp - 0x1e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x1e8]
sub eax, 4
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 6
ja case.0x4aa4f2.3
mov ecx, dword [ebp - 0x1e8]
jmp dword [ecx*4 + 0x4aaa28]
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1ec], edx
cmp dword [ebp - 0x1ec], 0
je 0x4aa529
cmp dword [ebp - 0x1ec], 0xa
je 0x4aa595
cmp dword [ebp - 0x1ec], 0x5a
je 0x4aa5c2
jmp 0x4aa5ed
cmp dword [ebp - 0x1ac], 2
jne 0x4aa55f
push str.Windows_NT_4.0
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
cmp dword [ebp - 0x1ac], 1
jne 0x4aa593
push str.Windows_95
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1e4]
or ecx, 1
mov dword [ebp - 0x1e4], ecx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
jmp 0x4aa5ed
push str.Windows_98
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1e4]
or edx, 1
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push str.Windows_Me
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
jmp case.0x4aa4f2.3
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1f0], ecx
cmp dword [ebp - 0x1f0], 0
je 0x4aa61e
cmp dword [ebp - 0x1f0], 1
je 0x4aa64e
cmp dword [ebp - 0x1f0], 2
je 0x4aa67b
jmp 0x4aa6f7
push 0x59819c
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1e4]
or edx, 1
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push 0x5981ac
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
movzx ecx, byte [ebp - 0xa2]
cmp ecx, 1
jne 0x4aa6c0
movzx edx, word [ebp - 0x1e0]
cmp edx, 9
jne 0x4aa6c0
push str.Windows_XP_Professional_x64_Edition
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
movzx ecx, byte [ebp - 0xa2]
cmp ecx, 3
jne 0x4aa6f7
push 0x5981dc
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1e4]
or edx, 1
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
jmp case.0x4aa4f2.3
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1f4], eax
cmp dword [ebp - 0x1f4], 3
ja case.default.0x4aa71b
mov ecx, dword [ebp - 0x1f4]
jmp dword [ecx*4 + 0x4aaa44]
movzx edx, byte [ebp - 0xa2]
cmp edx, 1
jne 0x4aa75b
push 0x5981f0
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push 0x598200
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1e4]
or ecx, 1
mov dword [ebp - 0x1e4], ecx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
movzx edx, byte [ebp - 0xa2]
cmp edx, 1
jne 0x4aa7c4
push 0x598214
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push 0x598220
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1e4]
or ecx, 1
mov dword [ebp - 0x1e4], ecx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
movzx edx, byte [ebp - 0xa2]
cmp edx, 1
jne 0x4aa82d
push 0x598238
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push 0x598244
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1e4]
or ecx, 1
mov dword [ebp - 0x1e4], ecx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
movzx edx, byte [ebp - 0xa2]
cmp edx, 1
jne 0x4aa893
push 0x598258
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1e4]
or eax, 1
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push 0x598264
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1e4]
or ecx, 1
mov dword [ebp - 0x1e4], ecx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
jmp case.0x4aa4f2.3
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1f8], edx
cmp dword [ebp - 0x1f8], 0
je 0x4aa8d7
jmp case.0x4aa4f2.3
movzx eax, byte [ebp - 0xa2]
cmp eax, 1
jne 0x4aa910
push 0x59827c
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1e4]
or ecx, 1
mov dword [ebp - 0x1e4], ecx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push str.Windows_Server_2016_Techical_Preview
mov ecx, dword [ebp + 8]
call fcn.00405220
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1e4]
or edx, 1
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp + 8]
jmp 0x4aaa0c
push 1
push 3
lea ecx, [ebp - 0x94]
call fcn.0041af20
mov dword [ebp - 4], 1
lea eax, [ebp - 0x94]
test eax, eax
je 0x4aa96c
lea ecx, [ebp - 0x94]
add ecx, 8
mov dword [ebp - 0x1fc], ecx
jmp 0x4aa976
mov dword [ebp - 0x1fc], 0
push str.Windows_NT
mov edx, dword [ebp - 0x1fc]
push edx
call fcn.00413700
add esp, 8
push 0x5982bc
mov eax, dword [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004ab670
push eax
call fcn.00413700
add esp, 8
push 0x5982c0
mov ecx, dword [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.004ab670
push eax
call fcn.00413700
add esp, 8
mov edx, dword [ebp - 0x1b0]
push edx
lea ecx, [ebp - 0x8c]
call fcn.004ab670
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041b050
mov ecx, dword [ebp - 0x1e4]
or ecx, 1
mov dword [ebp - 0x1e4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.0041aeb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret