Function at 0x14004e570
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, 0xd8
mov qword [rbp - 1], 0xfffffffffffffffe
mov r14, r9
mov r15, r8
mov r13d, edx
mov qword [rbp - 0x41], rcx
mov r12, qword [rbp + 0x7f]
mov qword [rbp + 7], r12
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x71], rbx
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x69], rdi
mov rax, qword [r12]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x14004e66a
lea r8, [0x14015c75c]
mov rdx, r12
lea rcx, [rbp - 0x11]
call fcn.14001b320
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14004e64e
cmp dword [rdi + 0x10], 0
jl 0x14004e640
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14004e640
call fcn.1400025c0
mov rbx, rax
lock add dword [rdi + 0x10], esi
jg 0x14004e636
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 - 0x69], rax
jmp 0x14004e64e
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.140002470
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e666
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
xor edi, edi
cmp ecx, 6
ja 0x14004e690
jne 0x14004e803
cmp edx, 1
jbe 0x14004e803
cmp r14, 0xffffffff80000002
je 0x14004e803
mov r8b, 1
mov rdx, r15
lea rcx, [rbp - 0x29]
call fcn.14004c380
nop
mov r8, rax
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 9]
call fcn.14000ff10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004e712
cmp dword [rbx + 0x10], 0
jl 0x14004e704
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004e704
call fcn.1400025c0
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004e6f8
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 - 0x71], rax
xor edi, edi
jmp 0x14004e712
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x71]
call fcn.140002470
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e72b
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 0x14004e743
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x71]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004e79e
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x59]
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 0x14004e7a8
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x51], r13d
lea rax, [rbp - 0x39]
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 0x14004e803
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp - 0x41]
mov rdx, qword [rdx]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x19]
call fcn.14004c380
nop
mov r8, rax
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x21]
call fcn.14000ff10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004e876
cmp dword [rbx + 0x10], 0
jl 0x14004e868
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004e868
call fcn.1400025c0
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004e85e
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 - 0x71], rax
jmp 0x14004e876
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x71]
call fcn.140002470
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e88f
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 0x14004e8a7
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 - 0x71]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004e904
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 0x14004e90e
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x61], r13d
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
je 0x14004e938
xor bl, bl
jmp 0x14004e974
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rax, qword [rbp - 0x41]
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete bl
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e98d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x71]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004e9aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e9c3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret