Function at 0x1400bb090
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fe0]
mov eax, 0x20e0
call fcn.1400fdb80
sub rsp, rax
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rbp + 0x1fd0], rax
mov r14, rdx
test rdx, rdx
jne 0x1400bb0f4
mov r8d, 0x163
lea rdx, str.CRtkApoConditionPresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140075db0
jmp 0x1400bb5e9
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb624
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov rdx, r14
call fcn.1400bbe90
mov rsi, 0xffffffffffffffff
test eax, eax
jne 0x1400bb151
mov r8d, 0x167
lea rdx, str.CRtkApoConditionPresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140075db0
jmp 0x1400bb5c3
xor r13d, r13d
mov r12d, r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], r13
mov dword [rbp - 0x68], r13d
mov qword [rbp - 0x60], r13
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb62f
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rbp - 0x80], rax
mov rcx, r14
call fcn.140020820
lea rcx, str.SOFTWARERealtekAudioRtkAudUServiceApoCondPresetRender
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceApoCondPresetCapture
test eax, eax
cmovne r8, rcx
mov rdi, qword [rsp + 0x68]
mov r9, rdi
lea rdx, [0x14011bc58]
lea rcx, [rbp - 0x80]
call fcn.14000ec90
mov r9d, 0x20019
mov r8, qword [rbp - 0x80]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x70]
call fcn.140035040
test eax, eax
jne 0x1400bb3d0
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp - 0x30]
call fcn.1400fac10
lea rdx, [0x140115870]
lea rcx, [rsp + 0x50]
call fcn.14006a210
mov dword [rsp + 0x60], 0x1ffe
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x78]
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400bb273
mov eax, dword [rbp - 0x78]
dec eax
cmp eax, 1
jbe 0x1400bb24d
lea ebx, [r13 + 0xd]
jmp 0x1400bb273
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400bb26b
test al, 1
jne 0x1400bb264
shr rax, 1
cmp word [rbp + rax*2 - 0x32], 0
je 0x1400bb270
mov ebx, SafeArrayDestroy
jmp 0x1400bb273
mov word [rbp - 0x30], r13w
mov ebx, r13d
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bb29b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
test ebx, ebx
jne 0x1400bb39b
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb63a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rcx, [r14 + 0x10]
lea r9d, [rbx + 3]
lea r8, [rsp + 0x70]
lea rdx, [0x140115870]
call fcn.14000bfd0
lea rdx, [rbp - 0x30]
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bb35c
lea rdx, str..dat
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400bb303
mov r8d, eax
lea rcx, [rsp + 0x70]
call fcn.1400193f0
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400bb334
mov r12d, 1
jmp 0x1400bb376
lea r9, [rbp - 0x30]
mov r8d, 0x187
lea rdx, str.CRtkApoConditionPresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_PKEY_GEN4_CONDITION_DAT_PATH_file__s_not_exist._delete_cache
call fcn.140075db0
mov rdx, qword [rbp - 0x80]
call fcn.140098a40
jmp 0x1400bb376
mov r8d, 0x18e
lea rdx, str.CRtkApoConditionPresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_PKEY_GEN4_CONDITION_DAT_PATH_not_machted
call fcn.140075db0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bb3b4
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
jmp 0x1400bb3b4
mov r8d, 0x193
lea rdx, str.CRtkApoConditionPresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_PKEY_GEN4_CONDITION_DAT_PATH_miss
call fcn.140075db0
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400bb3c7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rbp - 0x70], r13
mov dword [rbp - 0x68], r13d
mov rdi, qword [rsp + 0x68]
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb645
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov r9d, 1
lea r8, [rsp + 0x78]
lea rdx, [0x140115888]
lea rcx, [r14 + 0x10]
call fcn.14000bfd0
mov dword [rsp + 0x30], r12d
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov r9, qword [r14 + 0x10]
mov r8d, 0x19c
lea rdx, str.CRtkApoConditionPresetLoader::UpgradeLatestBssGen4Preset
lea rcx, str._s__d_EpId_s_PresetId_s_sStoredPresetId_s_bPresetCacheExist_d
call fcn.140075db0
test r12d, r12d
je 0x1400bb465
test rbx, rbx
je 0x1400bb619
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400bb4f2
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400bb619
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
lea rcx, [rdi - 0x18]
call fcn.14000ec00
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
mov rdx, r14
call fcn.1400ba110
test eax, eax
je 0x1400bb4ca
mov r9d, 1
lea r8, [rsp + 0x68]
lea rdx, [0x140115888]
lea rcx, [r14 + 0x10]
call fcn.14000c0f0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bb4ed
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov rbx, qword [rsp + 0x78]
cmp dword [r14 + 0x178], 0
je 0x1400bb567
mov dword [rsp + 0x40], r13d
mov r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [0x140119560]
lea rcx, [r14 + 0x10]
call fcn.14000ab50
test eax, eax
je 0x1400bb527
cmp dword [rsp + 0x40], 1
je 0x1400bb567
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
mov eax, SafeArrayUnaccessData
mov word [rbp - 0x58], ax
mov dword [rbp - 0x50], 1
lea r9d, [rax - 0x12]
lea r8, [rbp - 0x58]
lea rdx, [0x140119560]
lea rcx, [r14 + 0x10]
call fcn.14000bae0
lea rcx, [rbp - 0x58]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bb58b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bb5b3
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400bb5c3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400bb5e9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov rcx, qword [rbp + 0x1fd0]
xor rcx, rsp
call fcn.1400f4410
lea r11, [rsp + 0x20e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
int3
mov ecx, 0x80004005
call fcn.14000ce90
int3