Function at 0x140016a30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2308
call fcn.1400243a0
sub rsp, rax
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x140047170]
xor rax, rsp
mov qword [rsp + CMFCRibbonGallery::OnAfterChangeRect], rax
xor eax, eax
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x6c], 0
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2310]
call fcn.14001d5d0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140016aaf
mov eax, dword [rsp + 0x30]
jmp 0x140016fa2
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x2f0]
call fcn.140022180
test eax, eax
jne 0x140016adc
mov edx, 0x20f
mov rcx, qword [rsp + 0x2310]
call fcn.14001b4c0
jmp 0x140016fa2
mov rcx, qword [rsp + 0x2310]
call fcn.140020f40
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2310]
call fcn.14001d5d0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140016b12
mov eax, dword [rsp + 0x30]
jmp 0x140016fa2
movzx eax, word [rsp + 0x3c]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 8
je 0x140016b47
cmp dword [rsp + 0x48], 0x11
je 0x140016d99
cmp dword [rsp + 0x48], 0x13
je 0x140016cf2
cmp dword [rsp + 0x48], 0x4008
je 0x140016b73
jmp 0x140016f60
mov r9d, 1
lea r8, [rsp + 0x2f0]
mov rdx, qword [rsp + 0x2320]
mov rcx, qword [rsp + 0x2318]
call fcn.1400051d0
mov dword [rsp + 0x34], eax
jmp 0x140016f60
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 2
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x1e0]
call fcn.140014ef0
nop
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.140017050
nop
jmp 0x140016baf
lea rcx, [rsp + 0x1e0]
call fcn.140015fc0
test rax, rax
je 0x140016cd8
lea rcx, [rsp + 0x1e0]
call fcn.140015fc0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x4c], 0
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
test eax, eax
je 0x140016c8b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140016c50
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x30
jne 0x140016c50
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x58], rax
jmp 0x140016c7c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x140016bec
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
lea rcx, [rsp + 0x1e0]
call fcn.140015fc0
mov r8, rax
mov rdx, qword [rsp + 0x2320]
mov rcx, qword [rsp + 0x2318]
call fcn.140020b80
mov dword [rsp + 0x34], eax
jmp 0x140016ce0
mov dword [rsp + 0x34], 0xe
lea rcx, [rsp + 0x1e0]
call fcn.140015b10
jmp 0x140016f60
call fcn.1400222d0
mov dword [rsp + 0x88], eax
lea rcx, [rsp + 0x70]
call fcn.140014ab0
nop
mov edx, 0x400
lea rcx, [rsp + 0x2f0]
call fcn.140021060
mov qword [rsp + 0x90], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140016d61
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x70]
call fcn.1400156a0
mov eax, dword [rsp + 0x60]
jmp 0x140016fa2
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x2320]
mov rcx, qword [rsp + 0x2318]
call fcn.140020a60
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x70]
call fcn.1400156a0
jmp 0x140016f60
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
and eax, 1
test eax, eax
je 0x140016dc0
mov eax, 0x80004005
jmp 0x140016fa2
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0xd0]
call fcn.140014ed0
nop
movsxd rax, dword [rsp + 0x54]
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140017020
nop
jmp 0x140016df3
lea rcx, [rsp + 0xd0]
call fcn.140015fb0
test rax, rax
jne 0x140016e23
mov dword [rsp + 0x68], 0x80004005
lea rcx, [rsp + 0xd0]
call fcn.140015ae0
mov eax, dword [rsp + 0x68]
jmp 0x140016fa2
movsxd rax, dword [rsp + 0x54]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0xd0]
call fcn.140015fb0
mov rcx, qword [rsp + 0x98]
mov r8, rcx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0
jmp 0x140016e66
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x38], eax
jge 0x140016eee
lea rcx, [rsp + 0xd0]
call fcn.140015fb0
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x38]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
movsxd rax, dword [rsp + 0x38]
movzx ecx, word [rsp + rax*2 + 0x2f0]
call fcn.140018e50
movzx eax, al
mov ecx, dword [rsp + 0x38]
and ecx, 1
mov edx, 1
sub edx, ecx
mov ecx, edx
shl ecx, 2
shl eax, cl
mov rcx, qword [rsp + 0x80]
movzx ecx, byte [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x80]
mov byte [rcx], al
jmp 0x140016e5c
lea rcx, [rsp + 0xd0]
call fcn.140015fb0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x2318]
call fcn.140015ff0
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x2320]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0xd0]
call fcn.140015ae0
jmp 0x140016f60
cmp dword [rsp + 0x34], 0
je 0x140016f7a
mov dword [rsp + 0x6c], 0x204
mov ecx, dword [rsp + 0x34]
call fcn.140017bd0
jmp 0x140016fa2
mov rdx, qword [rsp + 0x2328]
mov rcx, qword [rsp + 0x2310]
call fcn.14001d5d0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140016fa0
mov eax, dword [rsp + 0x30]
jmp 0x140016fa2
xor eax, eax
mov rcx, qword [rsp + 0x22f0]
xor rcx, rsp
call fcn.140023e10
add rsp, 0x2308
ret