Function at 0x14004ec00
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xa0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r9
mov r12, r8
mov r13d, edx
mov r14, rcx
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x21], rax
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x19], rbx
mov r8d, dword [0x1401d6d80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 3
jne 0x14004ecb2
call fcn.1400d57c0
mov r8d, dword [0x1401d6d80]
cmp r8d, eax
jne 0x14004ecb2
dec r8d
mov dword [0x1401d6d80], r8d
mov r15, qword [rbp + 0x7f]
mov rax, qword [r15]
or edi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x14004ed4e
lea r8, [0x14015d7b4]
mov rdx, r15
lea rcx, [rbp - 1]
call fcn.14001b580
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004ed2f
cmp dword [rbx + 0x10], 0
jl 0x14004ed21
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004ed21
call fcn.1400027c0
mov r14, rax
lock add dword [rbx + 0x10], edi
jg 0x14004ed13
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r14 + 0x18]
mov qword [rbp - 0x19], rax
mov r14, qword [rbp + 0x5f]
jmp 0x14004ed2f
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x19]
call fcn.140002670
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ed47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [0x1401d6d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 3
jne 0x14004ed7a
dec dword [0x1401d7ee8]
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
cmp ecx, 6
ja 0x14004ed9e
jne 0x14004eed0
cmp edx, 1
jbe 0x14004eed0
cmp rsi, 0xffffffff80000002
je 0x14004eed0
mov r8b, 1
mov rdx, r12
lea rcx, [rbp + 0x1f]
call fcn.14004c6a0
nop
mov r8, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0xf]
call fcn.140010150
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x21]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004ee22
cmp dword [rbx + 0x10], 0
jl 0x14004ee14
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004ee14
call fcn.1400027c0
mov r14, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004ee0a
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r14 + 0x18]
mov qword [rbp - 0x21], rax
jmp 0x14004ee22
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x21]
call fcn.140002670
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ee3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ee53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x21]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004eeb0
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004eeba
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, rsi
lea r8, [rbp - 0x21]
mov edx, r13d
mov r14, qword [rbp + 0x5f]
mov rcx, r14
call fcn.14004f070
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp + 0x17]
call fcn.14004c6a0
nop
mov r8, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.140010150
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp - 0x21]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004ef4b
cmp dword [rbx + 0x10], 0
jl 0x14004ef3d
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004ef3d
call fcn.1400027c0
mov r14, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004ef2f
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r14 + 0x18]
mov qword [rbp - 0x21], rax
mov r14, qword [rbp + 0x5f]
jmp 0x14004ef4b
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x21]
call fcn.140002670
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ef64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ef7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x21]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004efd9
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004efe3
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, rsi
lea r8, [rbp - 0x21]
mov edx, r13d
mov rcx, r14
call fcn.14004f070
movzx ebx, al
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f011
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004f02e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004f045
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx eax, bl
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret