Function at 0x14000207c
Capabilities:
Check os version

Disassembly:
jmp 0x140035170
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14007c860]
xor rax, rsp
mov qword [rbp + 0x168], rax
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
cmp dword [0x14007cbc4], ebx
jne 0x14003537b
mov dword [0x14007cbc4], ebx
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp + 0x44]
call sub.MSVCR110.dll_memset
mov dword [rbp + 0x40], 0x11c
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14003537b
cmp dword [rbp + 0x50], 2
je 0x14003520f
cmp byte [0x14007ca62], bl
je 0x14003531e
mov r9d, 0x16c
lea rdx, str.__Unknown_platform_ID_
jmp 0x14003530b
mov eax, dword [rbp + 0x44]
cmp eax, 3
jb 0x14003532a
cmp eax, 4
jbe 0x1400352f6
cmp eax, 5
je 0x140035294
cmp eax, 6
jne 0x14003532a
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140035285
dec eax
je 0x140035352
dec eax
je 0x140035276
dec eax
je 0x140035267
cmp byte [0x14007ca62], bl
je 0x140035352
mov r9d, 0x15d
lea rdx, str.__Unknown_minor_version__assume_Win7__
jmp 0x14003533f
mov dword [0x14007cbc4], 6
jmp 0x14003535c
mov dword [0x14007cbc4], 5
jmp 0x14003535c
mov dword [0x14007cbc4], 3
jmp 0x14003535c
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1400352e6
dec eax
je 0x1400352cb
dec eax
je 0x1400352da
cmp byte [0x14007ca62], bl
je 0x1400352cb
mov r9d, 0x143
lea r8, str...Commonwinplats.cpp
lea rdx, str.__Unknown_minor_version__assume_XP__
lea rcx, str.Assert:__s__in__s_at__i_n
call fcn.1400031a2
mov dword [0x14007cbc4], 1
jmp 0x14003535c
mov dword [0x14007cbc4], 2
jmp 0x14003535c
cmp byte [0x14007ca62], bl
je 0x14003531e
mov r9d, 0x136
jmp 0x140035304
cmp byte [0x14007ca62], bl
je 0x14003531e
mov r9d, 0x12e
lea rdx, str.__Obsolete_platform_ID_
lea r8, str...Commonwinplats.cpp
lea rcx, str.Assert:__s__in__s_at__i_n
call fcn.1400031a2
mov dword [0x14007cbc4], 7
jmp 0x14003535c
cmp byte [0x14007ca62], bl
je 0x140035352
mov r9d, 0x164
lea rdx, str.__Unknown_NT_Platform__assume_Win7__
lea r8, str...Commonwinplats.cpp
lea rcx, str.Assert:__s__in__s_at__i_n
call fcn.1400031a2
mov dword [0x14007cbc4], 4
mov edx, dword [rbp + 0x48]
mov ecx, dword [rbp + 0x44]
call fcn.140002a27
mov dword [0x14007cbcc], eax
movzx eax, word [rbp + 0x154]
mov word [0x14007cbc8], ax
lea rsi, [0x140000000]
lea rax, [rsi + 0x607e8]
mov qword [rsp + 0x30], rax
lea rax, [0x1400607f8]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP110.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 2
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], r14
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP110.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
movsxd rax, dword [0x14007cbc4]
cmp eax, 7
ja case.0x140035422.6
mov ecx, dword [rsi + rax*4 + 0x355a8]
add rcx, rsi
jmp rcx
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbx
mov byte [rdi], 0
mov r8d, 7
lea rdx, str.Unknown
mov rcx, rdi
call fcn.1400017d0
nop
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x30], r14
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x2c], r8d
jmp 0x14003555d
lea rdx, str.Windows_XP
jmp 0x1400354c4
lea rdx, str.Windows_2k3
jmp 0x1400354c4
lea rdx, str.Windows_Vista
jmp 0x1400354c4
lea rdx, str.Windows_7
jmp 0x1400354c4
lea rdx, str.Windows_8
jmp 0x1400354c4
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbx
mov byte [rdi], 0
mov r8d, 0xd
lea rdx, str.Not_supported
mov rcx, rdi
call fcn.1400017d0
jmp 0x14003553c
lea rcx, [rsp + 0x40]
call fcn.140003ae4
mov ecx, dword [0x14007cbcc]
test ecx, ecx
je 0x1400354f2
dec ecx
je 0x1400354e9
dec ecx
jne 0x140035503
lea rdx, str.__Home_Basic_Edition
jmp 0x1400354f9
lea rdx, str.__Starter_Edition
jmp 0x1400354f9
lea rdx, str.__Full_Edition
lea rcx, [rsp + 0x40]
call fcn.140003ae4
movzx eax, word [0x14007cbc8]
test ax, ax
je 0x14003552e
movzx ebx, ax
lea rdx, str.__SP
lea rcx, [rsp + 0x40]
call fcn.140003ae4
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000173f
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r14
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.1400010e6
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP110.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP110.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rsp
call fcn.140052d40
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret