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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c0140]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov rbx, rcx
xor r13d, r13d
mov r12d, r13d
mov dword [rcx + 0x4a0], r13d
mov dword [rcx + 0x4a8], r13d
mov dword [rcx + 0x4b4], r13d
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x70]
call fcn.140069f00
mov dword [rsp + 0x70], 0x11c
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rsp + 0x74]
mov dword [rbx + 0x488], edx
mov eax, dword [rsp + 0x78]
mov dword [rbx + 0x48c], eax
mov eax, dword [rsp + 0x7c]
mov dword [rbx + 0x490], eax
mov eax, dword [rbp - 0x80]
mov dword [rbx + 0x494], eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x7c]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x460]
lea rdx, [rbp - 0x7c]
call fcn.140001780
movzx edx, word [rbp + 0x84]
mov word [rbx + 0x498], dx
movzx eax, word [rbp + 0x86]
mov word [rbx + 0x49a], ax
movzx eax, word [rbp + 0x88]
mov word [rbx + 0x49c], ax
movzx eax, byte [rbp + 0x8a]
mov byte [rbx + 0x49e], al
movzx eax, byte [rbp + 0x8b]
mov byte [rbx + 0x49f], al
movzx eax, word [rsp + 0x40]
test eax, eax
je 0x1400011f8
cmp eax, 6
je 0x1400011cd
cmp eax, 9
je 0x1400011a8
cmp eax, 0xffff
jne 0x140001218
lea rcx, [rbx + 0x3e8]
lea r8d, [r13 + 7]
lea rdx, str.Unknown
call fcn.140001780
lea r12d, [r13 + 1]
jmp 0x140001218
lea rcx, [rbx + 0x3e8]
mov r8d, 3
lea rdx, [0x14008d600]
call fcn.140001780
mov dword [rbx + 0x4a8], 1
jmp 0x140001218
lea rcx, [rbx + 0x3e8]
mov r8d, 7
lea rdx, str.Itanium
call fcn.140001780
mov dword [rbx + 0x4a8], 1
mov r12d, 1
jmp 0x140001218
lea rcx, [rbx + 0x3e8]
mov r8d, 3
lea rdx, [0x14008d618]
call fcn.140001780
mov dword [rbx + 0x4a8], r13d
lea r9, [0x14008d630]
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x90]
call fcn.14001e270
nop
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.140001540
nop
cmp qword [rbp + 0xa8], 8
jb 0x14000125d
mov rcx, qword [rbp + 0x90]
call fcn.140063290
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootOption
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14000129f
mov dword [rbx + 0x4b4], 1
mov eax, dword [rsp + 0x74]
cmp eax, 5
jne 0x14000138f
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x1400012ec
lea r8d, [rax + 0xc]
lea rdx, str.Windows_2000
mov rcx, rbx
call fcn.140001780
mov dword [rbx + 0x4a0], r13d
lea rcx, [rbx + 0x410]
mov r8d, 0x3b
lea rdx, str.Your_version_of_Windows_is_not_supported_by_this_program._r_n
call fcn.140001780
jmp 0x1400014e7
cmp eax, 1
jne 0x140001301
lea r8d, [rax + 9]
lea rdx, str.Windows_XP
jmp 0x140001484
cmp eax, 2
jne 0x1400014cb
cmp byte [rbp + 0x8a], 1
jne 0x14000132b
cmp word [rsp + 0x40], 9
jne 0x14000132b
lea r8d, [rax + 0x19]
lea rdx, str.Windows_XP_Professional_x64
jmp 0x140001484
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14000134a
lea r8d, [rax + 0x13]
lea rdx, str.Windows_Server_2003
jmp 0x140001484
mov eax, 0x8000
test word [rbp + 0x88], ax
je 0x14000136a
mov r8d, 0x13
lea rdx, str.Windows_Home_Server
jmp 0x1400012bf
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400014e7
mov r8d, 0x16
lea rdx, str.Windows_Server_2003_R2
jmp 0x140001484
cmp eax, 6
jne 0x140001498
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x1400013dd
mov rcx, rbx
cmp byte [rbp + 0x8a], 1
jne 0x1400013bc
lea r8d, [rax + 0xd]
lea rdx, str.Windows_Vista
jmp 0x140001487
mov r8d, 0x13
lea rdx, str.Windows_Server_2008
call fcn.140001780
mov dword [rbx + 0x4a0], 1
jmp 0x1400014e7
cmp eax, 1
jne 0x14000141e
mov rcx, rbx
cmp byte [rbp + 0x8a], al
jne 0x1400013fd
lea r8d, [rax + 8]
lea rdx, str.Windows_7
jmp 0x140001487
mov r8d, 0x16
lea rdx, str.Windows_Server_2008_R2
call fcn.140001780
mov dword [rbx + 0x4a0], 1
jmp 0x1400014e7
cmp eax, 2
jne 0x140001470
cmp byte [rbp + 0x8a], 1
jne 0x140001477
cmp qword [rbx + 0x40], 8
jb 0x140001439
mov rcx, qword [rbx + 0x28]
jmp 0x14000143d
lea rcx, [rbx + 0x28]
lea rdx, str.Windows_8.1
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rcx, rbx
test rax, rax
je 0x140001461
mov r8d, 0xb
lea rdx, str.Windows_8.1
jmp 0x140001487
mov r8d, 9
lea rdx, str.Windows_8
jmp 0x140001487
cmp eax, 3
jne 0x1400014cb
jmp 0x140001423
mov r8d, 0x10
lea rdx, str.Windows_Server_8
mov rcx, rbx
call fcn.140001780
mov dword [rbx + 0x4a0], 1
jmp 0x1400014e7
cmp eax, 0xa
jne 0x1400014cb
cmp dword [rsp + 0x78], 0
jne 0x1400014cb
mov rcx, rbx
cmp byte [rbp + 0x8a], 1
jne 0x1400014bc
mov r8d, eax
lea rdx, str.Windows_10
jmp 0x140001487
mov r8d, 0x13
lea rdx, str.Windows_Server_2016
jmp 0x1400014db
mov r8d, 0xf
lea rdx, str.Unknown_Version
mov rcx, rbx
call fcn.140001780
mov dword [rbx + 0x4a0], r13d
cmp qword [rbx + 0x38], 0
jne 0x140001501
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbx + 0x28]
call fcn.1400015e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx + 0x4a4], eax
mov eax, r12d
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.140063080
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret