Function at 0x140005e40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov r13d, ebx
mov dword [rsp + 0x40], ebx
mov r8d, 0xeb
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x140102ba8]
call fcn.14006dd20
lea esi, [rbx + 1]
lea r12, [rbx - 1]
cmp dword [0x1401784a4], ebx
jne 0x14000610d
cmp dword [0x1401784a0], ebx
jne 0x14000610d
cmp dword [0x1401784a8], ebx
jne 0x14000610d
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x50], rbx
call fcn.140004e00
mov rcx, rax
test rax, rax
je 0x14000665d
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x140102b58]
lea rcx, [rsp + 0x50]
call fcn.140006d30
lea r9, [rsp + 0x44]
lea r8, str.InitFirstTime
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, qword [0x140178498]
call fcn.1400902e0
xor edi, edi
test eax, eax
cmovne edi, dword [rsp + 0x44]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, esi
jg 0x140005f68
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
mov r8d, 0xf0
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x140102ba8]
call fcn.14006dd20
test edi, edi
je 0x14000610b
mov r8d, 0xf4
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x140102ba8]
call fcn.14006dd20
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov qword [rbp - 0x78], rbx
mov dword [rsp + 0x60], ebx
mov r9d, esi
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x78]
call fcn.14002b400
test eax, eax
je 0x14000602e
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14006dd20
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140006009
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, 0xf8
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_Open_Registry__Success__d__dwDchServKeepSettings__d_
call fcn.14006dd20
jmp 0x14000610d
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.dchServKeepSettings
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400061b3
cmp dword [rsp + 0x68], 4
jne 0x1400061b3
mov edi, dword [rsp + 0x60]
test rbx, rbx
je 0x14000608c
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsp + 0x20], edi
mov r9d, esi
mov r8d, 0xf8
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_Open_Registry__Success__d__dwDchServKeepSettings__d_
call fcn.14006dd20
cmp edi, 1
jne 0x14000610b
mov r8d, 0xfd
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_dwDchServKeepSettings
call fcn.14006dd20
xor r9d, r9d
lea r8, str.dchServKeepSettings
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.1400908e0
mov dword [rsp + 0x20], esi
mov r9d, eax
mov r8d, 0x101
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_DeleteRegKey__d_
call fcn.14006dd20
mov dword [rsp + 0x40], esi
xor ebx, ebx
mov rax, qword [0x140178490]
xor r9d, r9d
lea r8, str.InstallPathChanged
lea rdx, str.General
lea rcx, [0x140178490]
mov rax, qword [rax + 0x20]
call qword [case.0x140050923.0]
mov dword [rsp + 0x4c], eax
mov rcx, qword [0x140178490]
mov rax, qword [rcx + 0x28]
xor r9d, r9d
lea r8, str.InstallPathChanged
lea rdx, str.General
lea rcx, [0x140178490]
call qword [case.0x140050923.0]
mov qword [rsp + 0x58], rbx
mov r15d, ebx
mov r14d, ebx
mov r9d, 2
xor r8d, r8d
xor edx, edx
lea rcx, [0x14013c028]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000660b
mov dword [rbp - 0x58], 0x20
lea r8, [rbp - 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14000638c
jmp 0x1400061f2
test rbx, rbx
je 0x1400061c1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, 0xf8
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_Open_Registry__Success__d__dwDchServKeepSettings__d_
call fcn.14006dd20
jmp 0x14000610d
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x200
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rbp - 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea rdx, [rbp - 0x30]
mov rcx, rbx
lea r8, str.IntcAzAudAddService
nop word [rax + rax]
movzx eax, word [r8 + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x140006259
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140006259
add rcx, 2
cmp rcx, 0x14
jne 0x140006230
mov ebx, esi
jmp 0x140006308
lea rdx, [rbp - 0x30]
mov rax, rbx
lea r8, str.HdAudAddService
nop word [rax + rax]
movzx ecx, word [r8 + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x140006296
movzx ecx, word [r8 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140006296
add rax, 2
cmp rax, 0x10
jne 0x140006270
mov ebx, esi
jmp 0x140006308
lea rdx, [rbp - 0x30]
xor ecx, ecx
lea r8, str.RTKSdWHwCodec
movzx eax, word [r8 + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x1400062c9
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400062c9
add rcx, 2
cmp rcx, 0xe
jne 0x1400062a3
xor edx, edx
jmp 0x1400062ce
sbb edx, edx
or edx, 1
lea r8, [rbp - 0x30]
mov rcx, r12
lea r9, str.RtkUsbAD
nop dword [rax]
movzx eax, word [r9 + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140006304
add rcx, 2
cmp rcx, 9
je 0x140006308
movzx eax, word [r9 + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x1400062e0
test edx, edx
jne 0x140006371
mov dword [rsp + 0x38], 0
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
lea r8, [0x140105b68]
lea rdx, [rbp - 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
test eax, eax
je 0x140006358
cmp dword [rsp + 0x6c], 0x10
jne 0x140006358
mov r15d, esi
test ebx, ebx
jne 0x14000638c
jmp 0x140006371
mov r8d, 0x287
lea rdx, str.CDriverPropertyClient::GetInstallData
lea rcx, str._s__d_DEVPKEY_Device_InstallDate__ERROR_NOT_FOUND
call fcn.14006dd20
inc r14d
lea r8, [rbp - 0x58]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400061f0
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test r15d, r15d
je 0x14000660b
mov rax, qword [0x140178490]
xor r9d, r9d
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x140178490]
mov rax, qword [rax + 0x20]
call qword [case.0x140050923.0]
mov ebx, eax
mov rcx, qword [0x140178490]
mov rax, qword [rcx + 0x20]
xor r9d, r9d
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x140178490]
call qword [case.0x140050923.0]
mov edi, eax
mov rcx, qword [0x140178490]
mov rax, qword [rcx + 0x20]
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140178490]
call qword [case.0x140050923.0]
mov rcx, qword [rsp + 0x58]
cmp ecx, ebx
jne 0x140006434
cmp dword [rsp + 0x5c], edi
jne 0x140006434
test eax, eax
jne 0x14000660b
mov rax, qword [0x140178490]
mov r9d, ecx
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x140178490]
mov rax, qword [rax + 0x28]
call qword [case.0x140050923.0]
mov rax, qword [0x140178490]
mov r9d, dword [rsp + 0x5c]
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x140178490]
mov rax, qword [rax + 0x28]
call qword [case.0x140050923.0]
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x1400064b9
mov rax, qword [0x140178490]
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140178490]
mov rax, qword [rax + 0x28]
call qword [case.0x140050923.0]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x3d0]
call fcn.1400e5b40
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x1d0]
call fcn.1400e5b40
call fcn.140004e00
mov rcx, rax
test rax, rax
je 0x140006652
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
mov dword [rsp + 0x28], 0xff
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x68]
lea edx, [r9 + 2]
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
mov dword [rsp + 0x28], 0xff
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x68]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
lea r9, [rbp + 0x1d0]
lea r8, [rbp + 0x3d0]
lea rdx, str._s__s
lea rcx, [rsp + 0x70]
call fcn.140006d30
mov rax, qword [0x140178490]
mov rbx, qword [rsp + 0x70]
mov r9, rbx
lea r8, str.InstallTime
lea rdx, str.General
lea rcx, [0x140178490]
mov rax, qword [rax + 0x38]
call qword [case.0x140050923.0]
mov r9, rbx
mov r8d, 0x14b
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_sDriverInstallTime_s
call fcn.14006dd20
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140006606
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140050923.0]
mov r13d, esi
jmp 0x14000660f
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x14000661e
cmp dword [rsp + 0x4c], edi
jne 0x140006620
test r13d, r13d
jne 0x140006620
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400df340
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004f30
nop
mov ecx, 0x80004005
call fcn.140004f30
int3