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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0x471c94
call fcn.00403dd0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x434e04
cmp dword [ebp - 0x110], 2
jne 0x434e04
cmp dword [ebp - 0x11c], 5
jb 0x434e04
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
push str.GetNativeSystemInfo
push str.kernel32.dll
movdqu xmmword [ebp - 0x148], xmm0
movdqu xmmword [ebp - 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4348f1
lea ecx, [ebp - 0x148]
push ecx
call eax
jmp 0x4348fe
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.Microsoft
mov ecx, esi
call fcn.00411580
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x434b90
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x434939
cmp byte [ebp - 6], 1
mov ecx, esi
jne 0x434932
push str.Windows_Vista
jmp 0x43495f
push str.Windows_Server_2008
jmp 0x43495f
cmp eax, 1
jne 0x434953
mov ecx, esi
cmp byte [ebp - 6], al
jne 0x43494c
push str.Windows_7
jmp 0x43495f
push str.Windows_Server_2008_R2
jmp 0x43495f
cmp eax, 2
jne 0x434964
push str.Windows_8
mov ecx, esi
call fcn.004115d0
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je case.0x4349b9.5
lea ecx, [ebp - 0x124]
push ecx
movzx ecx, word [ebp - 0xa]
push ecx
movzx ecx, word [ebp - 0xc]
push ecx
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call eax
mov eax, dword [ebp - 0x124]
dec eax
cmp eax, 0x2f
ja case.0x4349b9.5
movzx eax, byte [eax + 0x434e60]
jmp dword [eax*4 + 0x434e18]
push str.Ultimate_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Professional
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Home_Premium_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Home_Basic_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Enterprise_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Business_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Starter_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Cluster_Server_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Datacenter_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Datacenter_Edition__core_installation_
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Enterprise_Edition__core_installation_
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Small_Business_Server
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Small_Business_Server_Premium_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Standard_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Standard_Edition__core_installation_
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Web_Server_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne case.0x4349b9.5
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x434d36
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x434bbb
push str.Windows_Server_2003_R2
jmp 0x434bf6
mov eax, dword [ebp - 8]
test eax, 0x2000
je 0x434bcc
push str.Windows_Storage_Server_2003
jmp 0x434bf6
test eax, 0x8000
je 0x434bda
push str.Windows_Home_Server
jmp 0x434bf6
cmp byte [ebp - 6], 1
jne 0x434bf1
cmp word [ebp - 0x148], 9
jne 0x434bf1
push str.Windows_XP_Professional_x64_Edition
jmp 0x434bf6
push str.Windows_Server_2003
mov ecx, esi
call fcn.004115d0
cmp byte [ebp - 6], 1
je case.0x4349b9.5
mov ax, word [ebp - 0x148]
cmp ax, 6
jne 0x434c5d
mov eax, dword [ebp - 8]
test al, al
jns 0x434c38
push str.Datacenter_Edition_for_Itanium_based_Systems
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
test al, 2
je case.0x4349b9.5
push str.Enterprise_Edition_for_Itanium_based_Systems
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp ax, 9
mov eax, dword [ebp - 8]
jne 0x434cc3
test al, al
jns 0x434c87
push str.Datacenter_x64_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
mov ecx, esi
test al, 2
je 0x434ca8
push str.Enterprise_x64_Edition
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Standard_x64_Edition
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
test eax, 0x4000
je 0x434ce7
push str.Compute_Cluster_Edition
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
test al, al
js case.0x4349b9.8
test al, 2
jne case.0x4349b9.4
mov ecx, esi
test eax, 0x400
je 0x434d1b
push str.Web_Edition
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Standard_Edition
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x434d88
push str.Windows_XP
mov ecx, esi
call fcn.004115d0
test dword [ebp - 8], 0x200
mov ecx, esi
je 0x434d6d
push str.Home_Edition
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Professional
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
test eax, eax
jne case.0x4349b9.5
push str.Windows_2000
mov ecx, esi
call fcn.004115d0
cmp byte [ebp - 6], 1
je case.0x4349b9.48
mov eax, dword [ebp - 8]
test al, al
jns 0x434dc6
push str.Datacenter_Server
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
test al, 2
je 0x434de7
push str.Advanced_Server
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
push str.Server
mov ecx, esi
call fcn.004115d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438f17
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00438f17
mov esp, ebp
pop ebp
ret