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

Disassembly:
push 0xffffffffffffffff
push 0x4af3cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x1d0], eax
push esi
mov eax, dword [0x4d87a0]
xor eax, esp
push eax
lea eax, [esp + 0x1dc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1ec]
lea eax, [esp + 0xbc]
mov dword [esp + 8], 0
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x410b86
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xc0]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x410b86
jmp dword [eax*4 + 0x410d44]
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x410abf
cmp eax, 0xa
je 0x410aae
cmp eax, 0x5a
jne case.default.0x410b86
push str.Windows_Me
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
push str.Windows_98
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
mov eax, dword [esp + 0xcc]
cmp eax, 2
jne 0x410adc
push str.Windows_NT_4.0
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
cmp eax, 1
jne case.default.0x410b86
push str.Windows_95
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
mov eax, dword [esp + 0xc4]
sub eax, 0
je 0x410b65
sub eax, 1
je 0x410b54
sub eax, 1
jne case.default.0x410b86
mov al, byte [esp + 0x1d6]
cmp al, 1
jne 0x410b3b
cmp word [esp + 0x98], 9
jne case.default.0x410b86
push str.Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
cmp al, 3
jne case.default.0x410b86
push str.Windows_Server_2003
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
push str.Windows_XP
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
push str.Windows_2000
mov ecx, esi
call fcn.004030a0
jmp 0x410d1a
mov eax, dword [esp + 0xc4]
cmp eax, 3
ja case.default.0x410b86
jmp dword [eax*4 + 0x410d60]
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x410ba8
push str.Windows_Vista
call fcn.004030a0
jmp 0x410d1a
push str.Windows_Server_2008
call fcn.004030a0
jmp 0x410d1a
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x410bd2
push str.Windows_7
call fcn.004030a0
jmp 0x410d1a
push str.Windows_Server_2008_R2
call fcn.004030a0
jmp 0x410d1a
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x410bfc
push str.Windows_8
call fcn.004030a0
jmp 0x410d1a
push str.Windows_Server_2012
call fcn.004030a0
jmp 0x410d1a
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x410c26
push str.Windows_8.1
call fcn.004030a0
jmp 0x410d1a
push str.Windows_Server_2012_R2
call fcn.004030a0
jmp 0x410d1a
cmp dword [esp + 0xc4], 0
jne case.default.0x410b86
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x410c5a
push str.Windows_10
call fcn.004030a0
jmp 0x410d1a
push str.Windows_Server_2016_Techical_Preview
call fcn.004030a0
jmp 0x410d1a
push 1
push 3
lea ecx, [esp + 0x18]
call fcn.0040b3f0
lea edx, [esp + 0x18]
push str.Windows_NT
push edx
mov dword [esp + 0x1ec], 1
call fcn.004107e0
mov eax, dword [esp + 0xc8]
add esp, 8
push 0x4b5d8c
push eax
lea ecx, [esp + 0x20]
call fcn.00410690
push eax
call fcn.004107e0
mov ecx, dword [esp + 0xcc]
add esp, 8
push 0x4b5d8c
push ecx
lea ecx, [esp + 0x20]
call fcn.00410690
push eax
call fcn.004107e0
mov edx, dword [esp + 0xd0]
add esp, 8
push edx
lea ecx, [esp + 0x1c]
call fcn.00410690
push esi
lea ecx, [esp + 0x14]
call fcn.00408920
lea ecx, [esp + 0x64]
mov dword [esp + 8], 1
mov byte [esp + 0x1e4], 0
call fcn.00406d70
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], vtable.std::ios_base.0
call fcn.00468332
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0044ab5c
add esp, 0x1e0
ret