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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0xc8], eax
push 0
push 0x605167
mov ecx, esi
call fcn.004052d0
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.004f9810
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 0x42a2bc
mov eax, 1
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004f2719
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 0x42a2e7
lea edx, [esp + 0x10]
push edx
call eax
jmp 0x42a2f2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x48], 2
mov ebx, 1
jne 0x42a5eb
cmp dword [esp + 0x3c], 4
jbe 0x42a5eb
push str.Microsoft
mov ecx, esi
call fcn.0041c380
cmp dword [esp + 0x3c], 6
jne 0x42a428
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x42a345
cmp byte [esp + 0xd2], bl
mov ecx, esi
jne 0x42a33e
push str.Windows_Vista
jmp 0x42a350
push str.Windows_Server_2008
jmp 0x42a350
cmp eax, ebx
jne 0x42a355
push str.Windows_7
mov ecx, esi
call fcn.0041c380
push str.GetProductInfo
push str.kernel32.dll
call edi
push eax
call ebp
test eax, eax
je 0x42a377
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.0x42a383.4
jmp dword [eax*4 + 0x42a608]
push str.Ultimate_Edition
jmp 0x42a3ff
push str.Home_Premium_Edition
jmp 0x42a3ff
push str.Home_Basic_Edition
jmp 0x42a3ff
push str.Enterprise_Edition
jmp 0x42a3ff
push str.Business_Edition
jmp 0x42a3ff
push str.Starter_Edition
jmp 0x42a3ff
push str.Cluster_Server_Edition
jmp 0x42a3ff
push str.Datacenter_Edition
jmp 0x42a3ff
push str.Datacenter_Edition__core_installation_
jmp 0x42a3ff
push str.Enterprise_Edition__core_installation_
jmp 0x42a3ff
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42a3ff
push str.Small_Business_Server
jmp 0x42a3ff
push str.Small_Business_Server_Premium_Edition
jmp 0x42a3ff
push str.Standard_Edition
jmp 0x42a3ff
push str.Standard_Edition__core_installation_
jmp 0x42a3ff
push str.Web_Server_Edition
jmp 0x42a3ff
push str.Unknown
mov ecx, esi
call fcn.0041c380
mov eax, dword [esp + 0x10]
cmp ax, 9
jne 0x42a417
push str.__64_bit
jmp 0x42a421
test ax, ax
jne 0x42a428
push str.__32_bit
mov ecx, esi
call fcn.0041c380
mov edi, 5
cmp dword [esp + 0x3c], edi
jne 0x42a5bf
cmp dword [esp + 0x40], 2
jne 0x42a53b
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42a455
push str.Windows_Server_2003_R2_
jmp 0x42a485
cmp word [esp + 0xd0], 0x2000
jne 0x42a468
push str.Windows_Storage_Server_2003
jmp 0x42a485
cmp byte [esp + 0xd2], bl
jne 0x42a480
cmp word [esp + 0x10], 9
jne 0x42a480
push str.Windows_XP_Professional_x64_Edition
jmp 0x42a485
push str.Windows_Server_2003_
mov ecx, esi
call fcn.0041c380
cmp byte [esp + 0xd2], bl
je 0x42a531
mov eax, dword [esp + 0x10]
cmp ax, 6
jne 0x42a4c0
mov al, byte [esp + 0xd0]
test al, al
jns 0x42a4b5
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x42a52a
test al, 2
je 0x42a531
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42a52a
cmp ax, 9
jne 0x42a4ec
mov al, byte [esp + 0xd0]
test al, al
jns 0x42a4d8
push str.Datacenter_x64_Edition
jmp 0x42a52a
test al, 2
mov ecx, esi
je 0x42a4e5
push str.Enterprise_x64_Edition
jmp 0x42a52c
push str.Standard_x64_Edition
jmp 0x42a52c
mov eax, dword [esp + 0xd0]
test eax, 0x4000
je 0x42a501
push str.Compute_Cluster_Edition
jmp 0x42a52a
test al, al
jns 0x42a50c
push str.Datacenter_Edition
jmp 0x42a52a
test al, 2
je 0x42a517
push str.Enterprise_Edition
jmp 0x42a52a
test eax, 0x400
je 0x42a525
push str.Web_Edition
jmp 0x42a52a
push str.Standard_Edition
mov ecx, esi
call fcn.0041c380
cmp dword [esp + 0x3c], edi
jne 0x42a5bf
cmp dword [esp + 0x40], ebx
jne 0x42a573
push str.Windows_XP
mov ecx, esi
call fcn.0041c380
test dword [esp + 0xd0], 0x200
mov ecx, esi
je 0x42a563
push str.Home_Edition
jmp 0x42a568
push str.Professional
call fcn.0041c380
cmp dword [esp + 0x3c], edi
jne 0x42a5bf
cmp dword [esp + 0x40], 0
jne 0x42a5bf
push str.Windows_2000
mov ecx, esi
call fcn.0041c380
cmp byte [esp + 0xd2], bl
jne 0x42a596
push str.Professional
jmp 0x42a5b8
mov al, byte [esp + 0xd0]
test al, al
jns 0x42a5a8
push str.Datacenter_Server
jmp 0x42a5b8
test al, 2
je 0x42a5b3
push str.Advanced_Server
jmp 0x42a5b8
push str.Server
mov ecx, esi
call fcn.0041c380
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a5c6
sub eax, edx
je 0x42a5eb
push 0x6061f4
mov ecx, esi
call fcn.0041c380
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.0041c380
mov ecx, dword [esp + 0xd4]
pop edi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004f2719
add esp, 0xcc
ret