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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push str.GetNativeSystemInfo
push 0x1023ba58
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101993f5
lea ecx, [ebp - 0x1e8]
push ecx
call eax
jmp 0x10199402
lea eax, [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x1c0]
push 0
push eax
call fcn.101d1720
add esp, 0xc
mov dword [ebp - 0x1c0], 0x11c
mov dword [ebp - 0x1b0], 2
push 1
push 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 8
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1019993a
push 0
push 0
push 5
call fcn.1019a7d0
add esp, 0xc
test eax, eax
je 0x1019993a
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1019947f
push str.Microsoft
push esi
push edi
call fcn.1019acc0
push 6
call fcn.10198c10
add esp, 4
test eax, eax
je 0x10199598
push 0
call fcn.10198c80
add esp, 4
test eax, eax
je 0x10199598
push 1
call fcn.10198cf0
add esp, 4
test eax, eax
je 0x101994b8
push str.Windows_Vista
jmp 0x101994bd
push str.Windows_Server_2008
push esi
push edi
call fcn.1019ac60
push str.GetProductInfo
push 0x1023ba58
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x1c4]
push ecx
push 0
push 0
push 0
push 6
call eax
mov eax, dword [ebp - 0x1c4]
dec eax
cmp eax, 0x18
ja case.0x101994f8.5
jmp dword [eax*4 + 0x1019994c]
push str.Ultimate_Edition
jmp 0x1019956d
push str.Home_Premium_Edition
jmp 0x1019956d
push str.Home_Basic_Edition
jmp 0x1019956d
push str.Enterprise_Edition
jmp 0x1019956d
push str.Business_Edition
jmp 0x1019956d
push str.Starter_Edition
jmp 0x1019956d
push str.Cluster_Server_Edition
jmp 0x1019956d
push str.Datacenter_Edition
jmp 0x1019956d
push str.Datacenter_Edition__core_installation_
jmp 0x1019956d
push str.Enterprise_Edition__core_installation_
jmp 0x1019956d
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x1019956d
push str.Small_Business_Server
jmp 0x1019956d
push str.Small_Business_Server_Premium_Edition
jmp 0x1019956d
push str.Standard_Edition
jmp 0x1019956d
push str.Standard_Edition__core_installation_
jmp 0x1019956d
push str.Web_Server_Edition
push esi
push edi
call fcn.1019ac60
mov eax, dword [ebp - 0x1e8]
cmp ax, 9
jne 0x10199587
push str.__64_bit
jmp 0x10199591
test ax, ax
jne 0x10199598
push str.__32_bit
push esi
push edi
call fcn.1019ac60
push 6
call fcn.10198c10
add esp, 4
test eax, eax
je 0x101995d5
push 1
call fcn.10198c80
add esp, 4
test eax, eax
je 0x101995d5
push 1
call fcn.10198cf0
add esp, 4
test eax, eax
je 0x101995c9
push str.Windows_7
jmp 0x101995ce
push str.Windows_Server_2008_R2
push esi
push edi
call fcn.1019ac60
push 6
call fcn.10198c10
add esp, 4
test eax, eax
je 0x101995fd
push 2
call fcn.10198c80
add esp, 4
test eax, eax
je 0x101995fd
push str.Windows_8
push esi
push edi
call fcn.1019ac60
push 6
call fcn.10198c10
add esp, 4
test eax, eax
je 0x10199625
push 3
call fcn.10198c80
add esp, 4
test eax, eax
je 0x10199625
push str.Windows_8.1
push esi
push edi
call fcn.1019ac60
push 0xa
call fcn.10198c10
add esp, 4
test eax, eax
je 0x1019964d
push 0
call fcn.10198c80
add esp, 4
test eax, eax
je 0x1019964d
push str.Windows_10
push esi
push edi
call fcn.1019ac60
push 5
call fcn.10198c10
add esp, 4
test eax, eax
je 0x101997bf
push 2
call fcn.10198c80
add esp, 4
test eax, eax
je 0x101997bf
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10199684
push str.Windows_Server_2003_R2
jmp 0x101996c0
push 0x2000
call fcn.10198690
add esp, 4
test eax, eax
je 0x1019969c
push str.Windows_Storage_Server_2003
jmp 0x101996c0
push 1
call fcn.10198cf0
add esp, 4
test eax, eax
je 0x101996bb
cmp word [ebp - 0x1e8], 9
jne 0x101996bb
push str.Windows_XP_Professional_x64_Edition
jmp 0x101996c0
push str.Windows_Server_2003
push esi
push edi
call fcn.1019ac60
push 1
call fcn.10198cf0
add esp, 4
test eax, eax
jne 0x101997bf
mov eax, dword [ebp - 0x1e8]
cmp ax, 6
jne 0x1019971c
push 0x80
call fcn.10198690
add esp, 4
test eax, eax
je 0x10199700
push str._Datacenter_Edition_for_Itanium_based_Systems
jmp 0x101997b8
push 2
call fcn.10198690
add esp, 4
test eax, eax
je 0x101997bf
push str._Enterprise_Edition_for_Itanium_based_Systems
jmp 0x101997b8
cmp ax, 9
jne 0x10199756
push 0x80
call fcn.10198690
add esp, 4
test eax, eax
je 0x1019973a
push str._Datacenter_x64_Edition
jmp 0x101997b8
push 2
call fcn.10198690
add esp, 4
test eax, eax
je 0x1019974f
push str._Enterprise_x64_Edition
jmp 0x101997b8
push str._Standard_x64_Edition
jmp 0x101997b8
push 0x4000
call fcn.10198690
add esp, 4
test eax, eax
je 0x1019976e
push str._Compute_Cluster_Edition
jmp 0x101997b8
push 0x80
call fcn.10198690
add esp, 4
test eax, eax
je 0x10199786
push str._Datacenter_Edition
jmp 0x101997b8
push 2
call fcn.10198690
add esp, 4
test eax, eax
je 0x1019979b
push str._Enterprise_Edition
jmp 0x101997b8
push 0x400
call fcn.10198690
add esp, 4
test eax, eax
je 0x101997b3
push str._Web_Edition
jmp 0x101997b8
push str._Standard_Edition
push esi
push edi
call fcn.1019ac60
push 5
call fcn.10198c10
add esp, 4
test eax, eax
je 0x10199819
push 2
call fcn.10198c80
add esp, 4
test eax, eax
jne 0x101997e9
push 1
call fcn.10198c80
add esp, 4
test eax, eax
je 0x10199819
push str.Windows_XP
push esi
push edi
call fcn.1019ac60
push 0x200
call fcn.10198690
add esp, 4
test eax, eax
je 0x1019980d
push str._Home_Edition
jmp 0x10199812
push str._Professional
push esi
push edi
call fcn.1019ac60
push 5
call fcn.10198c10
add esp, 4
test eax, eax
je 0x1019988f
push 0
call fcn.10198c80
add esp, 4
test eax, eax
je 0x1019988f
push str.Windows_2000
push esi
push edi
call fcn.1019ac60
push 1
call fcn.10198cf0
add esp, 4
test eax, eax
je 0x10199856
push str._Professional
jmp 0x10199888
push 0x80
call fcn.10198690
add esp, 4
test eax, eax
je 0x1019986e
push str._Datacenter_Server
jmp 0x10199888
push 2
call fcn.10198690
add esp, 4
test eax, eax
je 0x10199883
push str._Advanced_Server
jmp 0x10199888
push str._Server
push esi
push edi
call fcn.1019ac60
cmp dword [ebp + 0x10], 0
je 0x10199925
push 0x110
lea eax, [ebp - 0x1b4]
push 0
push eax
call fcn.101d1720
add esp, 0xc
mov dword [ebp - 0x1b8], 0x114
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x1a4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101998d0
sub ecx, edx
sar ecx, 1
je 0x101998fb
push 0x10288b74
push esi
push edi
call fcn.1019ac60
lea eax, [ebp - 0x1a4]
push eax
push esi
push edi
call fcn.1019ac60
push dword [ebp - 0x1ac]
lea eax, [ebp - 0xa4]
push str.__build__d_
push 0x50
push eax
call fcn.1019ad10
add esp, 0x10
lea eax, [ebp - 0xa4]
push eax
push esi
push edi
call fcn.1019ac60
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.101b70aa
mov esp, ebp
pop ebp
ret