Function at 0x1016ab0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xf0
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rbp, rdx
mov rsi, rcx
lea rax, [rsp + 0x40]
mov qword [r11 + 8], rax
lea r13, [0x010048d0]
mov qword [rsp + 0x40], r13
lea r14, [0x010048c0]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], 0x126
mov dword [rsp + 0x54], 0x4000
xor r12d, r12d
mov dword [rsp + 0x58], r12d
mov word [r11 - 0x78], r12w
mov byte [r11 - 0x76], r12b
mov byte [r11 - 0x75], 1
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov qword [r11 - 0xa8], r12
mov qword [r11 - 0xa0], r12
mov qword [r11 - 0x98], r12
mov qword [r11 - 0x90], r12
mov qword [r11 - 0x88], r12
mov qword [r11 - 0x80], r12
lea rax, [rsp + 0x40]
mov qword [r11 + 0x20], rax
mov dword [r11 - 0x70], r12d
lea rcx, [0x010049f0]
mov qword [r11 - 0x68], rcx
mov rax, qword [rsp + 0x48]
mov qword [r11 - 0x60], rax
mov r8d, dword [rsp + 0x50]
mov dword [r11 - 0x58], r8d
mov eax, dword [rsp + 0x54]
mov dword [r11 - 0x54], eax
mov r9d, dword [rsp + 0x58]
mov dword [r11 - 0x50], r9d
cmp dword [0x010237e0], r12d
je 0x1016bf2
cmp dword [0x01023800], r12d
je 0x1016bf2
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0x40]
lea rcx, [0x010237e0]
call fcn.0100f6a0
lea rdx, [0x01001570]
lea rcx, [0x010237e0]
call fcn.0100f420
mov edx, dword [rsp + 0xd8]
lea rcx, [0x010237e0]
call fcn.0100f900
nop
cmp byte [rsp + 0xb3], 0
je 0x1016c21
lea rbx, [rsp + 0x60]
mov edi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x1016c17
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx], r12
add rbx, 8
sub rdi, 1
jne 0x1016c06
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8d, eax
test eax, eax
je 0x1016d28
lea rax, [rsp + 0x40]
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], 0x137
mov dword [rsp + 0x54], 0x4000
mov dword [rsp + 0x58], r12d
mov word [rsp + 0xb0], 0
mov byte [rsp + 0xb2], 0
mov byte [rsp + 0xb3], 1
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], r12
test r8d, r8d
jle 0x1016cf1
movzx r8d, r8w
or r8d, 0x80070000
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0x30], eax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], rax
lea r9, [0x010049a0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb8]
call fcn.010108a0
nop
cmp dword [0x010237e0], 0
je 0x1016da3
cmp dword [0x01023800], 0
je 0x1016da3
mov dword [rsp + 0x30], r12d
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xd8]
xor r8d, r8d
lea rdx, [0x01001570]
lea rcx, [0x010237e0]
call fcn.0100f6a0
mov r8d, dword [rsp + 0xb8]
lea rdx, [0x01001578]
lea rcx, [0x010237e0]
call fcn.0100f420
mov edx, dword [rsp + 0xd8]
lea rcx, [0x010237e0]
call fcn.0100f900
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret