Function at 0x14004db50
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rdi, rdx
mov qword [rbp + 0xd8], rdx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
lea rax, vtable.Windows::RegistryHelper.0
mov qword [rbp + 0xb8], rax
mov dword [rbp + 0xc0], 0x200
mov qword [rbp + 0xd8], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
lea r8d, [r12 + 0x2f]
lea rdx, str.SOFTWARESophosAutoUpdateUpdateStatusDetails
lea rcx, [rbp - 0x70]
call fcn.140005e00
nop
mov dword [rsp + 0x20], 0x20019
lea r9, [rbp - 0x70]
mov r8, 0xffffffff80000002
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0xb8]
call fcn.14007c940
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14004dc45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004dc40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e0f0
call fcn.1400c59a0
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov r14d, r12d
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0xf0]
call fcn.1400cb730
mov dword [rbp + 0xb0], 0x100
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xb0]
lea r8, [rbp + 0xf0]
xor edx, edx
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004e070
mov r15d, dword [rbp + 0xc0]
or r15d, 0x20019
lea ebx, [rax + 1]
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc8], r12
mov qword [rbp + 0xd0], 7
mov word [rbp + 0xb8], r12w
lea rax, [rbp + 0xf0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14004dd10
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xb8]
call fcn.140005e00
nop
mov qword [rbp + 0xe0], r12
or ebx, 4
mov dword [rsp + 0x40], ebx
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rdx, qword [rbp + 0xb8]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14004e0b7
mov rdx, qword [rbp + 0xd0]
cmp rdx, 8
jb 0x14004ddc3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ddbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e139
call fcn.1400c59a0
mov qword [rbp + 0xc8], r12
mov qword [rbp + 0xd0], 7
mov word [rbp + 0xb8], r12w
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov r8d, 4
lea rdx, [0x140125c98]
lea rcx, [rbp - 0x30]
call fcn.140005e00
nop
mov r9d, 2
lea r8, [rbp - 0x30]
mov rdx, qword [rbp + 0xe0]
lea rcx, [rbp + 0xb8]
call fcn.14007eb10
nop
movzx eax, byte [rbp + 0xd0]
test al, al
je 0x14004e25c
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
cmp rdx, r8
je 0x14004e220
add r8, 0xfffffffffffffffe
cmp r12w, word [r8]
jne 0x14004e1ea
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
cmp rdx, r8
je 0x14004de90
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x50]
call fcn.140005e00
movzx eax, byte [rbp + 0xd0]
or ebx, 0x18
mov dword [rsp + 0x40], ebx
test al, al
je 0x14004dea8
lea rcx, [rbp + 0xb8]
call fcn.140031680
nop
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
mov r8d, 0x10
lea rdx, str.InstalledVersion
lea rcx, [rbp - 0x50]
call fcn.140005e00
nop
mov r9d, 2
lea r8, [rbp - 0x50]
mov rdx, qword [rbp + 0xe0]
lea rcx, [rbp + 0xb8]
call fcn.14007eb10
nop
movzx eax, byte [rbp + 0xd0]
test al, al
je 0x14004e1b1
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
cmp rdx, r8
je 0x14004e175
add r8, 0xfffffffffffffffe
cmp r12w, word [r8]
jne 0x14004e13f
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
cmp rdx, r8
je 0x14004df59
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x70]
call fcn.140005e00
movzx eax, byte [rbp + 0xd0]
or ebx, 0x60
mov dword [rsp + 0x40], ebx
test al, al
je 0x14004df71
lea rcx, [rbp + 0xb8]
call fcn.140031680
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14004dfca
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rdx + 0x30], xmm1
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r12w
add qword [rdi + 8], 0x40
jmp 0x14004dfd8
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.140025cc0
nop
lea rcx, [rsp + 0x70]
call fcn.14000cba0
lea rcx, [rsp + 0x50]
call fcn.14000cba0
nop
lea rcx, [rbp - 0x50]
call fcn.14000cba0
nop
lea rcx, [rbp - 0x30]
call fcn.14000cba0
and ebx, 0xfffffffb
mov rcx, qword [rbp + 0xe0]
test rcx, rcx
je 0x14004e015
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0xf0]
call fcn.1400cb730
mov dword [rbp + 0xb0], 0x100
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xb0]
lea r8, [rbp + 0xf0]
mov edx, r14d
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14004dcd2
cmp eax, 0x103
jne 0x14004e0f6
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14004e089
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1400c5980
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, str.OpenKeyFunction_failed
lea rcx, [rbp + 0x10]
call fcn.14000c390
nop
mov r9d, esi
lea r8, [rbp + 0xb8]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp - 0x10]
call fcn.1400cb8d0
nop
call fcn.1400da6f8
int3
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140018120
nop
mov r8, rax
lea rdx, str.RegEnumKeyExW_failed:
lea rcx, [rbp - 0x10]
call fcn.14000d780
nop
mov rdx, rax
lea rcx, [rbp + 0xb8]
call fcn.1400040f0
lea rdx, [0x140156678]
lea rcx, [rbp + 0xb8]
call fcn.1400cb8d0
nop
call fcn.1400da6f8
nop
lea rdx, str.String_values_should_always_be_null_terminated
lea rcx, [rbp + 0x30]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp + 0x50]
call fcn.1400cb8d0
nop
lea rdx, str.String_values_should_always_have_at_least_a_null_terminating_character
lea rcx, [rbp + 0x70]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x90]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp + 0x90]
call fcn.1400cb8d0
nop
lea rdx, str.Value_not_found
lea rcx, [rbp - 0x10]
call fcn.14000c390
nop
mov r9d, 2
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x10]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp + 0x10]
call fcn.1400cb8d0
nop
lea rdx, str.String_values_should_always_be_null_terminated
lea rcx, [rbp + 0x10]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp - 0x10]
call fcn.1400cb8d0
nop
lea rdx, str.String_values_should_always_have_at_least_a_null_terminating_character
lea rcx, [rbp + 0x90]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x70]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp + 0x70]
call fcn.1400cb8d0
nop
lea rdx, str.Value_not_found
lea rcx, [rbp + 0x50]
call fcn.14000c390
nop
mov r9d, 2
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp + 0x30]
call fcn.1400cb8d0
int3