Function at 0x14000a87c
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x140018210]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
mov rbx, rcx
mov dword [rsp + 0x50], edx
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor esi, esi
mov edi, eax
cmp dword [0x14001823c], 0xffffffff
jne 0x14000a9a8
cmp byte [0x14001944c], sil
mov r9d, 0x20019
mov dword [0x14001823c], esi
mov qword [rsp + 0x60], rsi
jne 0x14000a8f2
cmp byte [0x1400190f8], sil
mov eax, 0x20119
cmovne r9d, eax
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftWindowsInstaller
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a9a8
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
lea rdx, str.Debug
lea rax, [rsp + 0x58]
mov dword [rsp + 0x78], 0x28
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov dword [rsp + 0x58], 0x50
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a97f
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x14001823c], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp dword [rsp + 0x78], 0x28
jle 0x14000a9a8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
cmp dword [0x140018eb4], esi
je 0x14000aa9f
cmp dword [rsp + 0x50], esi
je 0x14000aa9f
cmp byte [0x14001944c], sil
mov eax, 0x20006
mov qword [rsp + 0x58], rsi
jne 0x14000a9e0
cmp byte [0x1400190f8], sil
mov ecx, 0x20106
cmovne eax, ecx
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInstallerCA
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000aa9f
mov rcx, qword [rsp + 0x58]
lea r9d, [rax + 4]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LastError
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, str.LastErrorMessage
mov r9d, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [0x14001823c]
and eax, 3
test al, al
je 0x14000ab06
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x802
call sub.msvcrt.dll_memset
mov r9d, dword [rsp + 0x50]
lea rcx, [rbp - 0x30]
mov edx, 0x401
test r9d, r9d
je 0x14000aae3
lea r8, str.Error:__d.__s._r_n
mov qword [rsp + 0x20], rbx
call fcn.140001530
jmp 0x14000aaf2
mov r9, rbx
lea r8, str._s_r_n
call fcn.140001530
test eax, eax
js 0x14000ab06
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.1400107f0
mov rbx, qword [rsp + 0x920]
add rsp, 0x8f0
pop rdi
pop rsi
pop rbp
ret