Function at 0x14001f3c0
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 [0x1402b9ae8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
xor edx, edx
add rcx, 0xc
mov r8d, 0x118
call fcn.140190db0
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 0x14001f42f
lea rcx, [rdi + 8]
call rax
test eax, eax
jns 0x14001f61a
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 0x14001f47b
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 0x14001f597
test esi, esi
jne 0x14001f532
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 0x14001f58c
lea rcx, [rbp + 0x70]
call fcn.1401a0a64
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14001f5ab
test ebx, ebx
je 0x14001f5ab
mov dword [rdi + 0xc], esi
mov dword [rdi + 0x10], r14d
mov dword [rdi + 0x14], ebx
jmp 0x14001f60a
cmp dword [rdi + 0xc], 6
jne 0x14001f60a
cmp dword [rdi + 0x10], 2
jne 0x14001f60a
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.140190db0
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 0x14001f60a
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.14018e2d0
add rsp, 0x1a0
pop rdi
pop rbx
pop rbp
ret