Function at 0x140198710
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 [0x1402be5c8]
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.1401cff00
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 0x14019880f
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, [0x14024b398]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140198805
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.140199ae0
test al, al
je 0x140198828
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 0x140198847
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.140198f00
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140198876
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140030860
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1401988c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401988bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198cc6
call fcn.1401a9460
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.1401cff00
mov dword [rbp + 0x90], MsiEnumComponentsExA
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x1401989dc
cmp dword [rbp + 0xa0], 2
jne 0x140198986
cmp dword [rbp + 0x94], 5
jb 0x140198986
xor edx, edx
mov r8d, MsiEnumComponentsExA
lea rcx, [rbp + 0x94]
call fcn.1401cff00
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.1401cff00
mov r8d, dword [rbp + 0x9c]
lea rdx, [0x14022e350]
lea rcx, [rbp + 0x2a0]
call fcn.140198190
lea rax, [rbp + 0x2a0]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1401989c0
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 0x140198a44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140198a3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198ccc
call fcn.1401a9460
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.1401cff00
mov dword [rbp + 0x90], MsiEnumComponentsExA
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140198b1e
xor edx, edx
mov r8d, 0x258
lea rcx, [rbp + 0x2a0]
call fcn.1401cff00
movzx r9d, word [rbp + 0x1a6]
movzx r8d, word [rbp + 0x1a4]
lea rdx, str._d._d
lea rcx, [rbp + 0x2a0]
call fcn.140198190
lea rax, [rbp + 0x2a0]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140198b00
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 0x140198b80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140198b7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198cd2
call fcn.1401a9460
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 0x140198bda
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x140198bda
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 0x140198c11
test dl, 4
jne 0x140198c07
mov rax, qword [rbp - 0x20]
mov r9, qword [rax]
test r9, r9
je 0x140198c07
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 0x140198c11
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140198c25
lea rcx, [rsp + 0x58]
call fcn.140018360
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x140198c53
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 0x140198c8d
lea rdx, [rcx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140198c87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198cc0
call fcn.1401a9460
nop
lea rcx, [rbp - 0x70]
call fcn.140019440
mov rax, rdi
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1401a9440
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.1401e37cc
int3
call fcn.1401e37cc
int3
call fcn.1401e37cc
int3
call fcn.1401e37cc
int3