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

Disassembly:
sub esp, 0x1c8
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x1c4], eax
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x9c
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.004c43d0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x9c
call edi
test eax, eax
jne 0x4a511d
push 0x94
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004c43d0
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call edi
test eax, eax
jne 0x4a511d
pop edi
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.004c2fd1
add esp, 0x1c8
ret
movzx edi, word [esp + 0xc4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], edi
movzx edi, word [esp + 0xc6]
mov dword [esi + 8], ecx
sub ecx, 0
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], edi
je 0x4a562f
sub ecx, 1
je 0x4a558b
sub ecx, 1
jne 0x4a5645
cmp edx, 4
ja 0x4a5183
push str.Microsoft_Windows_NT
mov edx, dword [esi + 0x1c]
push 0x400
push edx
call fcn.004c5045
add esp, 0xc
jmp 0x4a532a
cmp edx, 5
jne 0x4a526d
test eax, eax
jne 0x4a519a
push str.Microsoft_Windows_2000
jmp 0x4a5241
cmp eax, 1
jne 0x4a5200
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_XP
push 0x400
push ecx
call fcn.004c5045
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
push 0x57
call edi
test eax, eax
je 0x4a51d9
mov edx, dword [esi + 0x1c]
push str.Media_Center_Edition
push 0x400
push edx
call fcn.00422660
add esp, 0xc
push 0x56
call edi
test eax, eax
je 0x4a532a
mov eax, dword [esi + 0x1c]
push str.Tablet_PC_Edition
push 0x400
push eax
call fcn.00422660
add esp, 0xc
jmp 0x4a532a
cmp eax, 2
jne 0x4a5257
cmp byte [esp + 0xca], 1
jne 0x4a523c
cmp word [esp + 0xc], 6
jne 0x4a5232
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_XP_IA64
push 0x400
push ecx
call fcn.004c5045
add esp, 0xc
jmp 0x4a532a
push str.Microsoft_Windows_XP_x64
jmp 0x4a516d
push str.Microsoft_Windows_Server_2003
mov eax, dword [esi + 0x1c]
push 0x400
push eax
call fcn.004c5045
add esp, 0xc
jmp 0x4a532a
mov ecx, dword [esi + 0x1c]
push eax
push 5
push str.Microsoft_Windows_NT_d._d
push 0x400
push ecx
jmp 0x4a5322
cmp edx, 6
jne 0x4a5312
test eax, eax
jne 0x4a52ae
cmp byte [esp + 0xca], 1
jne 0x4a529e
push eax
push edx
mov edx, dword [esi + 0x1c]
push str.Microsoft_Windows_Vista___d._d_
push 0x400
push edx
call fcn.00422580
add esp, 0x14
jmp 0x4a52ed
mov eax, dword [esi + 0x1c]
push str.Microsoft_Windows_Server_2008
push 0x400
push eax
jmp 0x4a52e5
cmp eax, 1
jne 0x4a52f5
cmp byte [esp + 0xca], al
jne 0x4a52d7
mov ecx, dword [esi + 0x1c]
push eax
push 6
push str.Microsoft_Windows_7___d._d_
push 0x400
push ecx
call fcn.00422580
add esp, 0x14
jmp 0x4a52ed
mov edx, dword [esi + 0x1c]
push str.Microsoft_Windows_Server_2008_R2
push 0x400
push edx
call fcn.004c5045
add esp, 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
movzx ecx, word [esp + 0xc6]
push ecx
movzx ecx, word [esp + 0xc8]
push ecx
push eax
push edx
mov ecx, esi
call fcn.004a4ec0
jmp 0x4a532a
push eax
push edx
mov edx, dword [esi + 0x1c]
push str.Microsoft_Windows_NT_d._d
push 0x400
push edx
call fcn.00422580
add esp, 0x14
mov al, byte [esp + 0xca]
cmp al, 1
jne 0x4a5384
mov eax, dword [esp + 0x34]
cmp eax, 4
jne 0x4a5348
push str.Workstation_4.0
jmp 0x4a546a
cmp eax, 5
jne 0x4a547b
test dword [esp + 0xc8], 0x200
je 0x4a5371
mov ecx, dword [esi + 0x1c]
push str.Home_Edition
push 0x400
push ecx
jmp 0x4a5473
mov edx, dword [esi + 0x1c]
push str.Professional
push 0x400
push edx
jmp 0x4a5473
cmp al, 3
je 0x4a5390
cmp al, 2
jne 0x4a547b
mov eax, dword [esp + 0x34]
cmp eax, 5
jne 0x4a5446
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x4a5408
mov eax, dword [esp + 0xc8]
test al, al
jns 0x4a53bb
push str.Datacenter_Edition
jmp 0x4a546a
test al, 2
je 0x4a53d2
mov ecx, dword [esi + 0x1c]
push str.Enterprise_Edition
push 0x400
push ecx
jmp 0x4a5473
cmp ax, 0x400
jne 0x4a53eb
mov edx, dword [esi + 0x1c]
push str.Web_Edition
push 0x400
push edx
jmp 0x4a5473
cmp ax, 1
jne 0x4a53f8
push str.Small_Business_Edition
jmp 0x4a546a
mov ecx, dword [esi + 0x1c]
push str.Standard_Edition
push 0x400
push ecx
jmp 0x4a5473
test eax, eax
jne 0x4a554b
mov al, byte [esp + 0xc8]
test al, al
jns 0x4a542b
mov edx, dword [esi + 0x1c]
push str.Datacenter_Server
push 0x400
push edx
jmp 0x4a5473
test al, 2
je 0x4a5436
push str.Advanced_Server
jmp 0x4a546a
mov ecx, dword [esi + 0x1c]
push str.Server
push 0x400
push ecx
jmp 0x4a5473
cmp eax, 4
ja 0x4a547b
test byte [esp + 0xc8], 2
je 0x4a5465
mov edx, dword [esi + 0x1c]
push str.Server_4.0__Enterprise_Edition
push 0x400
push edx
jmp 0x4a5473
push str.Server_4.0
mov eax, dword [esi + 0x1c]
push 0x400
push eax
call fcn.00422660
add esp, 0xc
cmp dword [esp + 0x34], 4
jne 0x4a554b
push str.Service_Pack_6
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4a554b
lea edx, [esp + 8]
push edx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a5500
movzx eax, word [esp + 0x3c]
push eax
push str.Service_Pack_6a__Build__d_
lea ecx, [esp + 0xd4]
push pe_nt_image_headers32
push ecx
call fcn.00422580
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xdc]
push edx
push 0x200
push eax
call fcn.00422580
mov eax, dword [esp + 0x24]
add esp, 0x1c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a5645
movzx ecx, word [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
push edx
push str._s__Build__d_
lea eax, [esp + 0xd8]
push pe_nt_image_headers32
push eax
call fcn.00422580
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xe0]
push ecx
push 0x200
push edx
call fcn.00422580
mov eax, dword [esp + 0x28]
add esp, 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a5645
movzx ecx, word [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
push edx
push str._s__Build__d_
lea eax, [esp + 0xd8]
push pe_nt_image_headers32
push eax
call fcn.00422580
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xe0]
push ecx
push 0x200
push edx
call fcn.00422580
add esp, 0x20
jmp 0x4a5645
cmp edx, 4
jne 0x4a561f
test eax, eax
jne 0x4a55d3
mov eax, dword [esi + 0x1c]
push str.Microsoft_Windows_95
push 0x400
push eax
call fcn.004c5045
mov al, byte [esp + 0x51]
add esp, 0xc
cmp al, 0x43
je 0x4a55be
cmp al, 0x42
jne 0x4a5645
mov ecx, dword [esi + 0x1c]
push str._OSR2
push 0x400
push ecx
call fcn.00422660
jmp 0x4a5642
cmp eax, 0xa
jne 0x4a560a
mov edx, dword [esi + 0x1c]
push str.Microsoft_Windows_98
push 0x400
push edx
call fcn.004c5045
add esp, 0xc
cmp byte [esp + 0x45], 0x41
jne 0x4a5645
mov eax, dword [esi + 0x1c]
push str._SE
push 0x400
push eax
call fcn.00422660
jmp 0x4a5642
cmp eax, 0x5a
jne 0x4a5645
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_Millennium_Edition
push 0x400
push ecx
jmp 0x4a563d
mov edx, dword [esi + 0x1c]
push str.Microsoft_Windows_9x
push 0x400
push edx
jmp 0x4a563d
mov eax, dword [esi + 0x1c]
push str.Microsoft_Win32s
push 0x400
push eax
call fcn.004c5045
add esp, 0xc
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004c2fd1
add esp, 0x1c8
ret