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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xcc
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x24
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004a8c80
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004a8c80
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fdcd
mov eax, 0x5188e0
jmp 0x4102b7
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
push edi
push str.GetNativeSystemInfo
push str.kernel32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x40fdf6
lea ecx, [ebp - 0x54]
push ecx
call eax
jmp 0x40fe00
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 0x5188e0
mov eax, edi
call fcn.00477999
cmp dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x24]
jne 0x410204
cmp eax, 4
jbe 0x410207
cmp eax, 0xa
jne 0x40fe6b
cmp dword [ebp - 0x20], 0
jne 0x4101aa
and dword [ebp - 0x2c], 0
cmp byte [ebp + 0x72], 1
jne 0x40fe42
push str.Windows_10
jmp 0x40fe47
push str.Windows_Server_2016
push edi
call fcn.004a8060
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0040fbf4
cmp dword [ebp - 0x2c], 0
je 0x410025
push str._UAC_Enabled
jmp 0x41002a
cmp eax, 6
jne 0x410032
cmp dword [ebp - 0x20], 3
ja 0x4101aa
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x2c], 0
test eax, eax
jne 0x40fea6
cmp byte [ebp + 0x72], 1
jne 0x40fe9f
push str.Windows_Vista
push edi
call fcn.004a8060
jmp 0x40ff1f
push str.Windows_Server_2008
jmp 0x40fe94
cmp eax, 1
jne 0x40fec9
cmp byte [ebp + 0x72], 1
mov eax, 0x200
jne 0x40fec2
push str.Windows_7
call fcn.00478f8d
jmp 0x40ff20
push str.Windows_7_Server
jmp 0x40febb
cmp eax, 2
jne 0x40fee7
cmp byte [ebp + 0x72], 1
mov eax, 0x200
jne 0x40fee0
push str.Windows_8
jmp 0x40febb
push str.Windows_Server_2012
jmp 0x40febb
cmp eax, 3
mov eax, 0x200
jne 0x40ff05
cmp byte [ebp + 0x72], 1
jne 0x40fefe
push str.Windows_8.1
jmp 0x40febb
push str.Windows_Server_2012_R2
jmp 0x40febb
cmp byte [ebp + 0x72], 1
push dword [ebp - 0x20]
jne 0x40ff15
push str.Unknown_Windows_Minor_ver__d
jmp 0x40ff1a
push str.Unknown_Server_Minor_ver__d
call fcn.00478f8d
pop ecx
pop ecx
push str.GetProductInfo
push str.kernel32.dll
call esi
push eax
call ebx
test eax, eax
jne 0x40ff39
mov dword [ebp - 0x30], eax
jmp 0x40ff50
lea ecx, [ebp - 0x30]
push ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
call eax
mov eax, dword [ebp - 0x30]
cmp eax, 0xa
ja 0x40ff9f
je case.0x40ff5a.4
dec eax
cmp eax, 8
ja case.0x40ff5a.5
jmp dword [eax*4 + 0x4102c7]
push str.Ultimate_Edition
jmp 0x40fff7
push str.Home_Premium_Edition
jmp 0x40fff7
push str.Home_Basic_Edition
jmp 0x40fff7
push str.Enterprise_Edition
jmp 0x40fff7
push str.Business_Edition
jmp 0x40fff7
push str.Datacenter_Edition
jmp 0x40fff7
push str.Small_Business_Server
jmp 0x40fff7
push str.Standard_Edition
jmp 0x40fff7
cmp eax, 0xf
ja 0x40ffd7
je 0x40ffd0
sub eax, 0xb
je 0x40ffc9
dec eax
je 0x40ffc2
dec eax
je 0x40ffbb
dec eax
jne case.0x40ff5a.5
push str.Enterprise_Edition__core_installation_
jmp 0x40fff7
push str.Standard_Edition__core_installation_
jmp 0x40fff7
push str.Datacenter_Edition__core_installation_
jmp 0x40fff7
push str.Starter_Edition
jmp 0x40fff7
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x40fff7
sub eax, 0x11
je 0x40fff2
dec eax
je 0x40ffeb
sub eax, 7
jne case.0x40ff5a.5
push str.Small_Business_Server_Premium_Edition
jmp 0x40fff7
push str.Cluster_Server_Edition
jmp 0x40fff7
push str.Web_Server_Edition
push edi
call fcn.004a8060
pop ecx
pop ecx
cmp word [ebp - 0x54], 9
jne 0x410010
push str.__64_bit
jmp 0x40fe47
cmp word [ebp - 0x54], 0
jne 0x40fe4f
push str.__32_bit
jmp 0x40fe47
push str._No_UAC
push edi
call fcn.004a8060
pop ecx
pop ecx
cmp dword [ebp - 0x24], 5
jne 0x4101aa
cmp dword [ebp - 0x20], 2
jne 0x410131
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x410059
push str.Windows_Server_2003_R2_
jmp 0x410090
cmp word [ebp + 0x70], 0x2000
jne 0x410068
push str.Windows_Storage_Server_2003
jmp 0x410090
cmp word [ebp + 0x70], 0x8000
jne 0x410077
push str.Windows_Home_Server
jmp 0x410090
cmp byte [ebp + 0x72], 1
jne 0x41008b
cmp word [ebp - 0x54], 9
jne 0x41008b
push str.Windows_XP_Professional_x64_Edition
jmp 0x410090
push str.Windows_Server_2003_
push edi
call fcn.004a8060
cmp byte [ebp + 0x72], 1
pop ecx
pop ecx
je 0x41012b
cmp word [ebp - 0x54], 6
jne 0x4100c3
test byte [ebp + 0x70], 0x80
je 0x4100b6
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x410123
test byte [ebp + 0x70], 2
je 0x41012b
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x410123
cmp word [ebp - 0x54], 9
jne 0x4100eb
test byte [ebp + 0x70], 0x80
je 0x4100d7
push str.Datacenter_x64_Edition
jmp 0x410123
test byte [ebp + 0x70], 2
je 0x4100e4
push str.Enterprise_x64_Edition
jmp 0x410123
push str.Standard_x64_Edition
jmp 0x410123
mov eax, dword [ebp + 0x70]
test ax, 0x4000
je 0x4100fb
push str.Compute_Cluster_Edition
jmp 0x410123
test al, al
jns 0x410106
push str.Datacenter_Edition
jmp 0x410123
test al, 2
je 0x410111
push str.Enterprise_Edition
jmp 0x410123
test ax, 0x400
je 0x41011e
push str.Web_Edition
jmp 0x410123
push str.Standard_Edition
push edi
call fcn.004a8060
pop ecx
pop ecx
cmp dword [ebp - 0x24], 5
jne 0x4101aa
cmp dword [ebp - 0x20], 1
mov esi, str.Professional
jne 0x410167
push str.Windows_XP
push edi
call fcn.004a8060
test word [ebp + 0x70], 0x200
pop ecx
pop ecx
je 0x410158
push str.Home_Edition
jmp 0x410159
push esi
push edi
call fcn.004a8060
cmp dword [ebp - 0x24], 5
pop ecx
pop ecx
jne 0x4101aa
cmp dword [ebp - 0x20], 0
jne 0x4101aa
push str.Windows_2000
push edi
call fcn.004a8060
cmp byte [ebp + 0x72], 1
pop ecx
pop ecx
jne 0x410183
push esi
jmp 0x4101a2
test byte [ebp + 0x70], 0x80
je 0x410190
push str.Datacenter_Server
jmp 0x4101a2
test byte [ebp + 0x70], 2
je 0x41019d
push str.Advanced_Server
jmp 0x4101a2
push str.Server
push edi
call fcn.004a8060
pop ecx
pop ecx
mov edx, edi
call fcn.00477a16
test eax, eax
je 0x4101ce
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.UNKNOWN_OS__d__d
push 0x200
push edi
call fcn.00478fcf
add esp, 0x14
lea edx, [ebp - 0x14]
call fcn.00477a16
test eax, eax
jne 0x4101f2
push 0x4c927c
push edi
call fcn.004a8060
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004a8060
add esp, 0x10
push dword [ebp - 0x1c]
mov eax, 0x200
push str.__build__d_
jmp 0x410288
cmp eax, 4
jne 0x41023e
cmp dword [ebp - 0x20], 0x5a
jne 0x410216
push str.Windows_Me
jmp 0x41024e
cmp dword [ebp - 0x20], 0xa
jne 0x410223
push str.Windows_98
jmp 0x41024e
cmp dword [ebp - 0x18], 2
mov ecx, 0x200
mov eax, edi
jne 0x410237
push str.Windows_NT
jmp 0x410255
push str.Windows_95
jmp 0x410255
cmp eax, 3
ja 0x41025b
cmp dword [ebp - 0x18], 0
jne 0x41025b
push str.Win32s_on_Windows_3.1
mov ecx, 0x200
mov eax, edi
call fcn.00477a48
pop ecx
push dword [ebp - 0x1c]
mov esi, 0x200
push 0x4ca570
mov eax, esi
call fcn.00478f8d
pop ecx
pop ecx
lea edx, [ebp - 0x14]
call fcn.00477a16
test eax, eax
jne 0x41028f
lea eax, [ebp - 0x14]
push eax
push 0x4ca574
mov eax, esi
call fcn.00478f8d
pop ecx
pop ecx
mov edx, edi
call fcn.00477a16
test eax, eax
je 0x4102b3
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.UNKNOWNID_d__d
push 0x200
push edi
call fcn.00478fcf
add esp, 0x14
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004a8565
add ebp, 0x78
leave
ret