Function at 0x140050780
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 [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x50], r15
mov rdx, qword [r8]
lea rcx, [rsp + 0x50]
call fcn.140002f00
lea rcx, [rsp + 0x50]
call fcn.140022420
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 0x140050ad2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x78], 0x104
movups xmm0, xmmword [str._Config_]
movups xmmword [rbp - 0x28], xmm0
movzx eax, word [0x14007d998]
mov word [rbp - 0x18], ax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov dword [rbp - 0x38], 0xa
mov edi, r15d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x10]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140050abb
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x10]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140050a0c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
lea rax, [0x14006a288]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r15
mov word [rbp - 0x70], r15w
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140002f00
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.14002bcb0
mov ebx, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14005092a
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
jns 0x14005099c
lfence
lea r8, [rbp - 0x10]
mov edx, ebx
lea rcx, str.Could_not_create_or_find_pkgdef_Semaphore
call fcn.140045c88
nop
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x14005099a
cmp byte [rbp - 0x6f], r15b
je 0x140050990
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x140050990
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.140045c88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140050a0c
cmp byte [rbp - 0x70], r15b
setne sil
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x1400509fa
cmp byte [rbp - 0x6f], r15b
je 0x1400509f0
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x1400509f0
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.140045c88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test sil, sil
je 0x140050a0c
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call fcn.140008cc0
inc edi
mov dword [rsp + 0x78], 0x104
jmp 0x14005087b
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x140050b36
mov rcx, qword [rdi + 0x10]
sub rcx, 0x18
call fcn.140002a70
lea rbx, [rax + 0x18]
mov qword [rbp - 0x68], rbx
mov rax, qword [rdi + 8]
mov qword [rbp - 0x58], rax
test rax, rax
je 0x140050a4f
mov qword [rax], r15
jmp 0x140050a53
mov qword [rbp - 0x60], r15
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.1400089e4
nop
mov r8, rbx
xor edx, edx
lea rcx, str.Removing_abandoned_configuration_cache
call fcn.1400106fc
lea r8, [rbp - 0x68]
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call fcn.140049940
test eax, eax
jns 0x140050a9e
lfence
xor r8d, r8d
mov edx, eax
lea rcx, str.Could_not_remove_abandoned_configuration_cache
call fcn.140045c88
mov rbx, qword [rbp - 0x68]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140050abb
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp - 0x50], r15
jne 0x140050a1b
lea rcx, [rbp - 0x60]
call fcn.140008970
mov bl, byte [rsp + 0x40]
test bl, bl
je 0x140050add
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 0x140050b00
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140050b10
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.1400327c0
int3