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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
xorps xmm0, xmm0
mov dword [ebp - 0xfc], 0
lea eax, [ebp - 0xec]
push 0
push eax
movups xmmword [ebp - 0x11c], xmm0
movups xmmword [ebp - 0x10c], xmm0
call fcn.0055ed60
add esp, 0xc
mov dword [ebp - 0xf0], 0x9c
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411218
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410e09
lea ecx, [ebp - 0x11c]
push ecx
call eax
jmp 0x410e16
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xe0], 2
jne 0x411237
cmp dword [ebp - 0xec], 4
jbe 0x411237
push esi
mov ecx, 0x6279d0
mov esi, str.Microsoft
mov edx, 0x100
sub esi, ecx
lea eax, [edx + 0x7ffffefe]
test eax, eax
je 0x410e5b
mov al, byte [esi + ecx]
test al, al
je 0x410e5b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x410e42
test edx, edx
lea eax, [ecx - 1]
pop esi
cmovne eax, ecx
cmp dword [ebp - 0xec], 6
mov byte [eax], 0
jne case.0x410f1b.5
mov eax, dword [ebp - 0xe8]
test eax, eax
jne 0x410e92
cmp byte [ebp - 0x56], 1
mov eax, str.Windows_Vista
mov ecx, str.Windows_Server_2008
cmovne eax, ecx
push eax
jmp 0x410ec2
cmp eax, 1
jne 0x410eab
cmp byte [ebp - 0x56], 1
mov eax, 0x5fbd34
mov ecx, str.Windows_Server_2008_R2
cmovne eax, ecx
push eax
jmp 0x410ec2
cmp eax, 2
jne 0x410ed4
cmp byte [ebp - 0x56], 1
jne 0x410ebd
push 0x5fbd58
jmp 0x410ec2
push str.Windows_10_R2
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0xc
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xf4]
push ecx
push 0
push 0
push dword [ebp - 0xe8]
push dword [ebp - 0xec]
call eax
mov eax, dword [ebp - 0xf4]
dec eax
cmp eax, 0x2f
ja case.0x410f1b.5
movzx eax, byte [eax + 0x41129c]
jmp dword [eax*4 + 0x411254]
push str.Ultimate_Edition
jmp 0x410f97
push str.Professional
jmp 0x410f97
push str.Home_Premium_Edition
jmp 0x410f97
push str.Home_Basic_Edition
jmp 0x410f97
push str.Business_Edition
jmp 0x410f97
push str.Starter_Edition
jmp 0x410f97
push str.Cluster_Server_Edition
jmp 0x410f97
push str.Datacenter_Edition
jmp 0x410f97
push str.Datacenter_Edition__core_installation_
jmp 0x410f97
push str.Enterprise_Edition
jmp 0x410f97
push str.Enterprise_Edition__core_installation_
jmp 0x410f97
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x410f97
push str.Small_Business_Server
jmp 0x410f97
push str.Small_Business_Server_Premium_Edition
jmp 0x410f97
push str.Standard_Edition
jmp 0x410f97
push str.Standard_Edition__core_installation_
jmp 0x410f97
push str.Web_Server_Edition
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0xc
cmp dword [ebp - 0xec], 5
jne 0x41117e
mov eax, dword [ebp - 0xe8]
cmp eax, 2
jne 0x4110d7
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x410fd8
mov eax, str.Windows_Server_2003_R2_
jmp 0x411011
mov eax, dword [ebp - 0x58]
test eax, 0x2000
je 0x410fe9
mov eax, str.Windows_Storage_Server_2003
jmp 0x411011
test eax, 0x8000
je 0x410ff7
mov eax, str.Windows_Home_Server
jmp 0x411011
cmp byte [ebp - 0x56], 1
jne 0x41100c
cmp word [ebp - 0x11c], 9
mov eax, str.Windows_XP_Professional_x64_Edition
je 0x411011
mov eax, str.Windows_Server_2003_
push eax
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0xc
cmp byte [ebp - 0x56], 1
je 0x4110c4
mov ax, word [ebp - 0x11c]
cmp ax, 6
jne 0x411054
mov eax, dword [ebp - 0x58]
test al, al
jns 0x411049
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x4110b2
test al, 2
je 0x4110c4
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4110b2
cmp ax, 9
mov eax, dword [ebp - 0x58]
jne 0x41107b
test al, al
jns 0x411069
mov eax, str.Datacenter_x64_Edition
push eax
jmp 0x4110b2
test al, 2
mov ecx, str.Standard_x64_Edition
mov eax, str.Enterprise_x64_Edition
cmove eax, ecx
push eax
jmp 0x4110b2
test eax, 0x4000
je 0x411089
push str.Compute_Cluster_Edition
jmp 0x4110b2
test al, al
jns 0x411094
push str.Datacenter_Edition
jmp 0x4110b2
test al, 2
je 0x41109f
push str.Enterprise_Edition
jmp 0x4110b2
test eax, 0x400
je 0x4110ad
push str.Web_Edition
jmp 0x4110b2
push str.Standard_Edition
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0xc
cmp dword [ebp - 0xec], 5
jne 0x41117e
mov eax, dword [ebp - 0xe8]
cmp eax, 1
jne 0x411126
push str.Windows_XP
push 0x100
push 0x6279d0
call fcn.0056d5b3
test dword [ebp - 0x58], 0x200
mov ecx, str.Home_Edition
mov eax, str.Professional
cmovne eax, ecx
push eax
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0x18
cmp dword [ebp - 0xec], 5
jne 0x41117e
mov eax, dword [ebp - 0xe8]
test eax, eax
jne 0x41117e
push str.Windows_2000
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0xc
cmp byte [ebp - 0x56], 1
jne 0x41114e
push str.Professional
jmp 0x41116c
mov eax, dword [ebp - 0x58]
test al, al
jns 0x41115c
push str.Datacenter_Server
jmp 0x41116c
test al, 2
je 0x411167
push str.Advanced_Server
jmp 0x41116c
push str.Server
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0xc
lea ecx, [ebp - 0xdc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411187
sub ecx, edx
je 0x4111bf
push 0x5fc0e8
push 0x100
push 0x6279d0
call fcn.0056d5b3
lea eax, [ebp - 0xdc]
push eax
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0x18
push dword [ebp - 0xe4]
lea eax, [ebp - 0x54]
push str.__build__d_
push 0x50
push eax
call fcn.00410a90
lea eax, [ebp - 0x54]
push eax
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0x1c
cmp dword [ebp - 0xec], 6
jb 0x411218
mov ax, word [ebp - 0x11c]
cmp ax, 9
jne 0x41122b
push str.__64_bit
push 0x100
push 0x6279d0
call fcn.0056d5b3
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x411218
push str.__32_bit
jmp 0x411206
push str.This_sample_does_not_support_this_version_of_Windows._n
call fcn.00406cd0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret