Function at 0x1400a0ab0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1e0
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14015b010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r13, rcx
mov r8d, 0x2fe
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, [0x1400e4bf0]
call fcn.14005f240
xor r15d, r15d
mov dword [r13 + 0x890], r15d
mov qword [r13 + 0x8e4], r15
mov dword [r13 + 0x8ec], r15d
mov qword [r13 + 0x894], 0x41b00000
mov qword [r13 + 0x89c], r15
mov rcx, r13
call fcn.14009f510
mov qword [rsp + 0x50], r15
mov r12d, r15d
mov dword [rsp + 0x40], r15d
mov qword [rbp - 0x20], r15
mov qword [rbp + 0x68], r15
mov qword [rbp], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 8], r15
mov qword [rbp + 8], r15
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x1400a1ea4
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x88], rax
lea rbx, [0x1400e4fe8]
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.140004660
lea r14, [r15 - 1]
test al, al
jne 0x1400a0bcd
mov rax, r14
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a0bb0
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.1400048e0
nop
mov esi, SafeArrayDestroy
mov dword [rsp + 0x60], esi
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x1400a1e99
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x78], rax
mov rdx, rbx
lea rcx, [rbp + 0x78]
call fcn.140004660
test al, al
jne 0x1400a0c2a
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a0c10
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x78]
call fcn.1400048e0
nop
mov qword [rbp + 0x10], r15
mov qword [r13 + 0x8ec], r15
mov dword [r13 + 0x890], r15d
lea rcx, str.SpeakerVerfDll.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x1400a0c77
mov r8d, 0x333
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_Load_SpeakerVerfDll.dll_fail
call fcn.14005f240
mov rdi, qword [rbp + 0x78]
jmp 0x1400a1cf0
lea rdx, str.SVE_Init
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
lea rdx, str.SVE_Init2
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov r15, rax
lea rdx, str.SVE_StartTrain
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov r14, rax
lea rdx, str.SVE_Process
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
lea rdx, str.SVE_Process2
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.SVE_GetTrainDataReady
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rbp - 0x58], rax
lea rdx, str.SVE_Stop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rbp - 0x40], rax
lea rdx, str.SVE_GetOutputTrainDataSize
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rbp - 0x50], rax
lea rdx, str.SVE_SaveTrainDataToMemory
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rbp - 0x48], rax
lea rdx, str.SVE_Destroy
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rbp - 0x38], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e8648]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1400e8668]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jns 0x1400a0d8a
mov r8d, 0x346
mov r9d, eax
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_EXIT_ON_ERROR_0x_X_
call fcn.14005f240
mov rdi, qword [rbp + 0x78]
jmp 0x1400a1ce9
mov rdx, qword [r13 + 8]
cmp dword [rdx - 0x10], 0
je 0x1400a0de1
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rbp - 0x10]
call qword [rax + 0x28]
mov ebx, eax
mov r9, qword [r13 + 8]
mov r8d, 0x34b
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_GetDevice_EndpointId_s
call fcn.14005f240
test ebx, ebx
jns 0x1400a0de1
mov r9d, ebx
mov r8d, 0x34c
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_hr_x
call fcn.14005f240
mov rcx, qword [rbp - 0x10]
test rcx, rcx
jne 0x1400a0e13
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r9, [rbp - 0x10]
mov edx, 1
mov r8d, edx
call qword [rax + 0x20]
test eax, eax
jns 0x1400a0e0f
mov r8d, 0x352
jmp 0x1400a0d6b
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
call qword [rax + 0x28]
test eax, eax
jns 0x1400a0e2c
mov r8d, 0x357
jmp 0x1400a0d6b
mov rdx, qword [rbp + 0x10]
test rdx, rdx
jne 0x1400a0e3b
xor ebx, ebx
mov eax, ebx
jmp 0x1400a0e4e
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400a0e42
xor ebx, ebx
mov r8d, eax
lea rcx, [rbp + 0x78]
call fcn.1400048e0
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rdi, qword [rbp + 0x78]
mov r9, rdi
mov r8d, 0x35c
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_IMMDevice_GetDevice_EndpointId_s
call fcn.14005f240
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8d, [r9 + 0x17]
lea rdx, [0x140120f98]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jns 0x1400a0eca
mov r8d, 0x35f
mov r9d, eax
lea rcx, str._s__d_EXIT_ON_ERROR_0x_X_
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
call fcn.14005f240
jmp 0x1400a1ce9
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
call qword [rax + 0x40]
test eax, eax
jns 0x1400a0ee4
mov r8d, 0x366
jmp 0x1400a0eaf
mov rcx, qword [rbp - 0x20]
movzx eax, word [rcx + 0xc]
movzx edx, word [rcx + 2]
movzx r9d, word [rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 4]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov r8d, 0x367
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_Mix_Format:_tag0x_X__channels_d__sample_rate_d__block_align_d
call fcn.14005f240
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea r9, [rbp + 0x68]
mov r8, qword [rbp - 0x20]
xor edx, edx
call qword [rax + 0x38]
test eax, eax
jns 0x1400a0f50
mov r9d, eax
mov r8d, 0x36a
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_hr_x
call fcn.14005f240
mov r8, qword [rbp - 0x20]
mov r9d, dword [r8 + 4]
cmp r9d, 0xbb80
je 0x1400a0f91
cmp r9d, 0x17700
je 0x1400a0f91
cmp r9d, 0x2ee00
je 0x1400a0f91
mov r8d, 0x376
lea rcx, str._s__d_currently_only_support_48k___96k___192k_sample_rate__sample_rate_d
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
call fcn.14005f240
jmp 0x1400a1ce9
movzx eax, word [r8]
mov ecx, 3
cmp cx, ax
je 0x1400a0fc9
mov ecx, 0xfffe
cmp cx, ax
jne 0x1400a0fc3
mov rax, qword [0x140120fb8]
cmp rax, qword [r8 + 0x18]
jne 0x1400a0fc3
mov rax, qword [0x140120fc0]
cmp rax, qword [r8 + 0x20]
je 0x1400a0fc9
mov qword [rbp - 0x78], rbx
jmp 0x1400a0fd1
mov qword [rbp - 0x78], 1
movzx ecx, word [r8 + 0xe]
movzx eax, word [r8 + 2]
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [rsp + 0x44], eax
movzx ecx, word [r8 + 0xc]
cmp eax, ecx
je 0x1400a1019
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8d, 0x392
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_not_support_FrameSize___pWfxIn__nBlockAlign._FrameSize:__d_bytes__BlockAlign:__d_bytes
call fcn.14005f240
jmp 0x1400a1ce9
mov dword [rbp + 0x84], ebx
mov qword [rbp + 0x18], rbx
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rbx
mov r9d, 0xf4240
xor r8d, r8d
xor edx, edx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jns 0x1400a1067
mov r9d, eax
mov r8d, 0x3a1
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_hr_x
call fcn.14005f240
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea r8, [rbp - 8]
lea rdx, [0x140120fa8]
call qword [rax + 0x70]
test eax, eax
jns 0x1400a109c
mov r9d, eax
mov r8d, 0x3a3
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_hr_x
call fcn.14005f240
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea rdx, [rbp + 0x84]
call qword [rax + 0x20]
test eax, eax
jns 0x1400a10cd
mov r9d, eax
mov r8d, 0x3a5
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_hr_x
call fcn.14005f240
mov r9d, dword [rbp + 0x84]
mov r8d, 0x3a6
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_bufferFrameCount:__d
call fcn.14005f240
mov eax, dword [rbp + 0x84]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
mulsd xmm1, qword [0x14012d0e0]
mov rax, qword [rbp - 0x20]
mov ecx, dword [rax + 4]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm1, xmm0
cvttsd2si rcx, xmm1
movabs rax, 0x346dc5d63886594b
imul rcx
mov rbx, rdx
sar rbx, 0xc
mov rax, rbx
shr rax, 0x3f
add rbx, rax
mov qword [rbp - 0x60], rbx
mov qword [rsp + 0x20], rcx
mov r9d, 0xf4240
mov r8d, 0x3ab
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_hnsRequestedDuratio:__I64d__hnsActualDuration:__I64d
call fcn.14005f240
mov r9d, ebx
mov r8d, 0x3ac
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_sleep_time:__d
call fcn.14005f240
mov dword [rbp + 0x80], 0
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x1400a11b1
mov r9d, eax
mov r8d, 0x3b3
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_hr_x
call fcn.14005f240
mov eax, 0x51eb851f
mov rcx, qword [rbp - 0x20]
mul dword [rcx + 4]
mov ebx, edx
shr ebx, 5
mov dword [rsp + 0x48], ebx
mov r9d, ebx
mov r8d, 0x3b9
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_dwMonoFramesNumPerSec:__d
call fcn.14005f240
mov eax, 4
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
test rax, rax
jne 0x1400a1226
mov r8d, 0x3bc
lea rcx, str._s__d_EXIT_ON_FALSE
call fcn.14005f240
jmp 0x1400a1ce9
lea rax, [rbx*4]
mov qword [rbp - 0x68], rax
mov r9, rax
mov r8d, 0x3bd
lea rcx, str._s__d_in_size:__d__bytes_
call fcn.14005f240
mov eax, ebx
shl eax, 6
mov qword [rbp - 0x80], rax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
test rax, rax
jne 0x1400a1285
mov r8d, 0x3c0
mov r9, qword [rbp - 0x80]
mov r8d, 0x3c1
lea rcx, str._s__d_pBufferFramesData_size:__d__bytes_
call fcn.14005f240
mov rax, qword [rbp - 0x20]
movzx ecx, word [rax + 2]
imul ebx, ecx
mov eax, 4
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
test rax, rax
jne 0x1400a12db
mov r8d, 0x3c6
jmp 0x1400a126f
lea rax, [rbx*4]
mov qword [rbp - 0x70], rax
mov r9, rax
mov r8d, 0x3c7
lea rcx, str._s__d_iIntergerData_size:__d__bytes_
call fcn.14005f240
mov eax, 4
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
test rax, rax
jne 0x1400a1332
mov r8d, 0x3ca
jmp 0x1400a126f
lea r9, [rbx*4]
mov r8d, 0x3cb
lea rcx, str._s__d_fFloatData_size:__d__bytes_
call fcn.14005f240
call fcn.14000b520
mov rdx, rdi
call fcn.140090350
mov rbx, rax
test rax, rax
je 0x1400a14c9
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x98]
lea rdx, [0x1400dfd38]
lea rcx, [rbp + 0x78]
call fcn.140003540
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
test eax, eax
jne 0x1400a13bf
mov rdi, qword [rbp + 0x78]
mov r9, rdi
mov r8d, 0x3d9
lea rcx, str._s__d_csEndpointId_s__get_PKEY_RTK_BSS_SVEParam_fail
call fcn.14005f240
mov r8d, 0x3da
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
jmp 0x1400a126f
mov esi, dword [rsp + 0x60]
mov r9d, esi
mov r8d, 0x3de
lea rcx, str._s__d_get_nDataSize__d
call fcn.14005f240
mov r9d, dword [rbp + 0x98]
mov r8d, 0x3df
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_SVEParams_nMinDataCount__d
call fcn.14005f240
mov r9d, dword [rbp + 0x9c]
mov r8d, 0x3e0
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkEnroll_TrainProc
lea rcx, str._s__d_SVEParams_nMinTrainMs__d
call fcn.14005f240
mov rbx, qword [rbp + 0x88]
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
int3