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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140070070]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x50], rsi
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea rcx, [rsp + 0x40]
call fcn.140022970
lea r14d, [rsi + 1]
test eax, eax
jne 0x140020f1a
xor edx, edx
mov r8d, 0xca
lea rcx, [rbp + 0x80]
call fcn.14002dc80
mov dword [rsp + 0x38], 0xc8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.ProductName
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020ed6
mov eax, dword [rsp + 0x3c]
dec eax
cmp eax, r14d
ja 0x140020ed6
cmp dword [rsp + 0x38], esi
jne 0x140020ed6
mov word [rbp + 0x80], si
test rbx, rbx
je 0x140020eec
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], esi
cmp word [rbp + 0x80], si
je 0x140020f1a
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.14000d338
nop
test rbx, rbx
je 0x140021132
mov rcx, rbx
jmp 0x14002112c
call fcn.1400064a8
mov rcx, rax
test rax, rax
je 0x14002115c
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x60], 0x114
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x64]
call fcn.14002dc80
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400210d3
sub eax, 1
je 0x140020ffa
cmp eax, 1
jne 0x1400210f3
mov eax, dword [rsp + 0x64]
cmp eax, 4
ja 0x140020f8f
lea rbx, str.Microsoft_Windows_NT
jmp 0x140020fea
cmp eax, 5
jne 0x140020fc1
mov eax, dword [rsp + 0x68]
test eax, eax
jne 0x140020fa5
lea rbx, str.Microsoft_Windows_2000
jmp 0x140020fea
cmp eax, r14d
jne 0x140020fb3
lea rbx, str.Microsoft_Windows_XP
jmp 0x140020fea
cmp eax, 2
jne 0x140020fe3
lea rbx, str.Microsoft_Windows_Server_2003
jmp 0x140020fea
cmp eax, 6
jne 0x140020fe3
mov eax, dword [rsp + 0x68]
test eax, eax
jne 0x140020fd7
lea rbx, str.Microsoft_Windows_Vista
jmp 0x140020fea
cmp eax, r14d
lea rbx, str.Microsoft_Windows_Longhorn_Server
je 0x140020fea
lea rbx, str.Microsoft_Windows_Vista_Later
mov rcx, rbx
call fcn.140032038
mov rdx, rbx
jmp 0x1400210e6
cmp dword [rsp + 0x64], 4
jne 0x1400210be
mov eax, dword [rsp + 0x68]
test eax, eax
jne 0x140021055
lea rcx, str.Microsoft_Windows_95
call fcn.140032038
mov r8d, eax
lea rdx, str.Microsoft_Windows_95
lea rcx, [rsp + 0x30]
call fcn.1400060fc
movzx eax, word [rsp + 0x76]
sub ax, 0x42
cmp ax, r14w
ja 0x1400210f3
lea rcx, str._OSR2
call fcn.140032038
lea rdx, str._OSR2
jmp 0x140021095
cmp eax, 0xa
jne 0x1400210a4
lea rcx, str.Microsoft_Windows_98
call fcn.140032038
mov r8d, eax
lea rdx, str.Microsoft_Windows_98
lea rcx, [rsp + 0x30]
call fcn.1400060fc
cmp word [rsp + 0x76], 0x41
jne 0x1400210f3
lea rcx, [0x140066508]
call fcn.140032038
lea rdx, [0x140066508]
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14000e0f8
jmp 0x1400210f3
cmp eax, 0x5a
jne 0x1400210be
lea rcx, str.Microsoft_Windows_Me
call fcn.140032038
lea rdx, str.Microsoft_Windows_Me
jmp 0x1400210e6
lea rcx, str.Microsoft_Windows_Me_later
call fcn.140032038
lea rdx, str.Microsoft_Windows_Me_later
jmp 0x1400210e6
lea rcx, str.Microsoft_Win32s
call fcn.140032038
lea rdx, str.Microsoft_Win32s
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.1400060fc
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000d3c8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140021122
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140021132
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14002b930
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140006280
int3