Function at 0x140219d40
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov r13, rdx
mov r12, rcx
xor ebx, ebx
mov rdx, qword [rdx]
test rdx, rdx
je 0x140219fb5
mov r14d, dword [rdx + 0x60]
or r14d, 0xf003f
mov ecx, dword [rdx + 0x50]
call fcn.140217510
mov qword [rbp + 0x48], rax
mov edx, dword [rdx + 0x50]
lea rcx, [rbp + 0x38]
call fcn.140219ae0
nop
cmp qword [r12 + 0x130], rbx
jne 0x140219e28
lea ecx, [rbx + 0x50]
call fcn.1400be454
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140219dc4
mov rcx, rax
call fcn.1402df3f8
nop
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.1400059d0
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [r12 + 0x130]
mov qword [rdx], rax
mov qword [r12 + 0x130], rcx
mov rcx, qword [r12 + 0x138]
mov rax, qword [rdx + 8]
mov qword [r12 + 0x138], rax
mov qword [rdx + 8], rcx
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x140219e28
lock dec dword [rdi + 8]
jne 0x140219e28
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rdi + 0xc]
jne 0x140219e28
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [r12 + 0x130]
mov rdx, qword [r13]
mov rax, qword [rcx]
add rdx, 0x48
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x48]
call qword [rax + 0x78]
mov ebx, eax
test eax, eax
jne 0x140219f96
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], eax
and qword [rbp - 0x10], 0
lea r8, [0x140352420]
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x48]
call fcn.14001c3e0
nop
mov r8, qword [r13]
add r8, 0x58
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140004278
mov r9d, r14d
mov r8, qword [rax]
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.1400114d4
mov ebx, eax
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140219ebb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140219eda
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x140219f86
mov rax, qword [r13]
mov edx, dword [rax + 0x50]
lea rcx, [rbp - 0x40]
call fcn.140219a90
mov rdi, qword [rax]
xor eax, eax
test rsi, rsi
setne al
test eax, eax
jne 0x140219f06
lea ebx, [rax + 0xd]
jmp 0x140219f34
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140219f53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x140219f86
mov r9, qword [r13]
test rsi, rsi
jne 0x140219f64
xor ecx, ecx
jmp 0x140219f76
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rsi
lea rcx, [r9 + 8]
call fcn.14000c9f8
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140219f96
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140219fb5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret