Function at 0x140005e40
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 [0x140158010]
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, [0x1400e2bd0]
call fcn.14005dbf0
lea esi, [rbx + 1]
cmp dword [0x140161344], ebx
jne 0x140006085
cmp dword [0x140161340], ebx
jne 0x140006085
cmp dword [0x140161348], ebx
jne 0x140006085
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140161330]
call fcn.1400056a0
mov ebx, eax
mov r8d, 0xf0
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
test ebx, ebx
je 0x140006083
mov r8d, 0xf4
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
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.1400278b0
test eax, eax
je 0x140005f91
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005dbf0
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140006002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x140006002
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 0x140005ff2
cmp dword [rsp + 0x68], 4
jne 0x140005ff2
mov edi, dword [rsp + 0x60]
mov dword [rsp + 0x44], edi
test rbx, rbx
je 0x140005feb
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9d, esi
xor ebx, ebx
jmp 0x140006005
test rbx, rbx
je 0x140006000
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.14005dbf0
cmp edi, 1
jne 0x140006085
mov r8d, 0xfd
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_dwDchServKeepSettings
call fcn.14005dbf0
xor r9d, r9d
lea r8, str.dchServKeepSettings
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14007e0d0
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.14005dbf0
mov dword [rsp + 0x50], esi
jmp 0x140006085
xor ebx, ebx
xor r9d, r9d
lea r8, str.InstallPathChanged
lea rdx, str.General
lea rcx, [0x140161330]
mov rax, qword [0x140161330]
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, [0x140161330]
mov r10, qword [0x140161330]
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, [0x140116fb0]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006518
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 0x1400062d9
jmp 0x140006132
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 0x140006194
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140006194
add rcx, 2
cmp rcx, 0x14
jne 0x140006170
jmp 0x1400061c4
lea rdx, [rbp - 0x40]
mov rax, rbx
lea r8, str.HdAudAddService
movzx ecx, word [r8 + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x1400061c6
movzx ecx, word [r8 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x1400061c6
add rax, 2
cmp rax, 0x10
jne 0x1400061a2
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 0x140006208
movzx r8d, word [r9 + rcx*2 + 2]
movzx eax, word [rdx + rcx*2 + 2]
sub r8d, eax
jne 0x140006208
add rcx, 2
cmp rcx, 0xe
jne 0x1400061e0
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 0x140006248
add rcx, 2
cmp rcx, 9
je 0x140006248
movzx edx, word [r10 + rcx*2]
movzx eax, word [r9 + rcx*2]
sub edx, eax
je 0x140006220
test ebx, ebx
jne 0x140006255
test edx, edx
je 0x140006255
test r8d, r8d
jne 0x1400062be
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, [0x1400e4ca8]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
test eax, eax
je 0x1400062a5
cmp dword [rsp + 0x6c], 0x10
jne 0x1400062a5
mov r15d, esi
test ebx, ebx
jne 0x1400062d9
jmp 0x1400062be
mov r8d, 0x287
lea rdx, str.CDriverPropertyClient::GetInstallData
lea rcx, str._s__d_DEVPKEY_Device_InstallDate__ERROR_NOT_FOUND
call fcn.14005dbf0
inc r14d
lea r8, [rbp - 0x60]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140006130
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test r15d, r15d
je 0x14000651e
xor r9d, r9d
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x140161330]
mov rax, qword [0x140161330]
call qword [rax + 0x20]
mov ebx, eax
xor r9d, r9d
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x140161330]
mov r10, qword [0x140161330]
call qword [r10 + 0x20]
mov edi, eax
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140161330]
mov r10, qword [0x140161330]
call qword [r10 + 0x20]
mov rcx, qword [rsp + 0x58]
cmp ecx, ebx
jne 0x14000636e
cmp dword [rsp + 0x5c], edi
jne 0x14000636e
test eax, eax
jne 0x14000651e
mov r9d, ecx
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x140161330]
mov rax, qword [0x140161330]
call qword [rax + 0x28]
mov r9d, dword [rsp + 0x5c]
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x140161330]
mov rax, qword [0x140161330]
call qword [rax + 0x28]
mov edi, dword [rsp + 0x50]
test edi, edi
jne 0x1400063de
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x140161330]
mov rax, qword [0x140161330]
call qword [rax + 0x28]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x3c0]
call fcn.1400c53e0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x1c0]
call fcn.1400c53e0
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140006569
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.140006bc0
mov rbx, qword [rsp + 0x50]
mov r9, rbx
lea r8, str.InstallTime
lea rdx, str.General
lea rcx, [0x140161330]
mov rax, qword [0x140161330]
call qword [rax + 0x38]
mov r9, rbx
mov r8d, 0x14b
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_sDriverInstallTime_s
call fcn.14005dbf0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140006513
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, esi
jmp 0x140006522
mov edi, dword [rsp + 0x50]
jmp 0x140006527
mov edi, dword [rsp + 0x50]
mov r12d, dword [rsp + 0x40]
test edi, edi
jne 0x140006535
test r12d, r12d
jne 0x140006537
test r13d, r13d
jne 0x140006537
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400beb20
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.140004fd0
int3