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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e37e
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc8], 0
mov eax, dword [0x1008c818]
test al, 1
jne 0x10041313
or eax, 1
mov dword [0x1008c80c], 0xf
push 0x1006fd40
mov dword [0x1008c818], eax
mov dword [0x1008c808], 0
mov byte [0x1008c7f8], 0
call fcn.1004a928
add esp, 4
cmp byte [0x1008c7f6], 0
jne 0x10041656
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0xc0]
cmp ecx, 5
jne 0x1004137a
mov eax, dword [ebp - 0xbc]
sub eax, 0
je 0x1004136e
dec eax
je 0x1004135f
mov dword [0x1008c814], 3
jmp 0x100413ef
mov dword [0x1008c814], 2
jmp 0x100413ef
mov dword [0x1008c814], 1
jmp 0x100413ef
cmp byte [ebp - 0x2a], 1
je 0x1004138c
mov dword [0x1008c814], 5
jmp 0x100413ef
cmp ecx, 6
jne 0x100413da
mov eax, dword [ebp - 0xbc]
test eax, eax
jne 0x100413a7
mov dword [0x1008c814], 4
jmp 0x100413ef
cmp eax, 1
jne 0x100413b8
mov dword [0x1008c814], 6
jmp 0x100413ef
cmp eax, 2
jne 0x100413c9
mov dword [0x1008c814], 7
jmp 0x100413ef
cmp eax, 3
jne 0x100413ef
mov dword [0x1008c814], 8
jmp 0x100413ef
mov eax, dword [0x1008c814]
cmp ecx, 0xa
mov edx, 9
cmove eax, edx
mov dword [0x1008c814], eax
mov dword [ebp - 0x178], 0x1007d9b0
mov dword [ebp - 0x168], 0x1007d9b8
push 0
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 2
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x114], 0x50
movlpd qword [ebp - 0x170], xmm0
call fcn.100104a0
mov eax, dword [ebp - 0x168]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x16c], eax
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x17c], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x160]
call fcn.10011360
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 7
push eax
push 0x10071058
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x168]
push 0x1007d894
push dword [ebp - 0xb8]
push 0x1007d894
push dword [ebp - 0xbc]
push 0x1007d894
push dword [ebp - 0xc0]
call fcn.1000f920
push eax
call fcn.10012230
add esp, 8
mov ecx, eax
call fcn.1000f920
push eax
call fcn.10012230
add esp, 8
mov ecx, eax
call fcn.1000f920
push eax
call fcn.10012230
add esp, 8
mov ecx, eax
call fcn.1000f920
push eax
call fcn.10012230
add esp, 8
push eax
call fcn.10012230
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x178]
call fcn.100101a0
mov edi, eax
cmp edi, 0x1008c7f8
je 0x100415c9
cmp dword [0x1008c80c], 0x10
jb 0x100415a3
push dword [0x1008c7f8]
call fcn.100498af
add esp, 4
push edi
mov ecx, 0x1008c7f8
mov dword [0x1008c80c], 0xf
mov dword [0x1008c808], 0
mov byte [0x1008c7f8], 0
call fcn.100022b0
cmp dword [ebp - 0x14], 0x10
jb 0x100415da
push dword [ebp - 0x28]
call fcn.100498af
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x19c], 0
lea eax, [ebp - 0x19c]
push eax
movdqu xmmword [ebp - 0x198], xmm0
movdqu xmmword [ebp - 0x188], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x19c]
cmp ax, 9
je 0x1004161d
mov byte [0x1008c810], 0
cmp ax, 6
jne 0x10041624
mov byte [0x1008c810], 1
lea ecx, [ebp - 0x110]
mov byte [0x1008c7f6], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10010120
lea eax, [ebp - 0x110]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.10049221
add esp, 4
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x1008c7f8
mov byte [esi], 0
call fcn.10002420
mov cl, byte [0x1008c810]
mov eax, esi
mov byte [esi + 0x18], cl
mov ecx, dword [0x1008c814]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret