Function at 0x434820
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 0x4722a0
call fcn.00404440
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x434dd4
cmp dword [ebp - 0x110], 2
jne 0x434dd4
cmp dword [ebp - 0x11c], 5
jb 0x434dd4
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 0x4348c1
lea ecx, [ebp - 0x148]
push ecx
call eax
jmp 0x4348ce
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.Microsoft
mov ecx, esi
call fcn.004110c0
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x434b60
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x434909
cmp byte [ebp - 6], 1
mov ecx, esi
jne 0x434902
push str.Windows_Vista
jmp 0x43492f
push str.Windows_Server_2008
jmp 0x43492f
cmp eax, 1
jne 0x434923
mov ecx, esi
cmp byte [ebp - 6], al
jne 0x43491c
push str.Windows_7
jmp 0x43492f
push str.Windows_Server_2008_R2
jmp 0x43492f
cmp eax, 2
jne 0x434934
push str.Windows_8
mov ecx, esi
call fcn.00411110
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.0x434989.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.0x434989.5
movzx eax, byte [eax + 0x434e30]
jmp dword [eax*4 + 0x434de8]
push str.Ultimate_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Professional
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Home_Premium_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Home_Basic_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Enterprise_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Business_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Starter_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Cluster_Server_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Datacenter_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Datacenter_Edition__core_installation_
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Enterprise_Edition__core_installation_
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Small_Business_Server
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Small_Business_Server_Premium_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Standard_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Standard_Edition__core_installation_
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Web_Server_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne case.0x434989.5
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x434d06
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x434b8b
push str.Windows_Server_2003_R2
jmp 0x434bc6
mov eax, dword [ebp - 8]
test eax, 0x2000
je 0x434b9c
push str.Windows_Storage_Server_2003
jmp 0x434bc6
test eax, 0x8000
je 0x434baa
push str.Windows_Home_Server
jmp 0x434bc6
cmp byte [ebp - 6], 1
jne 0x434bc1
cmp word [ebp - 0x148], 9
jne 0x434bc1
push str.Windows_XP_Professional_x64_Edition
jmp 0x434bc6
push str.Windows_Server_2003
mov ecx, esi
call fcn.00411110
cmp byte [ebp - 6], 1
je case.0x434989.5
mov ax, word [ebp - 0x148]
cmp ax, 6
jne 0x434c2d
mov eax, dword [ebp - 8]
test al, al
jns 0x434c08
push str.Datacenter_Edition_for_Itanium_based_Systems
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
test al, 2
je case.0x434989.5
push str.Enterprise_Edition_for_Itanium_based_Systems
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp ax, 9
mov eax, dword [ebp - 8]
jne 0x434c93
test al, al
jns 0x434c57
push str.Datacenter_x64_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
mov ecx, esi
test al, 2
je 0x434c78
push str.Enterprise_x64_Edition
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Standard_x64_Edition
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
test eax, 0x4000
je 0x434cb7
push str.Compute_Cluster_Edition
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
test al, al
js case.0x434989.8
test al, 2
jne case.0x434989.4
mov ecx, esi
test eax, 0x400
je 0x434ceb
push str.Web_Edition
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Standard_Edition
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x434d58
push str.Windows_XP
mov ecx, esi
call fcn.00411110
test dword [ebp - 8], 0x200
mov ecx, esi
je 0x434d3d
push str.Home_Edition
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Professional
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
test eax, eax
jne case.0x434989.5
push str.Windows_2000
mov ecx, esi
call fcn.00411110
cmp byte [ebp - 6], 1
je case.0x434989.48
mov eax, dword [ebp - 8]
test al, al
jns 0x434d96
push str.Datacenter_Server
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
test al, 2
je 0x434db7
push str.Advanced_Server
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
push str.Server
mov ecx, esi
call fcn.00411110
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438e07
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00438e07
mov esp, ebp
pop ebp
ret