Function at 0x14004e4f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], r15d
mov qword [rbp - 0x70], r15
mov rdx, qword [r8]
lea rcx, [rsp + 0x50]
call fcn.140002cec
lea rcx, [rsp + 0x50]
call fcn.140021cac
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
setne bl
mov byte [rsp + 0x40], bl
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e817
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], r15d
mov dword [rsp + 0x44], 0x104
movups xmm0, xmmword [str._Config_]
movups xmmword [rbp - 0x30], xmm0
movzx eax, word [0x14007aa68]
mov word [rbp - 0x20], ax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r15
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x40], 0xa
mov edi, r15d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x10]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004e800
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14004e758
lea rax, [0x1400653c8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
mov word [rsp + 0x68], r15w
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140002cec
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.14002b358
mov ebx, eax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14004e674
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
jns 0x14004e6e5
lea r8, [rbp - 0x10]
mov edx, ebx
lea rcx, str.Could_not_create_or_find_pkgdef_Semaphore
call fcn.140043d74
nop
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14004e6e3
cmp byte [rsp + 0x69], r15b
je 0x14004e6d9
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14004e6d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
xor r8d, r8d
lea rcx, str.Failed_to_decrement_PkgDef_Semaphore
call fcn.140043d74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14004e758
cmp byte [rsp + 0x68], r15b
setne sil
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14004e746
cmp byte [rsp + 0x69], r15b
je 0x14004e73c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14004e73c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
xor r8d, r8d
lea rcx, str.Failed_to_decrement_PkgDef_Semaphore
call fcn.140043d74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test sil, sil
je 0x14004e758
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x68]
call fcn.140008560
inc edi
mov dword [rsp + 0x44], 0x104
jmp 0x14004e5d1
mov rdi, qword [rbp - 0x60]
test rdi, rdi
je 0x14004e877
mov rcx, qword [rdi + 0x10]
sub rcx, 0x18
call fcn.1400028e4
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov rax, qword [rdi + 8]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x14004e79c
mov qword [rax], r15
jmp 0x14004e7a0
mov qword [rbp - 0x68], r15
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.14002e7cc
nop
mov r8, rbx
xor edx, edx
lea rcx, str.Removing_abandoned_configuration_cache
call fcn.14001097c
lea r8, [rsp + 0x78]
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call fcn.140047630
test eax, eax
jns 0x14004e7e6
xor r8d, r8d
mov edx, eax
lea rcx, str.Could_not_remove_abandoned_configuration_cache
call fcn.140043d74
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004e800
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp - 0x58], r15
jne 0x14004e767
lea rcx, [rbp - 0x68]
call fcn.1400082dc
mov bl, byte [rsp + 0x40]
test bl, bl
je 0x14004e822
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004e842
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14004e851
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x358]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3