Function at 0x1400a1410
Capabilities:
Create thread
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140158010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
cmp edx, 0x446
jne 0x1400a14b0
cmp qword [rcx + 0x878], 0
jne 0x1400a1b82
xor ebx, ebx
mov dword [rsp + 0x38], ebx
lea rax, [r11 - 0x30]
mov qword [r11 - 0x40], rax
mov dword [rsp + 0x20], ebx
mov r9, rcx
lea r8, [0x14009efd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x878], rax
mov r8d, 0x733
lea rcx, str._s__d_CreateThread_SpkEnroll_TrainThread___x
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
mov r9, rax
call fcn.14005dbf0
call fcn.14000b5e0
mov edx, 0x446
mov rcx, rax
call fcn.1400b45d0
jmp 0x1400a1b82
cmp edx, 0x447
jne 0x1400a1504
cmp qword [rcx + 0x888], 0
jne 0x1400a1b82
xor ebx, ebx
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1400a0380]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x888], rax
mov r8d, 0x73f
lea rcx, str._s__d_CreateThread_SpkEnroll_DetectScoreThread___x
jmp 0x1400a148a
cmp edx, 0x448
jne 0x1400a15ab
cmp qword [rcx + 0x878], 0
je 0x1400a1594
mov r8d, 0x749
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_start_wait_m_hSpkEnroll_TrainThread
call fcn.14005dbf0
mov edx, 0x3e8
mov rcx, qword [rdi + 0x878]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x1400a1565
mov r9d, eax
mov r8d, 0x74d
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_WaitForSingleObject__x
call fcn.14005dbf0
mov r8d, 0x74f
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_end_wait_m_hSpkEnroll_TrainThread
call fcn.14005dbf0
mov rcx, qword [rdi + 0x878]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor ebx, ebx
mov qword [rdi + 0x878], rbx
call fcn.14000b5e0
mov edx, 0x448
mov rcx, rax
call fcn.1400b45d0
jmp 0x1400a1b82
cmp edx, 0x449
jne 0x1400a1652
cmp qword [rcx + 0x888], 0
je 0x1400a163b
mov r8d, 0x75b
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_start_wait_m_hSpkEnroll_DetectScoreThread
call fcn.14005dbf0
mov edx, 0x3e8
mov rcx, qword [rdi + 0x888]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x1400a160c
mov r9d, eax
mov r8d, 0x75f
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_WaitForSingleObject__x
call fcn.14005dbf0
mov r8d, 0x761
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_end_wait_m_hSpkEnroll_DetectScoreThread
call fcn.14005dbf0
mov rcx, qword [rdi + 0x888]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor ebx, ebx
mov qword [rdi + 0x888], rbx
call fcn.14000b5e0
mov edx, 0x449
mov rcx, rax
call fcn.1400b45d0
jmp 0x1400a1b82
cmp edx, 0x445
jne 0x1400a1765
mov r8d, 0x76b
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_TID_RTK_STD_VOL_INFO
call fcn.14005dbf0
xor eax, eax
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
mov r9d, 0x2001f
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.1400278b0
lea rsi, [0x14015fec0]
test eax, eax
jne 0x1400a171f
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rsi
lea r9d, [rbx + 3]
xor r8d, r8d
lea rdx, str.Gen5VolInfo
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
test eax, eax
jne 0x1400a16fa
mov r8d, 0x774
lea rcx, str._s__d_set_Gen5VolInfo_success
jmp 0x1400a1707
mov r8d, 0x777
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
test rdi, rdi
je 0x1400a173d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rbx
jmp 0x1400a173d
mov r8d, 0x77c
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
mov rdi, qword [rsp + 0x40]
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.1400c53e0
nop
test rdi, rdi
je 0x1400a1b82
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400a1b82
cmp edx, 0x444
jne 0x1400a1900
movss xmm0, dword [rcx + 0x898]
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
mov eax, dword [rcx + 0x8ec]
mov dword [rsp + 0x20], eax
mov r9d, dword [rcx + 0x64]
mov r8d, 0x784
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_m_dwCurrentSpkEnrollState___d__dwTrainDataCnt___d__fMaxEnrollScore___f
call fcn.14005dbf0
lea rsi, [rdi + 0x10]
mov eax, dword [rdi + 0x64]
mov dword [rsi], eax
mov eax, dword [rdi + 0x8ec]
mov dword [rdi + 0x20], eax
mov eax, dword [rdi + 0x890]
mov dword [rdi + 0x24], eax
movss xmm1, dword [rdi + 0x898]
movss dword [rdi + 0x28], xmm1
mov eax, dword [rdi + 0x89c]
mov dword [rdi + 0x2c], eax
movss xmm0, dword [rdi + 0x894]
movss dword [rdi + 0x30], xmm0
mov eax, dword [rdi + 0x8f0]
mov dword [rdi + 0x34], eax
xor ebx, ebx
mov eax, ebx
comiss xmm1, xmm0
setae al
mov dword [rdi + 0x38], eax
mov eax, dword [rdi + 0x8a8]
mov dword [rdi + 0x3c], eax
mov eax, dword [rdi + 0x8ac]
mov dword [rdi + 0x40], eax
mov eax, dword [rdi + 0x8b0]
mov dword [rdi + 0x44], eax
mov eax, dword [rdi + 0x8b4]
mov dword [rdi + 0x48], eax
mov eax, dword [rdi + 0x8cc]
mov dword [rdi + 0x4c], eax
movups xmm0, xmmword [rdi + 0x8b8]
movups xmmword [rdi + 0x50], xmm0
mov eax, dword [rdi + 0x8c8]
mov dword [rdi + 0x60], eax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
mov r9d, 0x2001f
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.1400278b0
test eax, eax
jne 0x1400a18dd
mov dword [rsp + 0x28], 0x54
mov qword [rsp + 0x20], rsi
lea r9d, [rbx + 3]
xor r8d, r8d
lea rdx, str.Gen5Info
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
test eax, eax
jne 0x1400a18b8
mov r8d, 0x792
lea rcx, str._s__d_set_Gen5Info_success
jmp 0x1400a18c5
mov r8d, 0x795
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
test rdi, rdi
je 0x1400a18fb
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rbx
jmp 0x1400a18fb
mov r8d, 0x79a
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
mov rdi, qword [rsp + 0x40]
jmp 0x1400a174e
cmp edx, 0x443
jne 0x1400a1a47
inc dword [rcx + 0x8e8]
mov eax, dword [rcx + 0x8ec]
mov dword [rsp + 0x20], eax
mov r9d, dword [rcx + 0x8e8]
mov r8d, 0x7a4
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_dwRtkStdEnrollTimerCnt___d__dwTrainDataCnt___d
call fcn.14005dbf0
cmp dword [rdi + 0x8e8], 0x28
jae 0x1400a19f2
mov r8d, 0x7a7
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
mov eax, dword [rdi + 0x64]
cmp eax, 0x78
jne 0x1400a199e
mov r8d, 0x7a9
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
xor ebx, ebx
mov dword [rdi + 0x898], ebx
mov r8, qword [rdi + 8]
mov edx, 0xc8
mov rcx, rdi
call fcn.14009e940
jmp 0x1400a19f2
cmp eax, 0xc8
jne 0x1400a19f2
mov r8d, 0x7af
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
movss xmm0, dword [rdi + 0x898]
comiss xmm0, dword [rdi + 0x894]
jbe 0x1400a19f2
mov r8d, 0x7b3
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
mov dword [rdi + 0x8e4], 1
cmp dword [rdi + 0x8e4], 0
je 0x1400a1b82
mov r8d, 0x7c4
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e2bd0]
call fcn.14005dbf0
call fcn.14000b5e0
mov rcx, rax
mov edx, 0x443
call fcn.1400b45d0
mov r8, qword [rdi + 8]
xor edx, edx
mov rcx, rdi
call fcn.14009e940
mov edx, 0x10000231
call fcn.1400b2fd0
jmp 0x1400a1b82
cmp edx, 0x44a
jne 0x1400a1b82
mov eax, 0xcccccccd
mul dword [rcx + 0x8cc]
mov ebx, edx
shr ebx, 4
mov eax, 4
cmp ebx, eax
cmova ebx, eax
mov r9d, ebx
mov r8d, 0x7de
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_dwArrayIndex__d_m_dwCheckNoiseLevelCnt__d
call fcn.14005dbf0
movss xmm0, dword [rdi + 0x8a8]
comiss xmm0, dword [rdi + 0x8b0]
jbe 0x1400a1aa3
inc dword [rdi + rbx*4 + 0x8b8]
jmp 0x1400a1aaa
dec dword [rdi + rbx*4 + 0x8b8]
inc dword [rdi + 0x8cc]
mov eax, 0xcccccccd
mul dword [rdi + 0x8cc]
mov ebx, edx
shr ebx, 4
mov r9d, ebx
mov r8d, 0x7ee
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_dwTmpIndex__d_m_dwCheckNoiseLevelCnt__d
call fcn.14005dbf0
cmp ebx, 5
jb 0x1400a1b82
mov ecx, dword [rdi + 0x8cc]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
lea eax, [rdx + rdx*4]
shl eax, 2
cmp ecx, eax
jne 0x1400a1b82
mov ecx, dword [rdi + 0x8bc]
mov eax, dword [rdi + 0x8c0]
add eax, dword [rdi + 0x8b8]
add eax, ecx
add eax, dword [rdi + 0x8c8]
add eax, dword [rdi + 0x8c4]
test eax, eax
jle 0x1400a1b50
mov r8d, 0x7fb
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_notify_UWP_to_show_noise_message_box
call fcn.14005dbf0
mov edx, 0x1000024f
call fcn.1400b2fd0
mov ecx, dword [rdi + 0x8bc]
mov dword [rdi + 0x8b8], ecx
mov eax, dword [rdi + 0x8c0]
mov dword [rdi + 0x8bc], eax
mov eax, dword [rdi + 0x8c4]
mov dword [rdi + 0x8c0], eax
mov eax, dword [rdi + 0x8c8]
mov dword [rdi + 0x8c4], eax
xor ebx, ebx
mov dword [rdi + 0x8c8], ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400beb20
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret