Function at 0x140005530
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x648]
sub rsp, 0x720
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rbp + 0x610], rax
xor esi, esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x58], esi
mov r13d, esi
mov dword [rsp + 0x44], esi
mov r8d, 0xe3
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400c4050]
call fcn.14004c3d0
lea r15d, [rsi + 1]
lea r12, [rsi - 1]
cmp dword [0x140126804], esi
jne 0x1400057e3
cmp dword [0x140126800], esi
jne 0x1400057e3
cmp dword [0x140126808], esi
jne 0x1400057e3
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x60], rsi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140005ee8
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], r15d
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400c3fc8]
lea rcx, [rsp + 0x60]
call fcn.140006190
lea r9, [rsp + 0x48]
lea r8, str.InitFirstTime
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [0x1401267f8]
call fcn.14006a6c0
mov edi, esi
test eax, eax
cmovne edi, dword [rsp + 0x48]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, r15d
jg 0x140005655
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, 0xe8
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov dword [rsp + 0x40], esi
test edi, edi
je 0x1400057e3
mov r8d, 0xec
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400c4050]
call fcn.14004c3d0
mov edi, esi
mov dword [rsp + 0x5c], esi
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rsi
mov dword [rbp - 0x40], esi
mov qword [rbp - 0x38], rsi
mov dword [rbp - 0x68], esi
mov r9d, r15d
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x48]
call fcn.140021cb0
test eax, eax
je 0x1400056f4
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14004c3d0
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000575a
jmp 0x140005754
mov dword [rbp - 0x64], 4
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.dchServKeepSettings
mov rbx, qword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000574c
cmp dword [rbp - 0x60], 4
jne 0x14000574c
mov edi, dword [rbp - 0x68]
mov dword [rsp + 0x5c], edi
test rbx, rbx
je 0x140005747
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9d, r15d
jmp 0x14000575d
test rbx, rbx
je 0x14000575a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9d, esi
mov dword [rsp + 0x20], edi
mov r8d, 0xf0
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_Open_Registry__Success__d__dwDchServKeepSettings__d_
call fcn.14004c3d0
mov dword [rsp + 0x40], esi
cmp edi, 1
jne 0x1400057e3
mov r8d, 0xf5
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_dwDchServKeepSettings
call fcn.14004c3d0
xor r9d, r9d
lea r8, str.dchServKeepSettings
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14006ad10
mov dword [rsp + 0x20], r15d
mov r9d, eax
mov r8d, 0xf9
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_DeleteRegKey__d_
call fcn.14004c3d0
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x40], esi
mov qword [rbp - 0x58], rsi
mov qword [rsp + 0x20], rsi
lea r9, str.InstallPath
lea r8, str.General
lea rdx, [rbp - 0x58]
lea rcx, [0x1401267f0]
call fcn.140004f40
nop
call fcn.140005f30
mov rbx, rax
test rax, rax
je 0x140005ef3
mov rax, qword [rbp - 0x58]
mov rdx, rbx
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14000583c
add rax, 2
test cx, cx
jne 0x140005826
mov eax, esi
jmp 0x140005841
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400058f4
mov r9, rbx
mov r8d, 0x106
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_NewServicePath_s
call fcn.14004c3d0
nop
mov qword [rsp + 0x68], rsi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140005efe
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 8
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400c3fc8]
lea rcx, [rsp + 0x68]
call fcn.140006190
mov r9, rbx
lea r8, str.InstallPath
mov rbx, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, qword [0x1401267f8]
call fcn.14006b650
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400058eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x40], esi
mov qword [rbp - 0x70], rsi
mov r14d, esi
mov r9d, 2
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400e4728]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005e76
mov dword [rbp - 0x18], 0x20
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140005aeb
lea rbx, str.IntcAzAudAddService
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x200
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea rdx, [rbp + 0x10]
xor ecx, ecx
nop dword [rax]
movzx eax, word [rbx + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x1400059a5
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400059a5
add rcx, 2
cmp rcx, 0x14
jne 0x140005980
mov ebx, r15d
jmp 0x1400059db
lea rdx, [rbp + 0x10]
xor eax, eax
lea r8, str.HdAudAddService
movzx ecx, word [r8 + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x1400059d9
movzx ecx, word [r8 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x1400059d9
add rax, 2
cmp rax, 0x10
jne 0x1400059b2
mov ebx, r15d
jmp 0x1400059db
xor ebx, ebx
lea rdx, [rbp + 0x10]
xor ecx, ecx
lea r9, str.RTKSdWHwCodec
nop dword [rax + rax]
movzx r8d, word [r9 + rcx*2]
movzx eax, word [rdx + rcx*2]
sub r8d, eax
jne 0x140005a18
movzx r8d, word [r9 + rcx*2 + 2]
movzx eax, word [rdx + rcx*2 + 2]
sub r8d, eax
jne 0x140005a18
add rcx, 2
cmp rcx, 0xe
jne 0x1400059f0
lea r9, [rbp + 0x10]
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 0x140005a58
add rcx, 2
cmp rcx, 9
je 0x140005a58
movzx edx, word [r10 + rcx*2]
movzx eax, word [r9 + rcx*2]
sub edx, eax
je 0x140005a30
test ebx, ebx
jne 0x140005a65
test edx, edx
je 0x140005a65
test r8d, r8d
jne 0x140005acb
mov dword [rsp + 0x38], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x5c]
lea r8, [0x1400c6a38]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
test eax, eax
je 0x140005ab2
cmp dword [rbp - 0x5c], 0x10
jne 0x140005ab2
mov r14d, r15d
test ebx, ebx
jne 0x140005aeb
jmp 0x140005acb
mov r8d, 0x27b
lea rdx, str.CDriverPropertyClient::GetInstallData
lea rcx, str._s__d_DEVPKEY_Device_InstallDate__ERROR_NOT_FOUND
call fcn.14004c3d0
inc esi
lea r8, [rbp - 0x18]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
lea rbx, str.IntcAzAudAddService
jne 0x140005945
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test r14d, r14d
je 0x140005e76
xor edi, edi
mov dword [rsp + 0x4c], edi
mov qword [rsp + 0x70], rdi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140005f09
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], SafeArrayUnaccessData
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400c3fc8]
lea rcx, [rsp + 0x70]
call fcn.140006190
lea r9, [rsp + 0x4c]
lea r8, str.InstallDate_Low
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, qword [0x1401267f8]
call fcn.14006a6c0
mov r14d, edi
test eax, eax
cmovne r14d, dword [rsp + 0x4c]
mov dword [rsp + 0x40], edi
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005b98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x78], rdi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140005f14
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x40], 0x20
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400c3fc8]
lea rcx, [rsp + 0x78]
call fcn.140006190
lea r9, [rsp + 0x50]
lea r8, str.InstallDate_High
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, qword [0x1401267f8]
call fcn.14006a6c0
mov esi, edi
test eax, eax
cmovne esi, dword [rsp + 0x50]
mov dword [rsp + 0x40], edi
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005c2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x54], edi
mov qword [rbp - 0x80], rdi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140005f1f
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x40], 0x40
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400c3fc8]
lea rcx, [rbp - 0x80]
call fcn.140006190
lea r9, [rsp + 0x54]
lea r8, str.InitFirstTime
mov rbx, qword [rbp - 0x80]
mov rdx, rbx
mov rcx, qword [0x1401267f8]
call fcn.14006a6c0
test eax, eax
cmovne edi, dword [rsp + 0x54]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005cbc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x70]
cmp eax, r14d
jne 0x140005cd2
cmp dword [rbp - 0x6c], esi
jne 0x140005cd2
test edi, edi
jne 0x140005e76
mov r9d, eax
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x1401267f0]
mov rax, qword [0x1401267f0]
call qword [rax + 0x28]
mov r9d, dword [rbp - 0x6c]
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x1401267f0]
mov rax, qword [0x1401267f0]
call qword [rax + 0x28]
mov edi, dword [rsp + 0x44]
test edi, edi
jne 0x140005d41
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x1401267f0]
mov rax, qword [0x1401267f0]
call qword [rax + 0x28]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x410]
call fcn.1400aa8f0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x210]
call fcn.1400aa8f0
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140005edd
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
mov dword [rsp + 0x28], 0xff
lea rax, [rbp + 0x410]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x28]
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 + 0x210]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x28]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
lea r9, [rbp + 0x210]
lea r8, [rbp + 0x410]
lea rdx, str._s__s
lea rcx, [rbp - 0x50]
call fcn.140006190
mov rbx, qword [rbp - 0x50]
mov r9, rbx
lea r8, str.InstallTime
lea rdx, str.General
lea rcx, [0x1401267f0]
mov rax, qword [0x1401267f0]
call qword [rax + 0x38]
mov r9, rbx
mov r8d, 0x14b
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_sDriverInstallTime_s
call fcn.14004c3d0
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005e71
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, r15d
jmp 0x140005e7a
mov edi, dword [rsp + 0x44]
test edi, edi
jne 0x140005e89
cmp dword [rsp + 0x58], edi
jne 0x140005e8c
test r13d, r13d
jne 0x140005e8c
xor r15d, r15d
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140005eaa
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r15d
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0x720]
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.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
nop
mov ecx, 0x80004005
call fcn.140004670
int3