Function at 0x14003f650
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x448]
sub rsp, 0x540
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rbx, rcx
mov rax, qword [rcx]
xor edi, edi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0xcf0000
lea rcx, [0x140460338]
mov qword [rsp + 0x20], rcx
lea r9, str.HPSpatialSurroundPresetSelector
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x60], rax
lea r8d, [rdi + 3]
lea rdx, str.HpProximitySensorNative.dll
lea rcx, [rbp - 0x60]
call fcn.1400429f0
nop
lea rcx, [rbx + 0x40]
mov rdx, qword [rbp - 0x60]
call fcn.14003aa30
nop
lea rax, [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
cmp rcx, rax
je 0x14003f703
call fcn.1402384fc
mov dword [rsp + 0x78], 0x3b6
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003f77a
mov dword [rbp - 0x7c], 4
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.DefaultNtoFReferenceDistance
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x78]
mov dword [rbx + 0x98], eax
mov dword [rsp + 0x7c], 0x28a
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003f7fb
mov dword [rbp - 0x78], 4
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
lea rdx, str.DefaultFtoNReferenceDistance
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x7c]
mov dword [rbx + 0x9c], eax
mov dword [rbp - 0x80], 2
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003f87a
mov dword [rbp - 0x74], 4
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.SensorHitCount
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbp - 0x80]
mov dword [rbx + 0xa0], eax
lea rcx, [rbp + 0x30]
call fcn.14003f940
nop
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.140062690
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
setne al
mov byte [rbx + 0x458], al
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003f8d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
mov rcx, rbx
call fcn.1400418f0
lea rdx, [rbx + 0x38]
test rbx, rbx
cmove rdx, rdi
lea rcx, [rbx + 0x308]
call fcn.14003c170
lea rdx, [rbx + 0x30]
test rbx, rbx
cmove rdx, rdi
lea rcx, [rbx + 0xa8]
call fcn.1400858b0
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.140041410
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret