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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xcc
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x24
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004c05d0
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004c05d0
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 0x41006b
mov eax, 0x528e08
jmp 0x410555
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 0x410094
lea ecx, [ebp - 0x54]
push ecx
call eax
jmp 0x41009e
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 0x528e08
mov eax, edi
call fcn.004856d7
cmp dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x24]
jne 0x4104a2
cmp eax, 4
jbe 0x4104a5
cmp eax, 0xa
jne 0x410109
cmp dword [ebp - 0x20], 0
jne 0x410448
and dword [ebp - 0x2c], 0
cmp byte [ebp + 0x72], 1
jne 0x4100e0
push str.Windows_10
jmp 0x4100e5
push str.Windows_Server_2016
push edi
call fcn.004bf9b0
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0040fe92
cmp dword [ebp - 0x2c], 0
je 0x4102c3
push str._UAC_Enabled
jmp 0x4102c8
cmp eax, 6
jne 0x4102d0
cmp dword [ebp - 0x20], 3
ja 0x410448
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x2c], 0
test eax, eax
jne 0x410144
cmp byte [ebp + 0x72], 1
jne 0x41013d
push str.Windows_Vista
push edi
call fcn.004bf9b0
jmp 0x4101bd
push str.Windows_Server_2008
jmp 0x410132
cmp eax, 1
jne 0x410167
cmp byte [ebp + 0x72], 1
mov eax, 0x200
jne 0x410160
push str.Windows_7
call fcn.00486dce
jmp 0x4101be
push str.Windows_7_Server
jmp 0x410159
cmp eax, 2
jne 0x410185
cmp byte [ebp + 0x72], 1
mov eax, 0x200
jne 0x41017e
push str.Windows_8
jmp 0x410159
push str.Windows_Server_2012
jmp 0x410159
cmp eax, 3
mov eax, 0x200
jne 0x4101a3
cmp byte [ebp + 0x72], 1
jne 0x41019c
push str.Windows_8.1
jmp 0x410159
push str.Windows_Server_2012_R2
jmp 0x410159
cmp byte [ebp + 0x72], 1
push dword [ebp - 0x20]
jne 0x4101b3
push str.Unknown_Windows_Minor_ver__d
jmp 0x4101b8
push str.Unknown_Server_Minor_ver__d
call fcn.00486dce
pop ecx
pop ecx
push str.GetProductInfo
push str.kernel32.dll
call esi
push eax
call ebx
test eax, eax
jne 0x4101d7
mov dword [ebp - 0x30], eax
jmp 0x4101ee
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 0x41023d
je case.0x4101f8.4
dec eax
cmp eax, 8
ja case.0x4101f8.5
jmp dword [eax*4 + 0x410565]
push str.Ultimate_Edition
jmp 0x410295
push str.Home_Premium_Edition
jmp 0x410295
push str.Home_Basic_Edition
jmp 0x410295
push str.Enterprise_Edition
jmp 0x410295
push str.Business_Edition
jmp 0x410295
push str.Datacenter_Edition
jmp 0x410295
push str.Small_Business_Server
jmp 0x410295
push str.Standard_Edition
jmp 0x410295
cmp eax, 0xf
ja 0x410275
je 0x41026e
sub eax, 0xb
je 0x410267
dec eax
je 0x410260
dec eax
je 0x410259
dec eax
jne case.0x4101f8.5
push str.Enterprise_Edition__core_installation_
jmp 0x410295
push str.Standard_Edition__core_installation_
jmp 0x410295
push str.Datacenter_Edition__core_installation_
jmp 0x410295
push str.Starter_Edition
jmp 0x410295
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x410295
sub eax, 0x11
je 0x410290
dec eax
je 0x410289
sub eax, 7
jne case.0x4101f8.5
push str.Small_Business_Server_Premium_Edition
jmp 0x410295
push str.Cluster_Server_Edition
jmp 0x410295
push str.Web_Server_Edition
push edi
call fcn.004bf9b0
pop ecx
pop ecx
cmp word [ebp - 0x54], 9
jne 0x4102ae
push str.__64_bit
jmp 0x4100e5
cmp word [ebp - 0x54], 0
jne 0x4100ed
push str.__32_bit
jmp 0x4100e5
push str._No_UAC
push edi
call fcn.004bf9b0
pop ecx
pop ecx
cmp dword [ebp - 0x24], 5
jne 0x410448
cmp dword [ebp - 0x20], 2
jne 0x4103cf
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4102f7
push str.Windows_Server_2003_R2_
jmp 0x41032e
cmp word [ebp + 0x70], 0x2000
jne 0x410306
push str.Windows_Storage_Server_2003
jmp 0x41032e
cmp word [ebp + 0x70], 0x8000
jne 0x410315
push str.Windows_Home_Server
jmp 0x41032e
cmp byte [ebp + 0x72], 1
jne 0x410329
cmp word [ebp - 0x54], 9
jne 0x410329
push str.Windows_XP_Professional_x64_Edition
jmp 0x41032e
push str.Windows_Server_2003_
push edi
call fcn.004bf9b0
cmp byte [ebp + 0x72], 1
pop ecx
pop ecx
je 0x4103c9
cmp word [ebp - 0x54], 6
jne 0x410361
test byte [ebp + 0x70], 0x80
je 0x410354
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x4103c1
test byte [ebp + 0x70], 2
je 0x4103c9
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4103c1
cmp word [ebp - 0x54], 9
jne 0x410389
test byte [ebp + 0x70], 0x80
je 0x410375
push str.Datacenter_x64_Edition
jmp 0x4103c1
test byte [ebp + 0x70], 2
je 0x410382
push str.Enterprise_x64_Edition
jmp 0x4103c1
push str.Standard_x64_Edition
jmp 0x4103c1
mov eax, dword [ebp + 0x70]
test ax, 0x4000
je 0x410399
push str.Compute_Cluster_Edition
jmp 0x4103c1
test al, al
jns 0x4103a4
push str.Datacenter_Edition
jmp 0x4103c1
test al, 2
je 0x4103af
push str.Enterprise_Edition
jmp 0x4103c1
test ax, 0x400
je 0x4103bc
push str.Web_Edition
jmp 0x4103c1
push str.Standard_Edition
push edi
call fcn.004bf9b0
pop ecx
pop ecx
cmp dword [ebp - 0x24], 5
jne 0x410448
cmp dword [ebp - 0x20], 1
mov esi, str.Professional
jne 0x410405
push str.Windows_XP
push edi
call fcn.004bf9b0
test word [ebp + 0x70], 0x200
pop ecx
pop ecx
je 0x4103f6
push str.Home_Edition
jmp 0x4103f7
push esi
push edi
call fcn.004bf9b0
cmp dword [ebp - 0x24], 5
pop ecx
pop ecx
jne 0x410448
cmp dword [ebp - 0x20], 0
jne 0x410448
push str.Windows_2000
push edi
call fcn.004bf9b0
cmp byte [ebp + 0x72], 1
pop ecx
pop ecx
jne 0x410421
push esi
jmp 0x410440
test byte [ebp + 0x70], 0x80
je 0x41042e
push str.Datacenter_Server
jmp 0x410440
test byte [ebp + 0x70], 2
je 0x41043b
push str.Advanced_Server
jmp 0x410440
push str.Server
push edi
call fcn.004bf9b0
pop ecx
pop ecx
mov edx, edi
call fcn.00485754
test eax, eax
je 0x41046c
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.UNKNOWN_OS__d__d
push 0x200
push edi
call fcn.00486e10
add esp, 0x14
lea edx, [ebp - 0x14]
call fcn.00485754
test eax, eax
jne 0x410490
push 0x4e04c4
push edi
call fcn.004bf9b0
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004bf9b0
add esp, 0x10
push dword [ebp - 0x1c]
mov eax, 0x200
push str.__build__d_
jmp 0x410526
cmp eax, 4
jne 0x4104dc
cmp dword [ebp - 0x20], 0x5a
jne 0x4104b4
push str.Windows_Me
jmp 0x4104ec
cmp dword [ebp - 0x20], 0xa
jne 0x4104c1
push str.Windows_98
jmp 0x4104ec
cmp dword [ebp - 0x18], 2
mov ecx, 0x200
mov eax, edi
jne 0x4104d5
push str.Windows_NT
jmp 0x4104f3
push str.Windows_95
jmp 0x4104f3
cmp eax, 3
ja 0x4104f9
cmp dword [ebp - 0x18], 0
jne 0x4104f9
push str.Win32s_on_Windows_3.1
mov ecx, 0x200
mov eax, edi
call fcn.00485786
pop ecx
push dword [ebp - 0x1c]
mov esi, 0x200
push 0x4e18ec
mov eax, esi
call fcn.00486dce
pop ecx
pop ecx
lea edx, [ebp - 0x14]
call fcn.00485754
test eax, eax
jne 0x41052d
lea eax, [ebp - 0x14]
push eax
push 0x4e18f0
mov eax, esi
call fcn.00486dce
pop ecx
pop ecx
mov edx, edi
call fcn.00485754
test eax, eax
je 0x410551
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.UNKNOWNID_d__d
push 0x200
push edi
call fcn.00486e10
add esp, 0x14
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.004bfeb5
add ebp, 0x78
leave
ret