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

Disassembly:
push 0xffffffffffffffff
push 0x4b459d
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4e0490]
xor eax, esp
mov dword [esp + 0x1d0], eax
push esi
mov eax, dword [0x4e0490]
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.0x412a16
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.0x412a16
jmp dword [eax*4 + 0x412bd4]
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x41294f
cmp eax, 0xa
je 0x41293e
cmp eax, 0x5a
jne case.default.0x412a16
push str.Windows_Me
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
push str.Windows_98
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
mov eax, dword [esp + 0xcc]
cmp eax, 2
jne 0x41296c
push str.Windows_NT_4.0
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
cmp eax, 1
jne case.default.0x412a16
push str.Windows_95
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
mov eax, dword [esp + 0xc4]
sub eax, 0
je 0x4129f5
sub eax, 1
je 0x4129e4
sub eax, 1
jne case.default.0x412a16
mov al, byte [esp + 0x1d6]
cmp al, 1
jne 0x4129cb
cmp word [esp + 0x98], 9
jne case.default.0x412a16
push str.Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
cmp al, 3
jne case.default.0x412a16
push str.Windows_Server_2003
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
push str.Windows_XP
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
push str.Windows_2000
mov ecx, esi
call fcn.004039f0
jmp 0x412baa
mov eax, dword [esp + 0xc4]
cmp eax, 3
ja case.default.0x412a16
jmp dword [eax*4 + 0x412bf0]
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x412a38
push str.Windows_Vista
call fcn.004039f0
jmp 0x412baa
push str.Windows_Server_2008
call fcn.004039f0
jmp 0x412baa
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x412a62
push str.Windows_7
call fcn.004039f0
jmp 0x412baa
push str.Windows_Server_2008_R2
call fcn.004039f0
jmp 0x412baa
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x412a8c
push str.Windows_8
call fcn.004039f0
jmp 0x412baa
push str.Windows_Server_2012
call fcn.004039f0
jmp 0x412baa
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x412ab6
push str.Windows_8.1
call fcn.004039f0
jmp 0x412baa
push str.Windows_Server_2012_R2
call fcn.004039f0
jmp 0x412baa
cmp dword [esp + 0xc4], 0
jne case.default.0x412a16
cmp byte [esp + 0x1d6], 1
mov ecx, esi
jne 0x412aea
push str.Windows_10
call fcn.004039f0
jmp 0x412baa
push str.Windows_Server_2016_Techical_Preview
call fcn.004039f0
jmp 0x412baa
push 1
push 3
lea ecx, [esp + 0x18]
call fcn.0040dca0
lea edx, [esp + 0x18]
push str.Windows_NT
push edx
mov dword [esp + 0x1ec], 1
call fcn.00412670
mov eax, dword [esp + 0xc8]
add esp, 8
push 0x4bad5c
push eax
lea ecx, [esp + 0x20]
call fcn.00412520
push eax
call fcn.00412670
mov ecx, dword [esp + 0xcc]
add esp, 8
push 0x4bad5c
push ecx
lea ecx, [esp + 0x20]
call fcn.00412520
push eax
call fcn.00412670
mov edx, dword [esp + 0xd0]
add esp, 8
push edx
lea ecx, [esp + 0x1c]
call fcn.00412520
push esi
lea ecx, [esp + 0x14]
call fcn.0040bc90
lea ecx, [esp + 0x64]
mov dword [esp + 8], 1
mov byte [esp + 0x1e4], 0
call fcn.0040b390
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], vtable.std::ios_base.0
call fcn.00469484
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.0044bc4c
add esp, 0x1e0
ret