Function at 0x140041d0c
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 [0x140090008]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, 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.140009580
nop
lea rcx, [rsp + 0x50]
call fcn.140009184
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 rdi, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004203d
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 [0x14007ca98]
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 0x140042021
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140041f79
lea rax, [0x14007e4c0]
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.140009580
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140049568
mov ebx, eax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140041e95
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
jns 0x140041f06
lea r8, [rbp - 0x10]
mov edx, ebx
lea rcx, str.Could_not_create_or_find_pkgdef_Semaphore
call fcn.140032190
nop
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140041f04
cmp byte [rsp + 0x69], r15b
je 0x140041efa
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x140041efa
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.140032190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140041f79
cmp byte [rsp + 0x68], r15b
setne sil
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140041f67
cmp byte [rsp + 0x69], r15b
je 0x140041f5d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x140041f5d
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.140032190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test sil, sil
je 0x140041f79
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x68]
call fcn.1400145bc
inc edi
mov dword [rsp + 0x44], 0x104
jmp 0x140041df1
mov rdi, qword [rbp - 0x60]
test rdi, rdi
je 0x140042098
mov rcx, qword [rdi + 0x10]
sub rcx, 0x18
call fcn.14000a2b4
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov rax, qword [rdi + 8]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140041fbd
mov qword [rax], r15
jmp 0x140041fc1
mov qword [rbp - 0x68], r15
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.1400147e4
nop
mov r8, rbx
xor edx, edx
lea rcx, str.Removing_abandoned_configuration_cache
call fcn.1400320c8
lea r8, [rsp + 0x78]
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call fcn.140038168
test eax, eax
jns 0x140042007
xor r8d, r8d
mov edx, eax
lea rcx, str.Could_not_remove_abandoned_configuration_cache
call fcn.140032190
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042021
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp qword [rbp - 0x58], r15
jne 0x140041f88
lea rcx, [rbp - 0x68]
call fcn.140014770
mov rdi, qword [rsp + 0x50]
mov bl, byte [rsp + 0x40]
test bl, bl
je 0x140042048
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042063
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 0x140042072
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x358]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3