Function at 0x140198d00
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x78], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rdx], r14
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], 7
mov word [rdx], r14w
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call fcn.1401d04f0
lea edx, [r14 + 1]
lea rcx, [rbp - 0x70]
call fcn.140022120
nop
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140198dff
mov word [rbp + 0x90], r14w
mov dword [rbp - 0x78], 0x208
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x74]
xor r8d, r8d
lea rdx, [0x14024c398]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140198df5
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x60]
call fcn.14002bf30
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14019a0d0
test al, al
je 0x140198e18
lea rdx, str._64bit
lea rcx, [rbp - 0x60]
call fcn.14002bf30
mov ecx, MsiOpenDatabaseW
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x140198e37
lea rdx, str._MCE
lea rcx, [rbp - 0x60]
call fcn.14002bf30
lea rdx, str._Version
lea rcx, [rbp - 0x60]
call fcn.14002bf30
mov rbx, rax
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1401994f0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140198e66
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140030860
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140198eb4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140198eaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401992b6
call fcn.1401a9a50
lea rdx, str._Build
lea rcx, [rbp - 0x60]
call fcn.14002bf30
mov rsi, rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
mov dword [rsp + 0x30], 3
mov r8d, 7
lea rdx, str.Unknown
lea rcx, [rsp + 0x38]
call fcn.140018360
xor edx, edx
mov r8d, MsiEnumComponentsExA
lea rcx, [rbp + 0x94]
call fcn.1401d04f0
mov dword [rbp + 0x90], MsiEnumComponentsExA
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x140198fcc
cmp dword [rbp + 0xa0], 2
jne 0x140198f76
cmp dword [rbp + 0x94], 5
jb 0x140198f76
xor edx, edx
mov r8d, MsiEnumComponentsExA
lea rcx, [rbp + 0x94]
call fcn.1401d04f0
mov dword [rbp + 0x90], MsiEnumComponentsExA
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
mov r8d, 0x258
lea rcx, [rbp + 0x2a0]
call fcn.1401d04f0
mov r8d, dword [rbp + 0x9c]
lea rdx, [0x14022f350]
lea rcx, [rbp + 0x2a0]
call fcn.140198780
lea rax, [rbp + 0x2a0]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140198fb0
lea rdx, [rbp + 0x2a0]
lea rcx, [rsp + 0x38]
call fcn.140018360
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140030860
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140199034
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14019902f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401992bc
call fcn.1401a9a50
lea rdx, str._Service_Pack
lea rcx, [rbp - 0x60]
call fcn.14002bf30
mov rsi, rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
mov dword [rsp + 0x30], 5
mov r8d, 7
lea rdx, str.Unknown
lea rcx, [rsp + 0x38]
call fcn.140018360
xor edx, edx
mov r8d, MsiEnumComponentsExA
lea rcx, [rbp + 0x94]
call fcn.1401d04f0
mov dword [rbp + 0x90], MsiEnumComponentsExA
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14019910e
xor edx, edx
mov r8d, 0x258
lea rcx, [rbp + 0x2a0]
call fcn.1401d04f0
movzx r9d, word [rbp + 0x1a6]
movzx r8d, word [rbp + 0x1a4]
lea rdx, str._d._d
lea rcx, [rbp + 0x2a0]
call fcn.140198780
lea rax, [rbp + 0x2a0]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401990f0
mov r8, rbx
lea rdx, [rbp + 0x2a0]
lea rcx, [rsp + 0x38]
call fcn.140018360
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140030860
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140199170
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14019916a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401992c2
call fcn.1401a9a50
nop
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov ecx, 7
mov qword [rsp + 0x70], rcx
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x30], 0x11
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rdx, qword [rbp + 0x18]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x1401991ca
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x1401991ca
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
sar r8, 1
jmp 0x140199201
test dl, 4
jne 0x1401991f7
mov rax, qword [rbp - 0x20]
mov r9, qword [rax]
test r9, r9
je 0x1401991f7
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, r9
sar r8, 1
jmp 0x140199201
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140199215
lea rcx, [rsp + 0x58]
call fcn.140018360
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x140199243
mov rcx, rdi
call fcn.1400272a0
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x10], xmm1
mov ecx, 7
mov word [rsp + 0x58], r14w
cmp rcx, 8
jb 0x14019927d
lea rdx, [rcx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140199277
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401992b0
call fcn.1401a9a50
nop
lea rcx, [rbp - 0x70]
call fcn.140019440
mov rax, rdi
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1401a9a30
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1401e3dbc
int3
call fcn.1401e3dbc
int3
call fcn.1401e3dbc
int3
call fcn.1401e3dbc
int3