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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0xc8], eax
push 0
push 0x60518f
mov ecx, esi
call fcn.004051d0
xor eax, eax
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
call fcn.004f9940
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x42a5cc
mov eax, 1
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004f2a78
add esp, 0xcc
ret
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
push str.kernel32.dll
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
test eax, eax
je 0x42a5f7
lea edx, [esp + 0x10]
push edx
call eax
jmp 0x42a602
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x48], 2
mov ebx, 1
jne 0x42a8fb
cmp dword [esp + 0x3c], 4
jbe 0x42a8fb
push str.Microsoft
mov ecx, esi
call fcn.0041c5a0
cmp dword [esp + 0x3c], 6
jne 0x42a738
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x42a655
cmp byte [esp + 0xd2], bl
mov ecx, esi
jne 0x42a64e
push str.Windows_Vista
jmp 0x42a660
push str.Windows_Server_2008
jmp 0x42a660
cmp eax, ebx
jne 0x42a665
push str.Windows_7
mov ecx, esi
call fcn.0041c5a0
push str.GetProductInfo
push str.kernel32.dll
call edi
push eax
call ebp
test eax, eax
je 0x42a687
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
push 6
call eax
mov eax, dword [esp + 0xc]
add eax, 0xffffffff
cmp eax, 0x18
ja case.0x42a693.4
jmp dword [eax*4 + 0x42a918]
push str.Ultimate_Edition
jmp 0x42a70f
push str.Home_Premium_Edition
jmp 0x42a70f
push str.Home_Basic_Edition
jmp 0x42a70f
push str.Enterprise_Edition
jmp 0x42a70f
push str.Business_Edition
jmp 0x42a70f
push str.Starter_Edition
jmp 0x42a70f
push str.Cluster_Server_Edition
jmp 0x42a70f
push str.Datacenter_Edition
jmp 0x42a70f
push str.Datacenter_Edition__core_installation_
jmp 0x42a70f
push str.Enterprise_Edition__core_installation_
jmp 0x42a70f
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42a70f
push str.Small_Business_Server
jmp 0x42a70f
push str.Small_Business_Server_Premium_Edition
jmp 0x42a70f
push str.Standard_Edition
jmp 0x42a70f
push str.Standard_Edition__core_installation_
jmp 0x42a70f
push str.Web_Server_Edition
jmp 0x42a70f
push str.Unknown
mov ecx, esi
call fcn.0041c5a0
mov eax, dword [esp + 0x10]
cmp ax, 9
jne 0x42a727
push str.__64_bit
jmp 0x42a731
test ax, ax
jne 0x42a738
push str.__32_bit
mov ecx, esi
call fcn.0041c5a0
mov edi, 5
cmp dword [esp + 0x3c], edi
jne 0x42a8cf
cmp dword [esp + 0x40], 2
jne 0x42a84b
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42a765
push str.Windows_Server_2003_R2_
jmp 0x42a795
cmp word [esp + 0xd0], 0x2000
jne 0x42a778
push str.Windows_Storage_Server_2003
jmp 0x42a795
cmp byte [esp + 0xd2], bl
jne 0x42a790
cmp word [esp + 0x10], 9
jne 0x42a790
push str.Windows_XP_Professional_x64_Edition
jmp 0x42a795
push str.Windows_Server_2003_
mov ecx, esi
call fcn.0041c5a0
cmp byte [esp + 0xd2], bl
je 0x42a841
mov eax, dword [esp + 0x10]
cmp ax, 6
jne 0x42a7d0
mov al, byte [esp + 0xd0]
test al, al
jns 0x42a7c5
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x42a83a
test al, 2
je 0x42a841
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42a83a
cmp ax, 9
jne 0x42a7fc
mov al, byte [esp + 0xd0]
test al, al
jns 0x42a7e8
push str.Datacenter_x64_Edition
jmp 0x42a83a
test al, 2
mov ecx, esi
je 0x42a7f5
push str.Enterprise_x64_Edition
jmp 0x42a83c
push str.Standard_x64_Edition
jmp 0x42a83c
mov eax, dword [esp + 0xd0]
test eax, 0x4000
je 0x42a811
push str.Compute_Cluster_Edition
jmp 0x42a83a
test al, al
jns 0x42a81c
push str.Datacenter_Edition
jmp 0x42a83a
test al, 2
je 0x42a827
push str.Enterprise_Edition
jmp 0x42a83a
test eax, 0x400
je 0x42a835
push str.Web_Edition
jmp 0x42a83a
push str.Standard_Edition
mov ecx, esi
call fcn.0041c5a0
cmp dword [esp + 0x3c], edi
jne 0x42a8cf
cmp dword [esp + 0x40], ebx
jne 0x42a883
push str.Windows_XP
mov ecx, esi
call fcn.0041c5a0
test dword [esp + 0xd0], 0x200
mov ecx, esi
je 0x42a873
push str.Home_Edition
jmp 0x42a878
push str.Professional
call fcn.0041c5a0
cmp dword [esp + 0x3c], edi
jne 0x42a8cf
cmp dword [esp + 0x40], 0
jne 0x42a8cf
push str.Windows_2000
mov ecx, esi
call fcn.0041c5a0
cmp byte [esp + 0xd2], bl
jne 0x42a8a6
push str.Professional
jmp 0x42a8c8
mov al, byte [esp + 0xd0]
test al, al
jns 0x42a8b8
push str.Datacenter_Server
jmp 0x42a8c8
test al, 2
je 0x42a8c3
push str.Advanced_Server
jmp 0x42a8c8
push str.Server
mov ecx, esi
call fcn.0041c5a0
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a8d6
sub eax, edx
je 0x42a8fb
push 0x6061b4
mov ecx, esi
call fcn.0041c5a0
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.0041c5a0
mov ecx, dword [esp + 0xd4]
pop edi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004f2a78
add esp, 0xcc
ret