Function at 0x1400057d0
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 [0x14013c010]
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, [0x1400e3358]
call fcn.14005b9a0
lea esi, [rbx + 1]
lea r12, [rbx - 1]
cmp dword [0x14013c494], ebx
jne 0x140005a9d
cmp dword [0x14013c490], ebx
jne 0x140005a9d
cmp dword [0x14013c498], ebx
jne 0x140005a9d
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x50], rbx
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x140005fed
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
lea r9, str.General
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400e3308]
lea rcx, [rsp + 0x50]
call fcn.1400064f0
lea r9, [rsp + 0x44]
lea r8, str.InitFirstTime
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, qword [0x14013c488]
call fcn.14007edf0
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 0x1400058f8
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov r8d, 0xf0
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400e3358]
call fcn.14005b9a0
test edi, edi
je 0x140005a9b
mov r8d, 0xf4
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, [0x1400e3358]
call fcn.14005b9a0
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.1400280a0
test eax, eax
je 0x1400059be
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005b9a0
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140005999
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.14005b9a0
jmp 0x140005a9d
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 0x140005b43
cmp dword [rsp + 0x68], 4
jne 0x140005b43
mov edi, dword [rsp + 0x60]
test rbx, rbx
je 0x140005a1c
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.14005b9a0
cmp edi, 1
jne 0x140005a9b
mov r8d, 0xfd
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_dwDchServKeepSettings
call fcn.14005b9a0
xor r9d, r9d
lea r8, str.dchServKeepSettings
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14007f430
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.14005b9a0
mov dword [rsp + 0x40], esi
xor ebx, ebx
mov rax, qword [0x14013c480]
xor r9d, r9d
lea r8, str.InstallPathChanged
lea rdx, str.General
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x20]
call qword [case.0x140048c62.0]
mov dword [rsp + 0x4c], eax
mov rcx, qword [0x14013c480]
mov rax, qword [rcx + 0x28]
xor r9d, r9d
lea r8, str.InstallPathChanged
lea rdx, str.General
lea rcx, [0x14013c480]
call qword [case.0x140048c62.0]
mov qword [rsp + 0x58], rbx
mov r15d, ebx
mov r14d, ebx
mov r9d, 2
xor r8d, r8d
xor edx, edx
lea rcx, [0x14010a998]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005f9b
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 0x140005d1c
jmp 0x140005b82
test rbx, rbx
je 0x140005b51
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.14005b9a0
jmp 0x140005a9d
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 0x140005be9
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140005be9
add rcx, 2
cmp rcx, 0x14
jne 0x140005bc0
mov ebx, esi
jmp 0x140005c98
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 0x140005c26
movzx ecx, word [r8 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140005c26
add rax, 2
cmp rax, 0x10
jne 0x140005c00
mov ebx, esi
jmp 0x140005c98
lea rdx, [rbp - 0x30]
xor ecx, ecx
lea r8, str.RTKSdWHwCodec
movzx eax, word [r8 + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x140005c59
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140005c59
add rcx, 2
cmp rcx, 0xe
jne 0x140005c33
xor edx, edx
jmp 0x140005c5e
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 0x140005c94
add rcx, 2
cmp rcx, 9
je 0x140005c98
movzx eax, word [r9 + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140005c70
test edx, edx
jne 0x140005d01
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, [0x1400e5f28]
lea rdx, [rbp - 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
test eax, eax
je 0x140005ce8
cmp dword [rsp + 0x6c], 0x10
jne 0x140005ce8
mov r15d, esi
test ebx, ebx
jne 0x140005d1c
jmp 0x140005d01
mov r8d, 0x287
lea rdx, str.CDriverPropertyClient::GetInstallData
lea rcx, str._s__d_DEVPKEY_Device_InstallDate__ERROR_NOT_FOUND
call fcn.14005b9a0
inc r14d
lea r8, [rbp - 0x58]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140005b80
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test r15d, r15d
je 0x140005f9b
mov rax, qword [0x14013c480]
xor r9d, r9d
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x20]
call qword [case.0x140048c62.0]
mov ebx, eax
mov rcx, qword [0x14013c480]
mov rax, qword [rcx + 0x20]
xor r9d, r9d
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x14013c480]
call qword [case.0x140048c62.0]
mov edi, eax
mov rcx, qword [0x14013c480]
mov rax, qword [rcx + 0x20]
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x14013c480]
call qword [case.0x140048c62.0]
mov rcx, qword [rsp + 0x58]
cmp ecx, ebx
jne 0x140005dc4
cmp dword [rsp + 0x5c], edi
jne 0x140005dc4
test eax, eax
jne 0x140005f9b
mov rax, qword [0x14013c480]
mov r9d, ecx
lea r8, str.InstallDate_Low
lea rdx, str.General
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x28]
call qword [case.0x140048c62.0]
mov rax, qword [0x14013c480]
mov r9d, dword [rsp + 0x5c]
lea r8, str.InstallDate_High
lea rdx, str.General
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x28]
call qword [case.0x140048c62.0]
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x140005e49
mov rax, qword [0x14013c480]
xor r9d, r9d
lea r8, str.InitFirstTime
lea rdx, str.General
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x28]
call qword [case.0x140048c62.0]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x3d0]
call fcn.1400c7980
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x1d0]
call fcn.1400c7980
call fcn.1400046f0
mov rcx, rax
test rax, rax
je 0x140005fe2
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.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.1400064f0
mov rax, qword [0x14013c480]
mov rbx, qword [rsp + 0x70]
mov r9, rbx
lea r8, str.InstallTime
lea rdx, str.General
lea rcx, [0x14013c480]
mov rax, qword [rax + 0x38]
call qword [case.0x140048c62.0]
mov r9, rbx
mov r8d, 0x14b
lea rdx, str.CAppInfo::IsFirstTimeExecute
lea rcx, str._s__d_sDriverInstallTime_s
call fcn.14005b9a0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140005f96
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov r13d, esi
jmp 0x140005f9f
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x140005fae
cmp dword [rsp + 0x4c], edi
jne 0x140005fb0
test r13d, r13d
jne 0x140005fb0
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400c17f0
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.140004820
nop
mov ecx, 0x80004005
call fcn.140004820
int3