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

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14024e280]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
xor edx, edx
add rcx, 0xc
mov r8d, 0x118
call fcn.140179950
lea rcx, str.ntdll.dll
mov dword [rdi + 8], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001499f
lea rcx, [rdi + 8]
call rax
test eax, eax
jns 0x140014b80
mov qword [rsp + 0x1c8], rsi
lea rcx, [rdi + 8]
mov qword [rsp + 0x1d0], r14
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
lea r8, [rsp + 0x38]
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov r14d, ebx
mov esi, ebx
lea edx, [rbx + 0x64]
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x1400149eb
mov rcx, qword [rsp + 0x38]
mov esi, dword [rcx + 0x18]
mov r14d, dword [rcx + 0x1c]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014afd
test esi, esi
jne 0x140014aa2
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.CurrentMajorVersionNumber
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea rdx, str.CurrentMinorVersionNumber
test eax, eax
mov dword [rsp + 0x48], ebx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 4
cmove esi, dword [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove r14d, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.CurrentBuild
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x20
lea rax, [rbp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014af2
lea rcx, [rbp + 0x70]
call fcn.140153d70
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x140014b11
test ebx, ebx
je 0x140014b11
mov dword [rdi + 0xc], esi
mov dword [rdi + 0x10], r14d
mov dword [rdi + 0x14], ebx
jmp 0x140014b70
cmp dword [rdi + 0xc], 6
jne 0x140014b70
cmp dword [rdi + 0x10], 2
jne 0x140014b70
mov r8b, 1
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x11c
mov rbx, rax
call fcn.140179950
mov r8, rbx
mov dword [rsp + 0x50], 0x11c
mov edx, 1
mov dword [rsp + 0x58], 3
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140014b70
mov dword [rdi + 0x10], 3
mov rsi, qword [rsp + 0x1c8]
mov r14, qword [rsp + 0x1d0]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14013c1a0
add rsp, 0x1a0
pop rdi
pop rbx
pop rbp
ret