Function at 0x1400a3790
Capabilities:
Check http status code
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140162010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov edi, edx
mov rbx, rcx
mov r9d, edx
mov r8d, 0x1ff
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_dwNewEnrollState___d
call fcn.140061d00
xor r15d, r15d
cmp edi, 1
jne 0x1400a3811
mov r8d, 0x205
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_Rtk_standard_enroll_start
call fcn.140061d00
mov dword [rbx + 0x68], edi
mov qword [rbx + 0x8e4], r15
call fcn.14000b5b0
mov edx, 0x443
mov rcx, rax
lea r8d, [rdx - 0x5b]
call fcn.1400bb060
mov qword [rsp + 0xa8], r14
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov dword [rbx + 0x64], edi
test edi, edi
je 0x1400a3b66
mov r9, rsi
lea rcx, str._s__d_csEndpointId_s
mov r8d, 0x211
call fcn.140061d00
lea rcx, [rbx + 8]
call fcn.140004a00
test rsi, rsi
jne 0x1400a3853
mov eax, r15d
jmp 0x1400a386a
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1400a3860
mov r8d, eax
lea rcx, [rbx + 8]
mov rdx, rsi
call fcn.1400048e0
mov r9, qword [rbx + 8]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x214
lea rcx, str._s__d_m_csEndpointId_s
call fcn.140061d00
cmp dword [0x14016c2e8], r15d
jne 0x1400a39a7
mov rcx, rbx
call fcn.1400a2d20
mov r9d, 1
mov dword [rbp - 0x30], r15d
lea r8, [rbp - 0x30]
lea rdx, [0x1400e87a0]
lea rcx, [rbx + 8]
call fcn.140003180
test eax, eax
je 0x1400a38da
cmp dword [rbp - 0x30], 1
jne 0x1400a38da
mov esi, 1
jmp 0x1400a391c
xor eax, eax
lea r8, [rbp - 0x28]
mov qword [rbp - 0x28], rax
lea rdx, [0x1400e87a0]
mov qword [rbp - 0x20], rax
lea rcx, [rbx + 8]
mov qword [rbp - 0x18], rax
mov eax, SafeArrayUnaccessData
mov word [rbp - 0x28], ax
mov dword [rbp - 0x20], 1
lea r9d, [rax - 0x12]
call fcn.140003d90
lea rcx, [rbp - 0x28]
mov esi, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov r9, qword [rbx + 8]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x21c
mov dword [rsp + 0x20], esi
lea rcx, str._s__d_m_csEndpointId__s__PKEY_RTK_BSS_Enroll__set_enabled__success__d
call fcn.140061d00
call fcn.14001de00
test dword [rax + 4], 0x2000000
je 0x1400a39a7
mov dword [rbx + 0x8a8], 0xc47a0000
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov dword [rbx + 0x8ac], 0xc47a0000
lea rcx, str._s__d_start_SNR_detect
xor eax, eax
mov qword [rbx + 0x8c8], r15
mov qword [rbx + 0x8b8], rax
mov r8d, 0x227
mov qword [rbx + 0x8c0], rax
call fcn.140061d00
call fcn.14000b5b0
mov rcx, rax
mov edx, 0x44a
mov r8d, 0x32
call fcn.1400bb060
cmp edi, 1
je 0x1400a39c2
cmp edi, 0x64
jne 0x1400a3a58
cmp dword [0x14016c2e8], 0x6e
je 0x1400a3b08
mov r9, qword [rbx + 0x878]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x233
lea rcx, str._s__d_m_hSpkEnroll_TrainThread__x
call fcn.140061d00
mov dword [rbp - 0x30], r15d
cmp qword [rbx + 0x878], r15
je 0x1400a3a13
mov dword [rbx + 0x870], 1
call fcn.14000b5b0
mov rcx, rax
mov edx, 0x446
mov r8d, 0x64
call fcn.1400bb060
jmp 0x1400a3a58
lea rax, [rbp - 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400a3e20]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov r8d, 0x2e3
lea rdx, str.CRtkBssGen5SpkTrackEnroll::StartTrainThread
lea rcx, str._s__d_CreateThread_SpkEnroll_TrainThread___x
mov qword [rbx + 0x878], rax
mov r9, rax
call fcn.140061d00
cmp edi, 0xc8
jne 0x1400a3b08
cmp dword [0x14016c2e8], 0xd2
je 0x1400a3b08
mov r9, qword [rbx + 0x888]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x251
lea rcx, str._s__d_m_hSpkEnroll_DetectScoreThread__x
call fcn.140061d00
mov dword [rbp - 0x30], r15d
cmp qword [rbx + 0x888], r15
je 0x1400a3ac3
mov dword [rbx + 0x880], 1
call fcn.14000b5b0
mov rcx, rax
lea r8d, [rdi - 0x64]
mov edx, 0x447
call fcn.1400bb060
jmp 0x1400a3b08
lea rax, [rbp - 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400a5330]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov r8d, 0x535
lea rdx, str.CRtkBssGen5SpkTrackEnroll::StartDetectScoreThread
lea rcx, str._s__d_CreateThread_SpkEnroll_DetectScoreThread___x
mov qword [rbx + 0x888], rax
mov r9, rax
call fcn.140061d00
cmp dword [rbx + 0x64], 0xdc
jne 0x1400a3b3e
mov r8d, 0x26f
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_sSpkEnroll_DetectScore_Stop
call fcn.140061d00
mov dword [rbx + 0x880], 1
mov dword [rbx + 0x8a0], 1
mov eax, dword [rbx + 0x64]
mov dword [0x14016c2e8], eax
mov r14, qword [rsp + 0xa8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400c5860
add rsp, 0x60
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, 0x276
lea rcx, str._s__d_dwEnrollState__SpkEnroll_Stop
call fcn.140061d00
cmp dword [0x14016c2e8], r15d
je 0x1400a3b3e
mov r8d, 0x27a
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_RestoreMicToOriginalVol
call fcn.140061d00
mov rcx, rbx
call fcn.1400a2f10
mov r9d, 1
mov dword [rbp - 0x30], r15d
lea r8, [rbp - 0x30]
lea rdx, [0x1400e87a0]
lea rcx, [rbx + 8]
call fcn.140003180
test eax, eax
je 0x1400a3bd2
cmp dword [rbp - 0x30], r15d
jne 0x1400a3bd2
mov r14d, 1
jmp 0x1400a3c12
xor eax, eax
lea r8, [rbp - 0x28]
mov qword [rbp - 0x28], rax
lea rdx, [0x1400e87a0]
mov qword [rbp - 0x20], rax
lea rcx, [rbx + 8]
mov qword [rbp - 0x18], rax
mov eax, SafeArrayUnaccessData
mov word [rbp - 0x28], ax
mov dword [rbp - 0x20], r15d
lea r9d, [rax - 0x12]
call fcn.140003d90
lea rcx, [rbp - 0x28]
mov r14d, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov r9, qword [rbx + 8]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x27f
mov dword [rsp + 0x20], r14d
lea rcx, str._s__d_m_csEndpointId__s__PKEY_RTK_BSS_Enroll__set_disabled__success__d
call fcn.140061d00
call fcn.14001de00
test dword [rax + 4], 0x2000000
je 0x1400a3c98
mov dword [rbx + 0x8a8], 0xc47a0000
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov dword [rbx + 0x8ac], 0xc47a0000
lea rcx, str._s__d_end_SNR_detect
xor eax, eax
mov qword [rbx + 0x8c8], r15
mov qword [rbx + 0x8b8], rax
mov r8d, 0x28b
mov qword [rbx + 0x8c0], rax
call fcn.140061d00
call fcn.14000b5b0
mov rcx, rax
mov edx, 0x44a
call fcn.1400bb290
mov r9d, dword [rbx + 0x890]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x292
lea rcx, str._s__d_m_bAlreadyGetTrainData____d
call fcn.140061d00
cmp dword [rbx + 0x890], r15d
je 0x1400a3de2
mov r9d, dword [rbx + 0x8a0]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x295
lea rcx, str._s__d_m_bAlreadyFinishDetectScore____d
call fcn.140061d00
cmp dword [rbx + 0x68], r15d
je 0x1400a3d01
movss xmm0, dword [rbx + 0x894]
comiss xmm0, dword [rbx + 0x898]
ja 0x1400a3d1f
jmp 0x1400a3de2
cmp dword [rbx + 0x8a0], r15d
je 0x1400a3d1f
movss xmm0, dword [rbx + 0x894]
comiss xmm0, dword [rbx + 0x898]
jbe 0x1400a3de2
mov r8d, 0x2af
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_enroll_fail__restore_to_original_train_data
call fcn.140061d00
lea r9, [rbx + 0x6c]
mov dword [rbx + 0x6c], 0x800
lea r8, [rbx + 0x70]
mov dword [rsp + 0x20], 2
lea rdx, [0x1400e49a8]
lea rcx, [rbx + 8]
call fcn.140003540
test eax, eax
jne 0x1400a3da2
xor edx, edx
lea rcx, [rbx + 0x70]
mov r8d, 0x800
call fcn.1400cc120
mov r9d, 4
mov dword [rsp + 0x20], 2
lea r8, [rbx + 0x70]
lea rdx, [0x1400e8908]
lea rcx, [rbx + 8]
call fcn.140003700
test eax, eax
jne 0x1400a3de2
mov r8d, 0x2b9
jmp 0x1400a3dcc
mov r9d, dword [rbx + 0x6c]
lea r8, [rbx + 0x70]
lea rdx, [0x1400e8908]
mov dword [rsp + 0x20], 2
lea rcx, [rbx + 8]
call fcn.140003700
test eax, eax
jne 0x1400a3de2
mov r8d, 0x2c1
mov r9, rsi
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_csEndpointId_s__restore_to_PKEY_RTK_BSS_SVETrainData_fail
call fcn.140061d00
cmp qword [rbx + 0x878], r15
je 0x1400a3df5
mov dword [rbx + 0x870], 1
mov eax, dword [rbx + 0x64]
mov dword [0x14016c2e8], eax
cmp qword [rbx + 0x888], r15
je 0x1400a3b47
mov dword [rbx + 0x880], 1
jmp 0x1400a3b47