Function at 0x14007da40
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 [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
xor edx, edx
add rcx, 0xc
mov r8d, 0x118
call fcn.140286140
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 0x14007daaf
lea rcx, [rdi + 8]
call rax
test eax, eax
jns 0x14007dc9a
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 0x14007dafb
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 0x14007dc17
test esi, esi
jne 0x14007dbb2
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 rdx, str.CurrentBuild
xor eax, eax
mov dword [rsp + 0x40], 0x20
mov qword [rbp + 0x70], rax
xor r9d, r9d
mov qword [rbp + 0x78], rax
xor r8d, r8d
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14007dc0c
lea rcx, [rbp + 0x70]
call fcn.140298e00
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14007dc2b
test ebx, ebx
je 0x14007dc2b
mov dword [rdi + 0xc], esi
mov dword [rdi + 0x10], r14d
mov dword [rdi + 0x14], ebx
jmp 0x14007dc8a
cmp dword [rdi + 0xc], 6
jne 0x14007dc8a
cmp dword [rdi + 0x10], 2
jne 0x14007dc8a
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.140286140
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 0x14007dc8a
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.140282c10
add rsp, 0x1a0
pop rdi
pop rbx
pop rbp
ret