Function at 0x1400a2160
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb8]
sub rsp, 0x1b8
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x14014f010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov esi, r9d
mov dword [rsp + 0x44], esi
mov r13, r8
mov r15, rcx
mov ebx, dword [rbp + 0x128]
mov r14, qword [rbp + 0x120]
mov r12, qword [rbp + 0x130]
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [r12], edi
cmp edx, 0x10000101
ja 0x1400a2832
je 0x1400a2783
lea eax, [rdx - 0x10000001]
cmp eax, 9
ja case.default.0x1400a2864
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xa32b8]
add rax, rcx
jmp rax
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], esi
mov r9, r13
xor r8d, r8d
mov rcx, r15
call fcn.1400a3310
jmp 0x1400a327d
test r14, r14
jne 0x1400a223c
lea r8d, [r14 + 0x32]
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005be10
xor eax, eax
jmp 0x1400a327d
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je case.default.0x1400a2864
mov rcx, rax
call fcn.140016580
mov dword [rsp + 0x44], eax
cmp ebx, 4
mov r8, rbx
jbe 0x1400a226c
mov r8d, 4
mov r8d, r8d
mov dword [r12], r8d
lea rdx, [rsp + 0x44]
mov rcx, r14
call fcn.1400c0250
jmp case.default.0x1400a2864
test r13, r13
jne 0x1400a2290
lea r8d, [r13 + 0x3f]
jmp 0x1400a2222
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
mov rbx, rax
test rax, rax
je case.default.0x1400a2864
mov dword [rbp - 0x14], edi
mov r8, rsi
mov rdx, r13
lea rcx, [rbp - 0x14]
call fcn.1400c0250
mov edx, dword [rbp - 0x14]
mov rcx, rbx
call fcn.1400165c0
mov eax, 1
jmp 0x1400a327d
mov qword [rbp], rdi
mov qword [rbp - 0x40], rdi
test r14, r14
jne 0x1400a22e6
lea r8d, [r14 + 0x52]
jmp 0x1400a2367
mov r8, rbx
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [0x1400dd5d8]
mov esi, 1
mov r8d, esi
xor edx, edx
lea rcx, [0x1400dd5e8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jns 0x1400a2324
lea r8d, [rsi + 0x56]
jmp 0x1400a2342
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r9, [rbp - 0x40]
xor r8d, r8d
mov rdx, r15
call qword [rax + 0x20]
test eax, eax
jns 0x1400a235a
mov r8d, 0x5b
mov r9d, eax
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_RETURN_FALSE_ON_ERROR_0x_X_
call fcn.14005be10
jmp 0x1400a23b5
mov r15, qword [rbp - 0x40]
test r15, r15
jne 0x1400a237c
lea r8d, [r15 + 0x5c]
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005be10
jmp 0x1400a23b5
mov rdx, r15
mov rcx, r14
cmp word [r15 + 0x10], 0x16
mov r8d, 0x28
je 0x1400a2396
mov r8d, SafeArrayUnaccessData
cmp ebx, r8d
cmovbe r8, rbx
mov r8d, r8d
mov dword [r12], r8d
call fcn.1400c0250
mov rcx, r15
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rdi, rsi
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400a327a
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400a327a
mov qword [rbp - 0x10], rdi
test r13, r13
jne 0x1400a23f2
lea r8d, [r13 + 0x73]
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005be10
jmp 0x1400a2486
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [0x1400dd5d8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400dd5e8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jns 0x1400a2437
mov r9d, eax
mov r8d, 0x77
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_RETURN_FALSE_ON_ERROR_0x_X_
call fcn.14005be10
jmp 0x1400a2486
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
xor r9d, r9d
mov r8, r13
mov rdx, r15
call qword [rax + 0x28]
test eax, eax
jns 0x1400a247e
cmp word [r13 + 0xe], 0x20
jne 0x1400a247e
mov dword [r13 + 0xc], 0x180006
mov eax, dword [r13 + 4]
lea ecx, [rax + rax*2]
add ecx, ecx
mov dword [r13 + 8], ecx
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
xor r9d, r9d
mov r8, r13
mov rdx, r15
call qword [rax + 0x28]
not eax
mov edi, eax
shr rdi, 0x1f
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400a327a
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400a327a
test r13, r13
jne 0x1400a24ae
mov r8d, 0x8b
jmp 0x1400a2222
mov dword [rbp - 0x18], edi
cmp esi, 4
mov r8, rsi
jbe 0x1400a24bf
mov r8d, 4
mov rdx, r13
lea rcx, [rbp - 0x18]
call fcn.1400c0250
mov qword [rbp + 8], rdi
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
lea r9, [0x1400dd5d8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400dd5e8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jns 0x1400a2514
mov r9d, eax
mov r8d, 0x92
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_RETURN_FALSE_ON_ERROR_0x_X_
call fcn.14005be10
jmp 0x1400a252b
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x18]
mov rdx, r15
call qword [rax + 0x60]
test eax, eax
setns dil
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400a327a
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400a327a
test r13, r13
jne 0x1400a2553
mov r8d, 0x9b
jmp 0x1400a2222
mov dword [rbp - 0x1c], edi
cmp esi, 4
mov r8, rsi
jbe 0x1400a2564
mov r8d, 4
mov rdx, r13
lea rcx, [rbp - 0x1c]
call fcn.1400c0250
mov qword [rbp + 0x10], rdi
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [0x1400dd5d8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400dd5e8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
jns 0x1400a25b9
mov r9d, eax
mov r8d, 0xa2
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_RETURN_FALSE_ON_ERROR_0x_X_
call fcn.14005be10
jmp 0x1400a25d0
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov r8d, dword [rbp - 0x1c]
mov rdx, r15
call qword [rax + 0x68]
test eax, eax
setns dil
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400a327a
mov rdx, qword [rcx]
call qword [rdx + 0x10]
jmp 0x1400a327a
test r14, r14
jne 0x1400a25f8
mov r8d, 0xaa
jmp 0x1400a2222
mov rsi, rdi
mov r13d, 0x64
mov r8d, r13d
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1400bffa0
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a2633
mov rcx, rax
call fcn.14000ee30
mov rsi, rax
test rax, rax
je 0x1400a2674
jmp 0x1400a264c
lea r8, [rbp + 0x30]
mov edx, 2
mov rcx, r15
call fcn.14000ee70
test eax, eax
je 0x1400a2674
lea rsi, [rbp + 0x30]
mov r8, rbx
cmp ebx, r13d
ja 0x1400a2657
mov r13, rbx
mov dword [r12], r13d
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
mov rdx, rsi
mov rcx, r14
call fcn.1400c0250
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r8d, 0xc8
lea rcx, str._s__d_SRV_CMD_GetApoCapability_EpId_s_pAPOFXCAPS3_x_ulBytesReturned_d
jmp 0x1400a3262
call fcn.14000b1e0
test dword [rax + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0x100
jne 0x1400a22c6
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a26ce
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140004560
mov rcx, rax
call fcn.140057f00
mov r9d, dword [r12]
mov r8d, 0xdb
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_ulBytesReturned_d
call fcn.14005be10
jmp case.default.0x1400a2864
test r14, r14
jne 0x1400a2700
mov r8d, 0xe3
jmp 0x1400a2222
mov r8, rbx
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov dword [rsp + 0x50], edi
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a2235
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140004560
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140057810
test eax, eax
je 0x1400a2235
lea rdx, [rbp - 0x70]
mov rcx, r14
cmp dword [rsp + 0x50], edi
mov r8d, 0x28
jne 0x1400a2766
mov r8d, SafeArrayUnaccessData
cmp ebx, r8d
cmovbe r8, rbx
mov r8d, r8d
mov dword [r12], r8d
call fcn.1400c0250
mov eax, 1
jmp 0x1400a327d
test r14, r14
jne 0x1400a2793
mov r8d, 0x114
jmp 0x1400a2222
mov r13d, edi
mov dword [rsp + 0x54], edi
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a2809
lea rcx, [rax + 0xc8]
call fcn.1400101c0
test rax, rax
je 0x1400a27d6
cmp dword [rax + 0x2c], edi
je 0x1400a27d6
mov esi, 1
cmp dword [rax + 0xe8], edi
cmove r13d, esi
mov dword [rsp + 0x54], r13d
mov rax, rbx
cmp ebx, 4
mov r8, rbx
jbe 0x1400a27e7
mov r8d, 4
mov dword [r12], r8d
mov r8, rax
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
lea rdx, [rsp + 0x54]
mov rcx, r14
call fcn.1400c0250
mov r8d, reloc.OLEAUT32.dll_LPSAFEARRAY_UserMarshal
lea rcx, str._s__d_bMicBoostSup_d_ulBytesReturned_d
mov r9d, r13d
mov eax, dword [r12]
mov dword [rsp + 0x20], eax
lea rdx, str.ServiceCommandForAudioDevice
call fcn.14005be10
jmp case.default.0x1400a2864
cmp edx, 0x10000230
ja case.default.0x1400a2864
je 0x1400a2f5a
add edx, 0xeffffefe
cmp edx, 8
ja case.default.0x1400a2864
lea rcx, [0x140000000]
mov eax, dword [rcx + rdx*4 + 0xa32e0]
add rax, rcx
jmp rax
test r14, r14
jne 0x1400a2876
mov r8d, 0x128
jmp 0x1400a2222
xorps xmm0, xmm0
movss dword [rbp - 0x28], xmm0
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a28f0
lea rcx, [rax + 0xc8]
call fcn.1400101c0
test rax, rax
je 0x1400a28f0
cmp dword [rax + 0x2c], edi
je 0x1400a28f0
cmp dword [rax + 0xe8], edi
jne 0x1400a28f0
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.14006c800
test eax, eax
je 0x1400a28f0
mov rax, rbx
cmp ebx, 4
mov r8, rbx
jbe 0x1400a28cf
mov r8d, 4
mov dword [r12], r8d
mov r8, rax
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
lea rdx, [rbp - 0x28]
mov rcx, r14
call fcn.1400c0250
movss xmm3, dword [rbp - 0x28]
cvtps2pd xmm3, xmm3
mov eax, dword [r12]
mov dword [rsp + 0x20], eax
movq r9, xmm3
mov r8d, 0x13c
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_GetLevelDB_f_ulBytesReturned_d
call fcn.14005be10
jmp case.default.0x1400a2864
test r13, r13
jne 0x1400a2933
mov r8d, 0x141
jmp 0x1400a2222
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je case.default.0x1400a2864
lea rcx, [rax + 0xc8]
call fcn.1400101c0
mov rbx, rax
test rax, rax
je case.default.0x1400a2864
cmp dword [rax + 0x2c], edi
je case.default.0x1400a2864
cmp dword [rax + 0xe8], edi
jne case.default.0x1400a2864
xorps xmm0, xmm0
movss dword [rbp - 0x2c], xmm0
cmp esi, 4
mov r8, rsi
jbe 0x1400a298c
mov r8d, 4
mov rdx, r13
lea rcx, [rbp - 0x2c]
call fcn.1400c0250
movss xmm1, dword [rbp - 0x2c]
mov rcx, rbx
call fcn.14006caf0
movsxd rbx, eax
movss xmm3, dword [rbp - 0x2c]
cvtps2pd xmm3, xmm3
mov ecx, dword [r12]
mov dword [rsp + 0x20], ecx
movq r9, xmm3
mov r8d, 0x14d
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_SetfLevelDB_f_ulBytesReturned_d
call fcn.14005be10
mov rax, rbx
jmp 0x1400a327d
test r14, r14
jne 0x1400a29ee
mov r8d, 0x155
jmp 0x1400a2222
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
mov rsi, rax
test rax, rax
je 0x1400a2a96
lea rcx, [rax + 0xc8]
call fcn.1400101c0
test rax, rax
je 0x1400a2a74
cmp dword [rax + 0x2c], edi
je 0x1400a2a74
cmp dword [rax + 0xe8], edi
jne 0x1400a2a74
xor ecx, ecx
mov qword [rbp + 0x18], rcx
mov dword [rbp + 0x20], ecx
lea r9, [rbp + 0x20]
lea r8, [rbp + 0x1c]
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.14006c650
test eax, eax
je 0x1400a2a74
mov r8, rbx
cmp ebx, 0xc
mov rax, rbx
jbe 0x1400a2a56
mov eax, SafeArrayDestroy
mov dword [r12], eax
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
lea rdx, [rbp + 0x18]
mov rcx, r14
call fcn.1400c0250
mov rcx, qword [rsi + 0x10]
sub rcx, 0x18
call fcn.140006ba0
add rax, 0x18
mov qword [rsp + 0x48], rax
mov esi, 1
mov rbx, qword [rsp + 0x68]
jmp 0x1400a2af0
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400a32ab
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.Cant_Find_AudioDevice
lea rcx, [rsp + 0x68]
call fcn.1400046a0
test al, al
jne 0x1400a2ae3
mov r8d, SafeArrayGetElement
lea rdx, str.Cant_Find_AudioDevice
lea rcx, [rsp + 0x68]
call fcn.140004940
nop
mov esi, 2
mov rbx, qword [rsp + 0x68]
mov rax, rbx
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rax
mov eax, dword [r12]
mov dword [rsp + 0x30], eax
xorps xmm3, xmm3
movups xmmword [rsp + 0x20], xmm3
movq r9, xmm3
mov r8d, 0x16d
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_fLevelMinDB_f_fLevelMaxDB_f_fStepping_f_ulBytesReturned_d_EpId_s
call fcn.14005be10
nop
mov r14, 0xffffffffffffffff
test sil, 2
je 0x1400a2b5a
and esi, 0xfffffffd
mov dword [rsp + 0x40], esi
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a2b56
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x40]
test sil, 1
je case.default.0x1400a2864
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg case.default.0x1400a2864
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp case.default.0x1400a2864
test r14, r14
jne 0x1400a2b9b
mov r8d, 0x173
jmp 0x1400a2222
mov r13d, edi
mov dword [rsp + 0x58], edi
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a2c09
lea rcx, [rax + 0xc8]
call fcn.1400101c0
test rax, rax
je 0x1400a2bd6
mov esi, 1
cmp dword [rax + 0x20], edi
cmovne r13d, esi
mov dword [rsp + 0x58], r13d
mov rax, rbx
cmp ebx, 4
mov r8, rbx
jbe 0x1400a2be7
mov r8d, 4
mov dword [r12], r8d
mov r8, rax
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.1400c0250
mov r8d, 0x182
jmp 0x1400a280f
test r14, r14
jne 0x1400a2c24
mov r8d, 0x187
jmp 0x1400a2222
mov dword [rbp - 0x30], edi
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a2ce9
lea rcx, [rax + 0xc8]
call fcn.1400101c0
test rax, rax
je 0x1400a2ce9
cmp dword [rax + 0x20], edi
je 0x1400a2ce9
mov qword [rbp - 0x48], rdi
lea r9, [rbp - 0x48]
lea r8, [0x1400e0c78]
mov edx, dword [rax + 0x18]
mov rcx, rax
call fcn.14006cd00
test eax, eax
jne 0x1400a2c94
mov r8d, reloc.OLEAUT32.dll_LPSAFEARRAY_Size
lea rdx, str.CMMLineControl::GetBoostAgc
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005be10
jmp 0x1400a2ce9
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov esi, eax
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400a2cb3
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test esi, esi
js 0x1400a2ce9
mov rax, rbx
cmp ebx, 4
mov r8, rbx
jbe 0x1400a2cc8
mov r8d, 4
mov dword [r12], r8d
mov r8, rax
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.1400c0250
mov r9d, dword [rbp - 0x30]
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopyData
lea rcx, str._s__d_GetAgcEnable_d_ulBytesReturned_d
jmp 0x1400a2819
test r13, r13
jne 0x1400a2d0f
mov r8d, 0x1a0
jmp 0x1400a2222
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je case.default.0x1400a2864
lea rcx, [rax + 0xc8]
call fcn.1400101c0
mov r14, rax
test rax, rax
je case.default.0x1400a2864
cmp dword [rax + 0x20], edi
je case.default.0x1400a2864
mov dword [rbp - 0x20], edi
cmp esi, 4
mov r8, rsi
jbe 0x1400a2d57
mov r8d, 4
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.1400c0250
mov edx, dword [rbp - 0x20]
mov rcx, r14
call fcn.14006c570
movsxd rdi, eax
mov ecx, dword [r12]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp - 0x20]
mov r8d, 0x1ae
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_SetAgcEnable_d_ulBytesReturned_d
call fcn.14005be10
jmp 0x1400a327a
test r14, r14
jne 0x1400a2dab
mov r8d, 0x1b6
jmp 0x1400a2222
mov r13d, edi
mov dword [rsp + 0x5c], edi
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a2e19
lea rcx, [rax + 0xc8]
call fcn.1400101c0
test rax, rax
je 0x1400a2de6
mov esi, 1
cmp dword [rax + 0x3c], edi
cmovne r13d, esi
mov dword [rsp + 0x5c], r13d
mov rax, rbx
cmp ebx, 4
mov r8, rbx
jbe 0x1400a2df7
mov r8d, 4
mov dword [r12], r8d
mov r8, rax
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
lea rdx, [rsp + 0x5c]
mov rcx, r14
call fcn.1400c0250
mov r8d, 0x1c5
lea rcx, str._s__d_bEarProtectSup_d_ulBytesReturned_d
jmp 0x1400a2816
test r14, r14
jne 0x1400a2e3b
mov r8d, 0x1ca
jmp 0x1400a2222
mov dword [rbp - 0x34], edi
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a2ea8
lea rcx, [rax + 0xc8]
call fcn.1400101c0
test rax, rax
je 0x1400a2ea8
cmp dword [rax + 0x3c], edi
je 0x1400a2ea8
lea rdx, [rbp - 0x34]
mov rcx, rax
call fcn.14006cb40
test eax, eax
je 0x1400a2ea8
mov rax, rbx
cmp ebx, 4
mov r8, rbx
jbe 0x1400a2e87
mov r8d, 4
mov dword [r12], r8d
mov r8, rax
xor edx, edx
mov rcx, r14
call fcn.1400bffa0
mov r8d, dword [r12]
lea rdx, [rbp - 0x34]
mov rcx, r14
call fcn.1400c0250
mov r9d, dword [rbp - 0x34]
mov r8d, 0x1dd
lea rcx, str._s__d_GetEarProtectEnable_d_ulBytesReturned_d
jmp 0x1400a2819
test r13, r13
jne 0x1400a2ece
mov r8d, 0x1e2
jmp 0x1400a2222
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je case.default.0x1400a2864
lea rcx, [rax + 0xc8]
call fcn.1400101c0
mov r14, rax
test rax, rax
je case.default.0x1400a2864
cmp dword [rax + 0x3c], edi
je case.default.0x1400a2864
mov dword [rbp - 0x24], edi
cmp esi, 4
mov r8, rsi
jbe 0x1400a2f16
mov r8d, 4
mov rdx, r13
lea rcx, [rbp - 0x24]
call fcn.1400c0250
mov edx, dword [rbp - 0x24]
mov rcx, r14
call fcn.14006cc20
movsxd rdi, eax
mov ecx, dword [r12]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp - 0x24]
mov r8d, 0x1f0
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_SetEarProtectEnable_d_ulBytesReturned_d
call fcn.14005be10
jmp 0x1400a327a
test r13, r13
jne 0x1400a2f6a
mov r8d, 0x200
jmp 0x1400a2222
mov dword [rbp - 0x38], 0x63
mov r14d, edi
call fcn.14000b4c0
mov rdx, r15
call fcn.14008c260
test rax, rax
je 0x1400a3247
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x64], edi
add rax, 0x10
mov qword [rsp + 0x48], rax
mov esi, 1
mov r9d, esi
lea r8, [rsp + 0x60]
lea rdx, [0x1400d8bb0]
mov rcx, rax
call fcn.1400031c0
mov r14d, eax
mov dword [rsp + 0x28], eax
mov ebx, dword [rsp + 0x60]
mov dword [rsp + 0x20], ebx
mov r9, r15
mov r8d, 0x20c
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_EpId_s_PKEY_RTK_BSS_PURE_MODE_d_bSuccess_d
call fcn.14005be10
test r14d, r14d
je 0x1400a3247
cmp ebx, 2
jne 0x1400a3247
mov r9d, esi
lea r8, [rsp + 0x64]
lea rdx, [0x1400d8b50]
mov rcx, qword [rsp + 0x48]
call fcn.1400031c0
mov r14d, eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x28], eax
mov ebx, dword [rsp + 0x64]
mov dword [rsp + 0x20], ebx
mov r9, r15
mov r8d, 0x212
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_EpId_s_dwSpeakerTraceEnable_d_bSuccess_d
call fcn.14005be10
test r14d, r14d
je 0x1400a3247
cmp ebx, esi
jne 0x1400a3247
mov eax, dword [rsp + 0x44]
cmp eax, 4
mov r8d, eax
jbe 0x1400a305d
lea r8d, [rsi + 3]
mov rdx, r13
lea rcx, [rbp - 0x38]
call fcn.1400c0250
mov dword [rsp + 0x28], r14d
mov r13d, dword [rbp - 0x38]
mov dword [rsp + 0x20], r13d
mov r9, r15
mov r8d, 0x218
lea rdx, str.ServiceCommandForAudioDevice
lea rcx, str._s__d_EpId_s_bEnroll_d_bSuccess_d
call fcn.14005be10
mov rbx, qword [0x140158d10]
test rbx, rbx
jne 0x1400a315a
mov eax, esi
lock xadd dword [0x140158eb4], eax
test eax, eax
jne 0x1400a3130
lea rcx, [0x140158ce8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
lea rcx, [0x140158ce8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea ecx, [rbx + 0x18]
call fcn.1400b9d04
mov rbx, rax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400a32a0
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx + 0x10], rax
mov qword [0x140158d10], rbx
lea rcx, [0x140158ce8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rbx, qword [0x140158d10]
jmp 0x1400a3156
lea rcx, [0x140158ce8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rcx, [0x140158ce8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rbx, qword [0x140158d10]
test rbx, rbx
je 0x1400a3130
mov r13d, dword [rbp - 0x38]
mov r9d, r13d
mov r8d, 0xce
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_bStart___d
call fcn.14005be10
mov dword [rbp - 8], edi
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
test r13d, r13d
je 0x1400a3204
mov r9d, dword [0x140156dc0]
mov r8d, 0xd4
lea rcx, str._s__d_m_bStop___d
call fcn.14005be10
mov dword [0x140156dc0], edi
lea rcx, [rbx + 0x10]
call fcn.140004a60
test r15, r15
jne 0x1400a31b7
mov r14d, edi
jmp 0x1400a31ca
mov r14, 0xffffffffffffffff
nop
inc r14
cmp word [r15 + r14*2], di
jne 0x1400a31c0
mov r8d, r14d
mov rdx, r15
lea rcx, [rbx + 0x10]
call fcn.140004940
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x14009b310]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx], rax
mov r14d, dword [rsp + 0x70]
jmp 0x1400a3225
mov r8d, 0xdd
lea rcx, str._s__d_m_bStop__TRUE
call fcn.14005be10
mov dword [0x140156dc0], esi
lea rcx, [rbx + 0x10]
call fcn.140004a60
mov r9d, dword [0x140156dc0]
mov r8d, 0xe2
lea rdx, str.CRtkBssGen5SpkTrackEnroll::SpkTrackEnrollControl
lea rcx, str._s__d_m_bStop___d
call fcn.14005be10
jmp 0x1400a324b
mov r13d, dword [rbp - 0x38]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
mov r8d, 0x21f
lea rcx, str._s__d_EpId_s_bEnroll_d_bSuccess_d
mov r9, r15
lea rdx, str.ServiceCommandForAudioDevice
call fcn.14005be10
cmp dword [r12], 0
seta dil
mov rax, rdi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400b96d0
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005030
int3
mov ecx, 0x80004005
call fcn.140005030
int3