Function at 0x1400a3020
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 [0x14015b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
cmp edx, 0x446
jne 0x1400a30c0
cmp qword [rcx + 0x878], 0
jne 0x1400a3792
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, [0x1400a0a10]
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, 0x765
lea rcx, str._s__d_CreateThread_SpkEnroll_TrainThread___x
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
mov r9, rax
call fcn.14005f240
call fcn.14000b690
mov edx, 0x446
mov rcx, rax
call fcn.1400b6360
jmp 0x1400a3792
cmp edx, 0x447
jne 0x1400a3114
cmp qword [rcx + 0x888], 0
jne 0x1400a3792
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, [0x1400a1eb0]
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, 0x771
lea rcx, str._s__d_CreateThread_SpkEnroll_DetectScoreThread___x
jmp 0x1400a309a
cmp edx, 0x448
jne 0x1400a31bb
cmp qword [rcx + 0x878], 0
je 0x1400a31a4
mov r8d, 0x77b
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_start_wait_m_hSpkEnroll_TrainThread
call fcn.14005f240
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 0x1400a3175
mov r9d, eax
mov r8d, 0x77f
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_WaitForSingleObject__x
call fcn.14005f240
mov r8d, 0x781
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_end_wait_m_hSpkEnroll_TrainThread
call fcn.14005f240
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.14000b690
mov edx, 0x448
mov rcx, rax
call fcn.1400b6360
jmp 0x1400a3792
cmp edx, 0x449
jne 0x1400a3262
cmp qword [rcx + 0x888], 0
je 0x1400a324b
mov r8d, 0x78d
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_start_wait_m_hSpkEnroll_DetectScoreThread
call fcn.14005f240
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 0x1400a321c
mov r9d, eax
mov r8d, 0x791
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_WaitForSingleObject__x
call fcn.14005f240
mov r8d, 0x793
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_end_wait_m_hSpkEnroll_DetectScoreThread
call fcn.14005f240
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.14000b690
mov edx, 0x449
mov rcx, rax
call fcn.1400b6360
jmp 0x1400a3792
cmp edx, 0x445
jne 0x1400a3375
mov r8d, 0x79d
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_TID_RTK_STD_VOL_INFO
call fcn.14005f240
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.140027bc0
lea rsi, [0x140162ea0]
test eax, eax
jne 0x1400a332f
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 0x1400a330a
mov r8d, 0x7a6
lea rcx, str._s__d_set_Gen5VolInfo_success
jmp 0x1400a3317
mov r8d, 0x7a9
lea rcx, [0x1400e4bf0]
call fcn.14005f240
test rdi, rdi
je 0x1400a334d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rbx
jmp 0x1400a334d
mov r8d, 0x7ae
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e4bf0]
call fcn.14005f240
mov rdi, qword [rsp + 0x40]
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.1400c71e0
nop
test rdi, rdi
je 0x1400a3792
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400a3792
cmp edx, 0x444
jne 0x1400a3510
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, 0x7b6
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_m_dwCurrentSpkEnrollState___d__dwTrainDataCnt___d__fMaxEnrollScore___f
call fcn.14005f240
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.140027bc0
test eax, eax
jne 0x1400a34ed
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 0x1400a34c8
mov r8d, 0x7c4
lea rcx, str._s__d_set_Gen5Info_success
jmp 0x1400a34d5
mov r8d, 0x7c7
lea rcx, [0x1400e4bf0]
call fcn.14005f240
test rdi, rdi
je 0x1400a350b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rbx
jmp 0x1400a350b
mov r8d, 0x7cc
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e4bf0]
call fcn.14005f240
mov rdi, qword [rsp + 0x40]
jmp 0x1400a335e
cmp edx, 0x443
jne 0x1400a3657
inc dword [rcx + 0x8e8]
mov eax, dword [rcx + 0x8ec]
mov dword [rsp + 0x20], eax
mov r9d, dword [rcx + 0x8e8]
mov r8d, 0x7d6
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_dwRtkStdEnrollTimerCnt___d__dwTrainDataCnt___d
call fcn.14005f240
cmp dword [rdi + 0x8e8], 0x28
jae 0x1400a3602
mov r8d, 0x7d9
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e4bf0]
call fcn.14005f240
mov eax, dword [rdi + 0x64]
cmp eax, 0x78
jne 0x1400a35ae
mov r8d, 0x7db
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e4bf0]
call fcn.14005f240
xor ebx, ebx
mov dword [rdi + 0x898], ebx
mov r8, qword [rdi + 8]
mov edx, 0xc8
mov rcx, rdi
call fcn.1400a0380
jmp 0x1400a3602
cmp eax, 0xc8
jne 0x1400a3602
mov r8d, 0x7e1
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e4bf0]
call fcn.14005f240
movss xmm0, dword [rdi + 0x898]
comiss xmm0, dword [rdi + 0x894]
jbe 0x1400a3602
mov r8d, 0x7e5
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e4bf0]
call fcn.14005f240
mov dword [rdi + 0x8e4], 1
cmp dword [rdi + 0x8e4], 0
je 0x1400a3792
mov r8d, 0x7f6
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, [0x1400e4bf0]
call fcn.14005f240
call fcn.14000b690
mov rcx, rax
mov edx, 0x443
call fcn.1400b6360
mov r8, qword [rdi + 8]
xor edx, edx
mov rcx, rdi
call fcn.1400a0380
mov edx, 0x10000231
call fcn.1400b4d60
jmp 0x1400a3792
cmp edx, 0x44a
jne 0x1400a3792
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, 0x810
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_dwArrayIndex__d_m_dwCheckNoiseLevelCnt__d
call fcn.14005f240
movss xmm0, dword [rdi + 0x8a8]
comiss xmm0, dword [rdi + 0x8b0]
jbe 0x1400a36b3
inc dword [rdi + rbx*4 + 0x8b8]
jmp 0x1400a36ba
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, 0x820
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_dwTmpIndex__d_m_dwCheckNoiseLevelCnt__d
call fcn.14005f240
cmp ebx, 5
jb 0x1400a3792
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 0x1400a3792
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 0x1400a3760
mov r8d, 0x82d
lea rdx, str.CRtkBssGen5SpkTrackEnroll::OnTimer
lea rcx, str._s__d_notify_UWP_to_show_noise_message_box
call fcn.14005f240
mov edx, 0x1000024f
call fcn.1400b4d60
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.1400c0920
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret