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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xc8
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x24
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004a7110
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004a7110
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 0x40efc3
mov eax, 0x5168e0
jmp 0x40f485
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 0x40efec
lea ecx, [ebp - 0x50]
push ecx
call eax
jmp 0x40eff6
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 0x5168e0
mov eax, edi
call fcn.004757d4
cmp dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x24]
jne 0x40f3d2
cmp eax, 4
jbe 0x40f3d5
cmp eax, 0xa
jne 0x40f041
cmp dword [ebp - 0x20], 0
jne 0x40f378
cmp byte [ebp + 0x72], 1
jne 0x40f037
push str.Windows_10
jmp 0x40f1eb
push str.Windows_Server_2016
jmp 0x40f1eb
cmp eax, 6
jne 0x40f200
cmp dword [ebp - 0x20], 3
ja 0x40f378
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40f078
cmp byte [ebp + 0x72], 1
jne 0x40f071
push str.Windows_Vista
push edi
call fcn.004a64f0
jmp 0x40f0f1
push str.Windows_Server_2008
jmp 0x40f066
cmp eax, 1
jne 0x40f09b
cmp byte [ebp + 0x72], 1
mov eax, 0x200
jne 0x40f094
push str.Windows_7
call fcn.00476dc8
jmp 0x40f0f2
push str.Windows_7_Server
jmp 0x40f08d
cmp eax, 2
jne 0x40f0b9
cmp byte [ebp + 0x72], 1
mov eax, 0x200
jne 0x40f0b2
push str.Windows_8
jmp 0x40f08d
push str.Windows_Server_2012
jmp 0x40f08d
cmp eax, 3
mov eax, 0x200
jne 0x40f0d7
cmp byte [ebp + 0x72], 1
jne 0x40f0d0
push str.Windows_8.1
jmp 0x40f08d
push str.Windows_Server_2012_R2
jmp 0x40f08d
cmp byte [ebp + 0x72], 1
push dword [ebp - 0x20]
jne 0x40f0e7
push str.Unknown_Windows_Minor_ver__d
jmp 0x40f0ec
push str.Unknown_Server_Minor_ver__d
call fcn.00476dc8
pop ecx
pop ecx
push str.GetProductInfo
push str.kernel32.dll
call esi
push eax
call ebx
test eax, eax
jne 0x40f10b
mov dword [ebp - 0x2c], eax
jmp 0x40f122
lea ecx, [ebp - 0x2c]
push ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
call eax
mov eax, dword [ebp - 0x2c]
cmp eax, 0xa
ja 0x40f171
je case.0x40f12c.4
dec eax
cmp eax, 8
ja case.0x40f12c.5
jmp dword [eax*4 + 0x40f495]
push str.Ultimate_Edition
jmp 0x40f1c9
push str.Home_Premium_Edition
jmp 0x40f1c9
push str.Home_Basic_Edition
jmp 0x40f1c9
push str.Enterprise_Edition
jmp 0x40f1c9
push str.Business_Edition
jmp 0x40f1c9
push str.Datacenter_Edition
jmp 0x40f1c9
push str.Small_Business_Server
jmp 0x40f1c9
push str.Standard_Edition
jmp 0x40f1c9
cmp eax, 0xf
ja 0x40f1a9
je 0x40f1a2
sub eax, 0xb
je 0x40f19b
dec eax
je 0x40f194
dec eax
je 0x40f18d
dec eax
jne case.0x40f12c.5
push str.Enterprise_Edition__core_installation_
jmp 0x40f1c9
push str.Standard_Edition__core_installation_
jmp 0x40f1c9
push str.Datacenter_Edition__core_installation_
jmp 0x40f1c9
push str.Starter_Edition
jmp 0x40f1c9
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x40f1c9
sub eax, 0x11
je 0x40f1c4
dec eax
je 0x40f1bd
sub eax, 7
jne case.0x40f12c.5
push str.Small_Business_Server_Premium_Edition
jmp 0x40f1c9
push str.Cluster_Server_Edition
jmp 0x40f1c9
push str.Web_Server_Edition
push edi
call fcn.004a64f0
pop ecx
pop ecx
cmp word [ebp - 0x50], 9
jne 0x40f1df
push str.__64_bit
jmp 0x40f1eb
cmp word [ebp - 0x50], 0
jne 0x40f1f3
push str.__32_bit
push edi
call fcn.004a64f0
pop ecx
pop ecx
push str._No_UAC
push edi
call fcn.004a64f0
pop ecx
pop ecx
cmp dword [ebp - 0x24], 5
jne 0x40f378
cmp dword [ebp - 0x20], 2
jne 0x40f2ff
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40f227
push str.Windows_Server_2003_R2_
jmp 0x40f25e
cmp word [ebp + 0x70], 0x2000
jne 0x40f236
push str.Windows_Storage_Server_2003
jmp 0x40f25e
cmp word [ebp + 0x70], 0x8000
jne 0x40f245
push str.Windows_Home_Server
jmp 0x40f25e
cmp byte [ebp + 0x72], 1
jne 0x40f259
cmp word [ebp - 0x50], 9
jne 0x40f259
push str.Windows_XP_Professional_x64_Edition
jmp 0x40f25e
push str.Windows_Server_2003_
push edi
call fcn.004a64f0
cmp byte [ebp + 0x72], 1
pop ecx
pop ecx
je 0x40f2f9
cmp word [ebp - 0x50], 6
jne 0x40f291
test byte [ebp + 0x70], 0x80
je 0x40f284
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x40f2f1
test byte [ebp + 0x70], 2
je 0x40f2f9
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x40f2f1
cmp word [ebp - 0x50], 9
jne 0x40f2b9
test byte [ebp + 0x70], 0x80
je 0x40f2a5
push str.Datacenter_x64_Edition
jmp 0x40f2f1
test byte [ebp + 0x70], 2
je 0x40f2b2
push str.Enterprise_x64_Edition
jmp 0x40f2f1
push str.Standard_x64_Edition
jmp 0x40f2f1
mov eax, dword [ebp + 0x70]
test ax, 0x4000
je 0x40f2c9
push str.Compute_Cluster_Edition
jmp 0x40f2f1
test al, al
jns 0x40f2d4
push str.Datacenter_Edition
jmp 0x40f2f1
test al, 2
je 0x40f2df
push str.Enterprise_Edition
jmp 0x40f2f1
test ax, 0x400
je 0x40f2ec
push str.Web_Edition
jmp 0x40f2f1
push str.Standard_Edition
push edi
call fcn.004a64f0
pop ecx
pop ecx
cmp dword [ebp - 0x24], 5
jne 0x40f378
cmp dword [ebp - 0x20], 1
mov esi, str.Professional
jne 0x40f335
push str.Windows_XP
push edi
call fcn.004a64f0
test word [ebp + 0x70], 0x200
pop ecx
pop ecx
je 0x40f326
push str.Home_Edition
jmp 0x40f327
push esi
push edi
call fcn.004a64f0
cmp dword [ebp - 0x24], 5
pop ecx
pop ecx
jne 0x40f378
cmp dword [ebp - 0x20], 0
jne 0x40f378
push str.Windows_2000
push edi
call fcn.004a64f0
cmp byte [ebp + 0x72], 1
pop ecx
pop ecx
jne 0x40f351
push esi
jmp 0x40f370
test byte [ebp + 0x70], 0x80
je 0x40f35e
push str.Datacenter_Server
jmp 0x40f370
test byte [ebp + 0x70], 2
je 0x40f36b
push str.Advanced_Server
jmp 0x40f370
push str.Server
push edi
call fcn.004a64f0
pop ecx
pop ecx
mov edx, edi
call fcn.00475851
test eax, eax
je 0x40f39c
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.UNKNOWN_OS__d__d
push 0x200
push edi
call fcn.00476e0a
add esp, 0x14
lea edx, [ebp - 0x14]
call fcn.00475851
test eax, eax
jne 0x40f3c0
push 0x4c724c
push edi
call fcn.004a64f0
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004a64f0
add esp, 0x10
push dword [ebp - 0x1c]
mov eax, 0x200
push str.__build__d_
jmp 0x40f456
cmp eax, 4
jne 0x40f40c
cmp dword [ebp - 0x20], 0x5a
jne 0x40f3e4
push str.Windows_Me
jmp 0x40f41c
cmp dword [ebp - 0x20], 0xa
jne 0x40f3f1
push str.Windows_98
jmp 0x40f41c
cmp dword [ebp - 0x18], 2
mov ecx, 0x200
mov eax, edi
jne 0x40f405
push str.Windows_NT
jmp 0x40f423
push str.Windows_95
jmp 0x40f423
cmp eax, 3
ja 0x40f429
cmp dword [ebp - 0x18], 0
jne 0x40f429
push str.Win32s_on_Windows_3.1
mov ecx, 0x200
mov eax, edi
call fcn.00475883
pop ecx
push dword [ebp - 0x1c]
mov esi, 0x200
push 0x4c8488
mov eax, esi
call fcn.00476dc8
pop ecx
pop ecx
lea edx, [ebp - 0x14]
call fcn.00475851
test eax, eax
jne 0x40f45d
lea eax, [ebp - 0x14]
push eax
push 0x4c848c
mov eax, esi
call fcn.00476dc8
pop ecx
pop ecx
mov edx, edi
call fcn.00475851
test eax, eax
je 0x40f481
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.UNKNOWNID_d__d
push 0x200
push edi
call fcn.00476e0a
add esp, 0x14
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004a69f5
add ebp, 0x78
leave
ret