Function at 0x14007a4cc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov qword [rbp - 0x51], rdx
xor esi, esi
lea rcx, [rbp - 0x49]
mov rdx, r8
mov qword [rbp - 0x49], rsi
mov rdi, r8
call fcn.140206a94
mov dword [rbp - 0x59], eax
test eax, eax
jne 0x14007a638
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14007a522
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x51]
mov dword [rsp + 0x28], 8
mov r9d, SafeArrayGetDim
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
test eax, eax
je 0x14007a64b
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x14007a635
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_set_registry_key
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
mov qword [rbp - 0x11], 0x36
mov qword [rbp - 1], 4
jb 0x14007a597
mov rbx, qword [rbx]
or rdx, 0xffffffffffffffff
lea rcx, [0x1403cb630]
mov r8, rcx
mov rax, rsi
test rbx, rbx
je 0x14007a5bc
mov r8, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], si
jne 0x14007a5b3
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov qword [rbp + 7], r8
mov dword [rbp + 0x13], esi
jb 0x14007a5d7
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x14007a5ee
mov rcx, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], si
jne 0x14007a5e5
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
lea rax, [rbp - 0x51]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x23], esi
mov qword [rbp + 0x2f], 8
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140479684]
xor r8d, r8d
mov dword [rsp + 0x20], 7
mov rcx, r10
call fcn.140001208
mov eax, dword [rbp - 0x59]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14007a71b
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14007a719
cmp qword [rbx + 0x18], 8
lea rax, str.Write_registry_value
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], MsiGetActiveDatabase
jb 0x14007a67b
mov rbx, qword [rbx]
or rdx, 0xffffffffffffffff
lea rcx, [0x1403cb630]
mov r8, rcx
mov rax, rsi
test rbx, rbx
je 0x14007a6a0
mov r8, rbx
mov rax, rdx
inc rax
cmp word [rbx + rax*2], si
jne 0x14007a697
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp - 1], eax
mov qword [rbp - 9], r8
mov dword [rbp + 3], esi
jb 0x14007a6bb
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x14007a6d2
mov rcx, rdi
mov rax, rdx
inc rax
cmp word [rdi + rax*2], si
jne 0x14007a6c9
lea eax, [rax*2 + 2]
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], eax
lea rax, [rbp - 0x51]
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x13], esi
mov qword [rbp + 0x1f], 8
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140479643]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001208
mov ebx, esi
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14007a730
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret