Function at 0x140123f78
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r13, r9
mov r12, r8
mov rsi, rdx
mov rax, qword [rbp + 0x138]
xor r14d, r14d
mov bl, r14b
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x30], rcx
mov r8d, 0x4e4
mov rdx, qword [rax]
lea rcx, [rbp + 0x30]
call fcn.140008c4c
nop
mov qword [rbp - 0x60], 0xf
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], r14b
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
mov rdx, qword [rbp + 0x30]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x78]
call fcn.1400031c0
nop
lea rax, [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
cmp rcx, rax
je 0x140124028
call fcn.1400be914
cmp qword [rbp - 0x68], r14
je 0x140124260
cmp byte [rbp + 0x140], r14b
je 0x14012404c
lea rcx, [rbp - 0x78]
call fcn.140122d08
test al, al
je 0x140124260
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x40], r14
mov r9d, 0x2011f
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140010dd0
test eax, eax
jne 0x14012424f
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r14
mov word [rbp - 0x50], r14w
xor eax, eax
mov rcx, r15
mov rdi, qword [r13]
repne scasw ax, word [rdi]
not rcx
lea r12d, [rax + 1]
sub rcx, r12
mov r8, rcx
mov rdx, qword [r13]
lea rcx, [rbp - 0x50]
call fcn.14008f6dc
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.1402e1850
nop
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x60]
call fcn.140123f28
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14002e7e0
mov rdi, qword [rax]
mov eax, r14d
test rdi, rdi
setne al
lea esi, [r12 + 0xc]
test eax, eax
jne 0x140124102
mov edi, esi
jmp 0x140124132
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, r12d
xor r8d, r8d
lea rdx, [0x140384570]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, r15d
lock xadd dword [rdx + 0x10], ecx
add ecx, r15d
test ecx, ecx
jg 0x140124153
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x1401241fc
lea rdx, [rbp - 0x78]
lea rcx, [rbp]
call fcn.140123f28
nop
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdx, qword [rbp]
lea rcx, [rsp + 0x48]
call fcn.14002e7e0
mov rdi, qword [rax]
mov eax, r14d
test rdi, rdi
setne al
test eax, eax
je 0x1401241c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, r12d
xor r8d, r8d
lea rdx, [0x140384568]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov ecx, r15d
lock xadd dword [rdx + 0x10], ecx
add ecx, r15d
test ecx, ecx
jg 0x1401241e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx ebx, bl
test esi, esi
cmove ebx, r12d
cmp qword [rbp + 0x18], 0x10
jb 0x1401241fc
mov rcx, qword [rbp]
call fcn.1400be0f4
nop
cmp qword [rsp + 0x78], 0x10
jb 0x14012420e
mov rcx, qword [rsp + 0x60]
call fcn.1400be0f4
mov edi, 0xf
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x60], r14b
cmp qword [rbp - 0x10], 0x10
jb 0x140124232
mov rcx, qword [rbp - 0x28]
call fcn.1400be0f4
mov qword [rbp - 0x10], rdi
mov qword [rbp - 0x18], r14
mov byte [rbp - 0x28], r14b
cmp qword [rbp - 0x38], 8
jb 0x14012424f
mov rcx, qword [rbp - 0x50]
call fcn.1400be0f4
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140124260
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp - 0x60], 0x10
jb 0x140124270
mov rcx, qword [rbp - 0x78]
call fcn.1400be0f4
mov al, bl
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret