Function at 0x14004d6c0
Capabilities:
Check os version
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc8
mov qword [rbp - 1], 0xfffffffffffffffe
mov r14, r9
mov r12, r8
mov qword [rbp - 0x39], rdx
mov r13, rcx
mov r15, qword [rbp + 0x7f]
mov qword [rbp + 7], r15
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x61], rbx
mov r8d, dword [0x1401d6d80]
imul r8d, r8d
mov eax, 0x66666667
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
cmp r8d, 8
jne 0x14004d743
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x59], rdi
mov rax, qword [r15]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x14004d7ed
lea r8, [0x14015d6e4]
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.14001b580
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14004d7d1
cmp dword [rdi + 0x10], 0
jl 0x14004d7c3
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14004d7c3
call fcn.1400027c0
mov rbx, rax
lock add dword [rdi + 0x10], esi
jg 0x14004d7b9
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x59], rax
jmp 0x14004d7d1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x59]
call fcn.140002670
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d7e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x61]
mov eax, dword [0x1401d6d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
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 0x14004d81c
dec dword [0x1401d7ee8]
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
xor edi, edi
cmp ecx, 6
ja 0x14004d842
jne 0x14004d9e7
cmp edx, 1
jbe 0x14004d9e7
cmp r14, 0xffffffff80000002
je 0x14004d9e7
mov r8b, 1
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.14004c6a0
nop
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call fcn.140010150
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004d8c4
cmp dword [rbx + 0x10], 0
jl 0x14004d8b6
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004d8b6
call fcn.1400027c0
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004d8aa
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x61], rax
xor edi, edi
jmp 0x14004d8c4
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x61]
call fcn.140002670
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d8dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d8f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x61]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004d950
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x51]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004d95a
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004d9e7
mov rcx, qword [rbp - 0x39]
mov rcx, qword [rcx]
mov eax, dword [rcx - 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x1401d6d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 9
jne 0x14004d9dd
dec dword [0x1401d7e24]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp - 0x19]
call fcn.14004c6a0
nop
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x21]
call fcn.140010150
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004da5a
cmp dword [rbx + 0x10], 0
jl 0x14004da4c
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004da4c
call fcn.1400027c0
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004da42
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x61], rax
jmp 0x14004da5a
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x61]
call fcn.140002670
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004da73
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004da8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x61]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004dae8
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x49]
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, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004daf2
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004db18
xor bl, bl
jmp 0x14004db90
mov rax, qword [rbp - 0x39]
mov r8, qword [rax]
mov ecx, dword [r8 - 0x10]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r8
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
cmp r8d, 9
jne 0x14004db81
dec dword [0x1401d7e24]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete bl
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004dba9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004dbc6
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 0x14004dbde
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret