Function at 0x14004aa50
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xb0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r15, r9
mov r13, r8
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x41], rbx
mov r9d, dword [0x1401c6d80]
lea r8d, [r9 + 1]
imul r8d, r9d
mov eax, 0x2aaaaaab
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
add ecx, ecx
sub r8d, ecx
xor r14d, r14d
cmp r8d, 3
jne 0x14004aaf0
mov r8d, r14d
test r9d, r9d
je 0x14004aae9
mov edx, r9d
and edx, 1
add r8d, edx
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
jne 0x14004aad3
mov dword [0x1401c6d80], r8d
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x39], rdi
mov r12, qword [rbp + 0x7f]
mov rax, qword [r12]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x14004ab9f
lea r8, [0x14014dc24]
mov rdx, r12
lea rcx, [rbp + 0xf]
call fcn.14001b610
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14004ab83
cmp dword [rdi + 0x10], 0
jl 0x14004ab75
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14004ab75
call fcn.140002540
mov rbx, rax
lock add dword [rdi + 0x10], esi
jg 0x14004ab6b
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 - 0x39], rax
jmp 0x14004ab83
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x39]
call fcn.1400023f0
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ab9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x41]
call fcn.1400485b0
test al, al
je 0x14004ad56
cmp r15, 0xffffffff80000002
je 0x14004ad56
mov r8b, 1
mov rdx, r13
lea rcx, [rbp - 0x11]
call fcn.140049bd0
nop
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 1]
call fcn.14000f540
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004ac2c
cmp dword [rbx + 0x10], 0
jl 0x14004ac1e
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004ac1e
call fcn.140002540
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004ac14
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 - 0x41], rax
jmp 0x14004ac2c
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x41]
call fcn.1400023f0
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ac45
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ac5d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x41]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004acb9
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x31]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004acc3
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400482d0
test al, al
jne 0x14004acf6
mov r8d, r14d
mov eax, dword [0x1401c6d80]
test eax, eax
je 0x14004acef
nop dword [rax]
mov ecx, eax
and ecx, 1
add r8d, ecx
cdq
sub eax, edx
sar eax, 1
jne 0x14004ace0
mov dword [0x1401c6d80], r8d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004ad56
mov rcx, qword [rbp + 0x67]
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 [rbp + 0x5f]
mov rdx, qword [rdx]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp + 7]
call fcn.140049bd0
nop
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14000f540
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004adc9
cmp dword [rbx + 0x10], 0
jl 0x14004adbb
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004adbb
call fcn.140002540
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004adb1
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 - 0x41], rax
jmp 0x14004adc9
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x41]
call fcn.1400023f0
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ade2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004adfa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x41]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004ae56
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x29]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004ae60
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400482d0
test al, al
jne 0x14004ae89
mov eax, dword [0x1401c6d80]
test eax, eax
je 0x14004ae82
mov ecx, eax
and ecx, 1
add r14d, ecx
cdq
sub eax, edx
sar eax, 1
jne 0x14004ae73
mov dword [0x1401c6d80], r14d
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004aeaf
xor bl, bl
jmp 0x14004aef4
mov rax, qword [rbp + 0x67]
mov rcx, qword [rax]
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 rax, qword [rbp + 0x5f]
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete bl
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004af0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004af2a
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 0x14004af43
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret