Function at 0x1400a0380
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 [0x14015b010]
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.14005f240
xor r15d, r15d
cmp edi, 1
jne 0x1400a0401
mov r8d, 0x205
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_Rtk_standard_enroll_start
call fcn.14005f240
mov dword [rbx + 0x68], edi
mov qword [rbx + 0x8e4], r15
call fcn.14000b690
mov edx, 0x443
mov rcx, rax
lea r8d, [rdx - 0x5b]
call fcn.1400b6130
mov qword [rsp + 0xa8], r14
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov dword [rbx + 0x64], edi
test edi, edi
je 0x1400a0756
mov r9, rsi
lea rcx, str._s__d_csEndpointId_s
mov r8d, 0x211
call fcn.14005f240
lea rcx, [rbx + 8]
call fcn.140004a00
test rsi, rsi
jne 0x1400a0443
mov eax, r15d
jmp 0x1400a045a
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1400a0450
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.14005f240
cmp dword [0x1401651c0], r15d
jne 0x1400a0597
mov rcx, rbx
call fcn.14009f910
mov r9d, 1
mov dword [rbp - 0x30], r15d
lea r8, [rbp - 0x30]
lea rdx, [0x1400dfac8]
lea rcx, [rbx + 8]
call fcn.140003180
test eax, eax
je 0x1400a04ca
cmp dword [rbp - 0x30], 1
jne 0x1400a04ca
mov esi, 1
jmp 0x1400a050c
xor eax, eax
lea r8, [rbp - 0x28]
mov qword [rbp - 0x28], rax
lea rdx, [0x1400dfac8]
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.14005f240
call fcn.14001ddb0
test dword [rax + 4], 0x2000000
je 0x1400a0597
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.14005f240
call fcn.14000b690
mov rcx, rax
mov edx, 0x44a
mov r8d, 0x32
call fcn.1400b6130
cmp edi, 1
je 0x1400a05b2
cmp edi, 0x64
jne 0x1400a0648
cmp dword [0x1401651c0], 0x6e
je 0x1400a06f8
mov r9, qword [rbx + 0x878]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x233
lea rcx, str._s__d_m_hSpkEnroll_TrainThread__x
call fcn.14005f240
mov dword [rbp - 0x30], r15d
cmp qword [rbx + 0x878], r15
je 0x1400a0603
mov dword [rbx + 0x870], 1
call fcn.14000b690
mov rcx, rax
mov edx, 0x446
mov r8d, 0x64
call fcn.1400b6130
jmp 0x1400a0648
lea rax, [rbp - 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400a0a10]
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.14005f240
cmp edi, 0xc8
jne 0x1400a06f8
cmp dword [0x1401651c0], 0xd2
je 0x1400a06f8
mov r9, qword [rbx + 0x888]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x251
lea rcx, str._s__d_m_hSpkEnroll_DetectScoreThread__x
call fcn.14005f240
mov dword [rbp - 0x30], r15d
cmp qword [rbx + 0x888], r15
je 0x1400a06b3
mov dword [rbx + 0x880], 1
call fcn.14000b690
mov rcx, rax
lea r8d, [rdi - 0x64]
mov edx, 0x447
call fcn.1400b6130
jmp 0x1400a06f8
lea rax, [rbp - 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400a1eb0]
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.14005f240
cmp dword [rbx + 0x64], 0xdc
jne 0x1400a072e
mov r8d, 0x26f
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_sSpkEnroll_DetectScore_Stop
call fcn.14005f240
mov dword [rbx + 0x880], 1
mov dword [rbx + 0x8a0], 1
mov eax, dword [rbx + 0x64]
mov dword [0x1401651c0], eax
mov r14, qword [rsp + 0xa8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400c0920
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.14005f240
cmp dword [0x1401651c0], r15d
je 0x1400a072e
mov r8d, 0x27a
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_RestoreMicToOriginalVol
call fcn.14005f240
mov rcx, rbx
call fcn.14009fb00
mov r9d, 1
mov dword [rbp - 0x30], r15d
lea r8, [rbp - 0x30]
lea rdx, [0x1400dfac8]
lea rcx, [rbx + 8]
call fcn.140003180
test eax, eax
je 0x1400a07c2
cmp dword [rbp - 0x30], r15d
jne 0x1400a07c2
mov r14d, 1
jmp 0x1400a0802
xor eax, eax
lea r8, [rbp - 0x28]
mov qword [rbp - 0x28], rax
lea rdx, [0x1400dfac8]
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.14005f240
call fcn.14001ddb0
test dword [rax + 4], 0x2000000
je 0x1400a0888
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.14005f240
call fcn.14000b690
mov rcx, rax
mov edx, 0x44a
call fcn.1400b6360
mov r9d, dword [rbx + 0x890]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x292
lea rcx, str._s__d_m_bAlreadyGetTrainData____d
call fcn.14005f240
cmp dword [rbx + 0x890], r15d
je 0x1400a09d2
mov r9d, dword [rbx + 0x8a0]
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
mov r8d, 0x295
lea rcx, str._s__d_m_bAlreadyFinishDetectScore____d
call fcn.14005f240
cmp dword [rbx + 0x68], r15d
je 0x1400a08f1
movss xmm0, dword [rbx + 0x894]
comiss xmm0, dword [rbx + 0x898]
ja 0x1400a090f
jmp 0x1400a09d2
cmp dword [rbx + 0x8a0], r15d
je 0x1400a090f
movss xmm0, dword [rbx + 0x894]
comiss xmm0, dword [rbx + 0x898]
jbe 0x1400a09d2
mov r8d, 0x2af
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_enroll_fail__restore_to_original_train_data
call fcn.14005f240
lea r9, [rbx + 0x6c]
mov dword [rbx + 0x6c], 0x800
lea r8, [rbx + 0x70]
mov dword [rsp + 0x20], 2
lea rdx, [0x1400dfd20]
lea rcx, [rbx + 8]
call fcn.140003540
test eax, eax
jne 0x1400a0992
xor edx, edx
lea rcx, [rbx + 0x70]
mov r8d, 0x800
call fcn.1400c71e0
mov r9d, 4
mov dword [rsp + 0x20], 2
lea r8, [rbx + 0x70]
lea rdx, [0x1400dfd08]
lea rcx, [rbx + 8]
call fcn.140003700
test eax, eax
jne 0x1400a09d2
mov r8d, 0x2b9
jmp 0x1400a09bc
mov r9d, dword [rbx + 0x6c]
lea r8, [rbx + 0x70]
lea rdx, [0x1400dfd08]
mov dword [rsp + 0x20], 2
lea rcx, [rbx + 8]
call fcn.140003700
test eax, eax
jne 0x1400a09d2
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.14005f240
cmp qword [rbx + 0x878], r15
je 0x1400a09e5
mov dword [rbx + 0x870], 1
mov eax, dword [rbx + 0x64]
mov dword [0x1401651c0], eax
cmp qword [rbx + 0x888], r15
je 0x1400a0737
mov dword [rbx + 0x880], 1
jmp 0x1400a0737