Function at 0x140005ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f8]
sub rsp, 0x6d0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14014f010]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
xor ebx, ebx
mov r13d, ebx
mov dword [rsp + 0x50], ebx
mov r8d, 0xeb
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400ddaf0]
call fcn.14005be10
lea esi, [rbx + 1]
cmp dword [0x140157e54], ebx
jne 0x1400060e5
cmp dword [0x140157e50], ebx
jne 0x1400060e5
cmp dword [0x140157e58], ebx
jne 0x1400060e5
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140157e40]
call fcn.140005700
mov ebx, eax
mov r8d, 0xf0
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400ddaf0]
call fcn.14005be10
test ebx, ebx
je 0x1400060e3
mov r8d, 0xf4
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400ddaf0]
call fcn.14005be10
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x44], ebx
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x60], ebx
mov r9d, esi
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140026e10
test eax, eax
je 0x140005ff1
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005be10
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140006062
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140006062
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 + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140006052
cmp dword [rsp + 0x68], 4
jne 0x140006052
mov edi, dword [rsp + 0x60]
mov dword [rsp + 0x44], edi
test rbx, rbx
je 0x14000604b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9d, esi
xor ebx, ebx
jmp 0x140006065
test rbx, rbx
je 0x140006060
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ebx, ebx
mov r9d, ebx
mov dword [rsp + 0x20], edi
mov r8d, 0xf8
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_Open_Registry__Success__d__dwDchServKeepSettings__d_
call fcn.14005be10
cmp edi, 1
jne 0x1400060e5
mov r8d, 0xfd
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_dwDchServKeepSettings
call fcn.14005be10
xor r9d, r9d
lea r8, str.dchServKeepSettings
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14007c110
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.14005be10
mov dword [rsp + 0x50], esi
jmp 0x1400060e5
xor ebx, ebx
xor r9d, r9d
lea r8, str.InstallPathChanged
lea rdx, str.General
lea rcx, [0x140157e40]
mov rax, qword [0x140157e40]
call qword [rax + 0x20]
mov r12d, eax
mov dword [rsp + 0x40], eax
xor r9d, r9d
lea r8, str.InstallPathChanged
lea rdx, str.General
lea rcx, [0x140157e40]
mov r10, qword [0x140157e40]
call qword [r10 + 0x28]
mov qword [rsp + 0x58], rbx
mov r15d, ebx
mov r14d, ebx
mov r9d, 2
xor r8d, r8d
xor edx, edx
lea rcx, [0x140110978]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006578
mov dword [rbp - 0x60], 0x20
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov r12, 0xffffffffffffffff
test eax, eax
je 0x140006339
jmp 0x140006192
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x200
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea rdx, [rbp - 0x40]
mov rcx, rbx
lea r8, str.IntcAzAudAddService
nop word [rax + rax]
movzx eax, word [r8 + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x1400061f4
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400061f4
add rcx, 2
cmp rcx, 0x14
jne 0x1400061d0
jmp 0x140006224
lea rdx, [rbp - 0x40]
mov rax, rbx
lea r8, str.HdAudAddService
movzx ecx, word [r8 + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x140006226
movzx ecx, word [r8 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140006226
add rax, 2
cmp rax, 0x10
jne 0x140006202
mov ebx, esi
lea rdx, [rbp - 0x40]
xor ecx, ecx
lea r9, str.RTKSdWHwCodec
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [r9 + rcx*2]
movzx eax, word [rdx + rcx*2]
sub r8d, eax
jne 0x140006268
movzx r8d, word [r9 + rcx*2 + 2]
movzx eax, word [rdx + rcx*2 + 2]
sub r8d, eax
jne 0x140006268
add rcx, 2
cmp rcx, 0xe
jne 0x140006240
lea r9, [rbp - 0x40]
mov rcx, r12
lea r10, str.RtkUsbAD
nop word [rax + rax]
movzx edx, word [r10 + rcx*2 + 2]
movzx eax, word [r9 + rcx*2 + 2]
sub edx, eax
jne 0x1400062a8
add rcx, 2
cmp rcx, 9
je 0x1400062a8
movzx edx, word [r10 + rcx*2]
movzx eax, word [r9 + rcx*2]
sub edx, eax
je 0x140006280
test ebx, ebx
jne 0x1400062b5
test edx, edx
je 0x1400062b5
test r8d, r8d
jne 0x14000631e
mov dword [rsp + 0x38], 0
lea rax, [rbp - 0x78]
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, [0x1400dfbc8]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
test eax, eax
je 0x140006305
cmp dword [rsp + 0x6c], 0x10
jne 0x140006305
mov r15d, esi
test ebx, ebx
jne 0x140006339
jmp 0x14000631e
mov r8d, 0x287
lea rdx, str.CDriverPropertyClient::GetInstallData
lea rcx, [0x14010fcd0]
call fcn.14005be10
inc r14d
lea r8, [rbp - 0x60]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140006190
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test r15d, r15d
je 0x14000657e
xor r9d, r9d
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x140157e40]
mov rax, qword [0x140157e40]
call qword [rax + 0x20]
mov ebx, eax
xor r9d, r9d
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x140157e40]
mov r10, qword [0x140157e40]
call qword [r10 + 0x20]
mov edi, eax
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140157e40]
mov r10, qword [0x140157e40]
call qword [r10 + 0x20]
mov rcx, qword [rsp + 0x58]
cmp ecx, ebx
jne 0x1400063ce
cmp dword [rsp + 0x5c], edi
jne 0x1400063ce
test eax, eax
jne 0x14000657e
mov r9d, ecx
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x140157e40]
mov rax, qword [0x140157e40]
call qword [rax + 0x28]
mov r9d, dword [rsp + 0x5c]
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x140157e40]
mov rax, qword [0x140157e40]
call qword [rax + 0x28]
mov edi, dword [rsp + 0x50]
test edi, edi
jne 0x14000643e
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140157e40]
mov rax, qword [0x140157e40]
call qword [rax + 0x28]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x3c0]
call fcn.1400bffa0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x1c0]
call fcn.1400bffa0
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400065c9
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], 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 - 0x70]
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 + 0x3c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x70]
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 + 0x1c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x70]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
lea r9, [rbp + 0x1c0]
lea r8, [rbp + 0x3c0]
lea rdx, str._s__s
lea rcx, [rsp + 0x50]
call fcn.140006c20
mov rbx, qword [rsp + 0x50]
mov r9, rbx
lea r8, str.InstallTime
lea rdx, str.General
lea rcx, [0x140157e40]
mov rax, qword [0x140157e40]
call qword [rax + 0x38]
mov r9, rbx
mov r8d, 0x14b
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_sDriverInstallTime_s
call fcn.14005be10
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140006573
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, esi
jmp 0x140006582
mov edi, dword [rsp + 0x50]
jmp 0x140006587
mov edi, dword [rsp + 0x50]
mov r12d, dword [rsp + 0x40]
test edi, edi
jne 0x140006595
test r12d, r12d
jne 0x140006597
test r13d, r13d
jne 0x140006597
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400b96d0
lea r11, [rsp + 0x6d0]
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.140005030
int3