Function at 0x1400860c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8040]
mov eax, 0x8140
call fcn.1400ad030
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x8180], rbx
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rbp + 0x8030], rax
mov rbx, r9
mov qword [rsp + 0x40], rbx
mov r14, r8
mov qword [rsp + 0x30], r8
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], rbx
test rdx, rdx
jne 0x14008614e
mov r8d, 0xd1
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14004c3d0
nop
lea r15, [r12 - 1]
jmp 0x140086c46
xor edi, edi
mov qword [rbp - 0x80], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 9]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea r15, [rdi - 1]
cmp qword [rbp - 0x80], rdi
je 0x140086caa
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x58], edi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x70], rax
mov r13d, edi
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], edi
mov qword [rbp - 0x68], rdi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140086ce4
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 8], rax
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140086cef
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x10], rax
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.140006110
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8d, [rdi + 0x27]
lea rcx, [rbp - 0x28]
call fcn.140037d20
lea r8, [0x1400e8be8]
lea rdx, [0x1400c45b4]
lea rcx, [rbp - 0x28]
call fcn.14000b200
mov rbx, qword [rbp + 0x80a0]
mov qword [rsp + 0x28], rbx
mov rsi, qword [rbp - 0x28]
mov qword [rsp + 0x20], rsi
mov r9, qword [r14]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4PresetRender
lea rdx, str._s_s__s__llx
lea rcx, [rbp - 8]
call fcn.140006190
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov r9, qword [r14]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4PresetCapture
lea rdx, str._s_s__s__llx
lea rcx, [rbp - 0x10]
call fcn.140006190
mov r8d, 0x2001b
mov rdx, qword [rbp - 8]
mov rcx, 0xffffffff80000002
call fcn.14006aa70
mov r8d, 0x2001b
mov rdi, qword [rbp - 0x10]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14006aa70
mov r9d, 0x2001b
mov r8, qword [rbp - 8]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x60]
call fcn.140021cb0
test eax, eax
je 0x1400862db
mov r8d, 0xec
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EXIT_ON_TRUE
call fcn.14004c3d0
xor ebx, ebx
jmp 0x140086b90
mov r9d, 0x2001b
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x78]
call fcn.140021cb0
test eax, eax
je 0x140086318
mov r8d, 0xef
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EXIT_ON_TRUE
call fcn.14004c3d0
xor ebx, ebx
jmp 0x140086b8c
xor ebx, ebx
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 9]
xor r8d, r8d
lea rdx, str.APOTunings
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140086b6a
mov dword [rbp - 0x38], ebx
mov dword [rbp - 0x20], 0x1ffe
mov dword [rbp - 0x34], 0x1ffe
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x6030]
call fcn.1400aa8f0
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x30]
call fcn.1400aa8f0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6030]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.TuningFileBasePath
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400864c5
lea rax, [rbp - 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.TuningFiles
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400864b6
lea r14, [rbp + 0x30]
mov edi, ebx
cmp dword [rbp - 0x34], ebx
jle 0x1400864e1
nop word [rax + rax]
mov rbx, r15
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x140086403
test ebx, ebx
jle 0x140086491
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140086cd9
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x18], rax
mov r9, r14
lea r8, [rbp + 0x6030]
lea rdx, [0x1400c3fc8]
lea rcx, [rbp + 0x18]
call fcn.140006190
mov rsi, qword [rbp + 0x18]
lea rcx, [rsi - 0x18]
call fcn.140006110
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x48]
call fcn.140087130
lea edi, [rdi + rbx*2]
mov eax, r15d
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140086491
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add edi, 2
mov eax, edi
jns 0x14008649b
lea eax, [rdi + 1]
sar eax, 1
cdqe
lea r14, [rbp + 0x30]
lea r14, [r14 + rax*2]
cmp edi, dword [rbp - 0x34]
jl 0x140086400
mov rsi, qword [rbp - 0x28]
jmp 0x1400864e1
mov r8d, LPSAFEARRAY_UserUnmarshal
lea rcx, str._s__d_RegQueryValueEx_TuningFiles_ret
jmp 0x1400864d2
mov r8d, 0x127
lea rcx, str._s__d_RegQueryValueEx_TuningFileBasePath_ret
mov r9d, eax
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
call fcn.14004c3d0
mov r8d, 0x12b
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov dword [rbp - 0x30], 0x1ffe
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x2030]
call fcn.1400aa8f0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2030]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.ExtraTunings
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov r8d, 0x134
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov r13, qword [rbp - 0x78]
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
test ebx, ebx
jne 0x1400866b3
mov r8d, 0x139
lea rcx, [0x1400c4050]
call fcn.14004c3d0
lea rdi, [rbp + 0x2030]
xor r14d, r14d
mov ecx, dword [rbp - 0x30]
test ecx, ecx
jle 0x1400866c8
mov r12, qword [rbp - 0x60]
mov rsi, qword [rsp + 0x38]
mov rbx, r15
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400865a4
test ebx, ebx
jle 0x140086683
mov qword [rsp + 0x20], rdi
mov r9, qword [rsi + 0x10]
mov r8d, 0x144
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EpId_s_TuningKey_s
call fcn.14004c3d0
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008660a
mov rdx, qword [rbp - 0x48]
mov rcx, r12
call fcn.14006c860
jmp 0x14008662a
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 0x2a0
lea rdx, str.CRtkBssGen4PresetLoader::CloneExtraTuningData2ServiceStore
lea rcx, str._s__d_RegOpenKeyExW__s__ret_d
call fcn.14004c3d0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008665c
mov rdx, qword [rbp - 0x40]
mov rcx, r13
call fcn.14006c860
jmp 0x14008667c
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 0x2a0
lea rdx, str.CRtkBssGen4PresetLoader::CloneExtraTuningData2ServiceStore
lea rcx, str._s__d_RegOpenKeyExW__s__ret_d
call fcn.14004c3d0
lea r14d, [r14 + rbx*2]
mov ecx, dword [rbp - 0x30]
add r14d, 2
mov eax, r14d
jns 0x140086690
lea eax, [r14 + 1]
sar eax, 1
cdqe
lea rdi, [rbp + 0x2030]
lea rdi, [rdi + rax*2]
cmp r14d, ecx
jl 0x1400865a1
mov rsi, qword [rbp - 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x1400866c8
mov r9d, ebx
mov r8d, 0x153
lea rcx, str._s__d_RegQueryValueExW_ExtraTunings_ret
call fcn.14004c3d0
mov r8d, 0x157
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
xor r14d, r14d
mov dword [rbp - 0x18], r14d
mov dword [rbp - 0x1c], 4
mov edi, r14d
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.SupportGenericTuning
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140086744
mov r9, qword [r12 + 0x10]
mov r8d, 0x164
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_EpId_s_SupportGenericTuning
call fcn.14004c3d0
mov edi, 1
mov r12d, edi
mov r8d, 0x16a
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
xor eax, eax
mov qword [rbp + 8], rax
mov qword [rbp], r14
mov dword [rbp + 8], r14d
mov qword [rbp + 0x10], r14
mov r9d, 0x2001b
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceBssGen4Preset
mov rdx, 0xffffffff80000002
lea rcx, [rbp]
call fcn.140021cb0
mov ebx, eax
mov r8d, 0x16f
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
test ebx, ebx
jne 0x140086b2f
mov r8d, 0x173
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov rbx, qword [rbp]
test edi, edi
jne 0x1400868b0
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x4030]
call fcn.1400aa8f0
mov r8d, 0x17b
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov dword [rsp + 0x78], 0x1ffe
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x4030]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x14]
xor r8d, r8d
lea rdx, str.PropDeviceForBtUsbPreset
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140086871
mov eax, dword [rbp - 0x14]
dec eax
cmp eax, 1
ja 0x140086871
mov ecx, dword [rsp + 0x78]
test ecx, ecx
je 0x140086865
test cl, 1
jne 0x140086871
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 + 0x402e], di
je 0x14008686d
jmp 0x140086871
mov word [rbp + 0x4030], r14w
shr ecx, 1
jne 0x14008688f
mov r8d, 0x181
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov edi, 1
mov r8d, 0x186
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
test edi, edi
je 0x140086aff
mov r8d, 0x18b
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov r14d, SafeArrayDestroy
test rcx, rcx
jne 0x1400868e1
mov edi, r14d
jmp 0x14008691f
mov rax, r15
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400868e4
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.PropDeviceForBtUsbPreset
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rax, qword [rsp + 0x30]
test r12d, r12d
je 0x14008696a
mov rcx, qword [rax]
test rcx, rcx
jne 0x140086931
mov edi, r14d
jmp 0x14008696a
mov rax, r15
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140086934
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.PropDeviceSupportGenericTuning
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov r8d, 0x194
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
test edi, edi
je 0x1400869a8
mov r9d, edi
mov r8d, SafeArrayCopyData
lea rcx, str._s__d_RegBSSGen4RootStore.SetStringValue_PropDeviceForBtUsbPreset__nRegRet_d
call fcn.14004c3d0
jmp 0x140086afc
mov r8d, 0x19d
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov rdi, qword [rbp + 0x80a0]
test r12d, r12d
je 0x1400869f4
mov qword [rbp + 0x28], rdi
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayDestroy
xor r8d, r8d
lea rdx, str.PropDeviceDrvVerSupportGenericTuning
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov qword [rbp + 0x20], rdi
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayDestroy
xor r8d, r8d
lea rdx, str.PropDeviceDrvVerForBtUsbPreset
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
test eax, eax
je 0x140086a51
mov dword [rsp + 0x20], eax
lea r9, str.PropDeviceDrvVerForBtUsbPreset
mov r8d, 0x1a9
lea rcx, str._s__d_RegBSSGen4RootStore.SetQWORDValue__s__nRegRet_d
call fcn.14004c3d0
mov r12, qword [rsp + 0x30]
jmp 0x140086a71
mov qword [rsp + 0x20], rdi
mov r12, qword [rsp + 0x30]
mov r9, qword [r12]
mov r8d, 0x1ae
lea rcx, str._s__d_PropDeviceForBtUsbPreset_s_DrvVer_llx
call fcn.14004c3d0
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140086abc
mov rax, r15
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140086a81
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.PropDeviceDrvRegPathForBtUsbPreset
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov r14d, eax
test eax, eax
je 0x140086ad7
mov dword [rsp + 0x20], r14d
lea r9, str.PropDeviceDrvRegPathForBtUsbPreset
mov r8d, 0x1b6
lea rcx, str._s__d_SetStringValue__s__ret_d
jmp 0x140086af0
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9, qword [r12]
mov r8d, 0x1bb
lea rcx, str._s__d_PropDeviceForBtUsbPreset_s_sDrvRegPath_s
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
call fcn.14004c3d0
xor r14d, r14d
mov r8d, 0x1c0
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, [0x1400c4050]
call fcn.14004c3d0
test rbx, rbx
je 0x140086b48
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, r14
mov qword [rbp], rbx
jmp 0x140086b48
mov r9d, ebx
mov r8d, 0x1c6
lea rcx, str._s__d_RegBSSGen4RootStore.Open_nRegRet_d
call fcn.14004c3d0
mov rbx, qword [rbp]
test rbx, rbx
je 0x140086b56
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r14, qword [rsp + 0x30]
xor ebx, ebx
jmp 0x140086b90
mov dword [rsp + 0x20], eax
mov r9, qword [r12 + 0x10]
mov r8d, 0x1ce
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegOpenKeyExW_EpId_s_RegRet_d
call fcn.14004c3d0
mov r13, qword [rbp - 0x78]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x140086ba6
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x60], rbx
mov dword [rbp - 0x58], ebx
test r13, r13
je 0x140086bbb
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x78], rbx
mov dword [rbp - 0x70], ebx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
lea rdx, [rsi - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086be4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086c03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086c22
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140086c32
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140086c41
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x40]
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140086c64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x140086c80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x8030]
xor rcx, rsp
call fcn.1400a4020
mov rbx, qword [rsp + 0x8180]
add rsp, 0x8140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx]
mov r8d, 0x1d8
lea rdx, str.CRtkBssGen4PresetLoader::LoadPresetToServiceRegStore
lea rcx, str._s__d_RegOpenKeyPath_s_EpId_s_dwRet_d
call fcn.14004c3d0
jmp 0x140086c46
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
int3