Function at 0x1400af0f0
Capabilities:
Create thread
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1c0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov rsi, rdx
mov r15, rcx
lea rax, str.CMaxxAudioClientEx::Initialize
mov qword [rsp + 0x30], rax
lea rdi, [0x14031b830]
mov qword [rsp + 0x28], rdi
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 3]
lea r8, [0x1404675c0]
mov edx, 0x189
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
cmp byte [r15 + 0x60], r13b
jne 0x1400af852
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x170]
call qword [case.0x14004487d.0]
cmp qword [r15 + 0x10], r13
jne 0x1400af1d9
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [r15 + 8]
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0x84000000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, str.CMaxxAudioClientEx
xor r8d, r8d
lea rdx, str.CMaxxAudioClientExNotifications
call fcn.140060f00
mov r14d, 1
lea r12d, [r14 - 2]
cmp byte [r15 + 0x13f089], r14b
jne 0x1400af29a
cmp qword [r15 + 0x13f0b8], r13
jne 0x1400af2a2
mov ecx, 0x940
call fcn.140202bf8
mov rdi, rax
mov qword [rbp + 0x90], rax
mov dword [rax + 8], r14d
mov dword [rax + 0xc], r14d
lea rax, vtable.std::_Ref_count_obj_class_CRealtekJack_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rcx, rbx
call fcn.14015bb90
nop
mov qword [rbp - 0x68], rbx
mov qword [r15 + 0x13f0b8], rbx
mov rbx, qword [r15 + 0x13f0c0]
mov qword [rsp + 0x70], rbx
mov qword [r15 + 0x13f0c0], rdi
test rbx, rbx
je 0x1400af291
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, r14d
jne 0x1400af291
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14004487d.0]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, r14d
jne 0x1400af291
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
lea rdi, [0x14031b830]
jmp 0x1400af2a2
mov rcx, r15
call fcn.1400aee60
cmp qword [r15 + 0x10], 0
je 0x1400af67d
mov dword [r15 + 0x2c0], r13d
mov dword [r15 + 0x520], r14d
lea rdx, [r15 + 0x38]
lea rcx, [r15 + 0x68]
call fcn.1400858b0
test eax, eax
je 0x1400af376
mov rax, qword [r15 + 0x528]
test rax, rax
jne 0x1400af312
mov ecx, 0x328
call fcn.140202bf8
mov rbx, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x328
mov rcx, rax
call fcn.140222790
mov rcx, rbx
call fcn.1400762b0
mov qword [r15 + 0x528], rax
test rax, rax
je 0x1400af323
lea r9, [r15 + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140076480
mov rax, qword [r15 + 0x530]
test rax, rax
jne 0x1400af365
mov ecx, 0x328
call fcn.140202bf8
mov rbx, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x328
mov rcx, rax
call fcn.140222790
mov rcx, rbx
call fcn.1400762b0
mov qword [r15 + 0x530], rax
test rax, rax
je 0x1400af376
lea r9, [r15 + 0x40]
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140076480
lea r8, str.IPC_PROTECTION
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [r15 + 0x13ef60], rax
test rax, rax
jne 0x1400af3cc
lea rax, str.CMaxxAudioClientEx::Initialize__Create_Mutex_fail
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov r9d, 3
lea r8, [0x1404675c0]
mov edx, 0x1b2
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
jmp 0x1400af5ac
mov rcx, r15
call fcn.1400c2b50
xor r8d, r8d
mov rcx, r15
call fcn.1400b0650
mov byte [r15 + 0x60], al
lea rax, [r15 + 0x13f150]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, r15
lea r8, [0x1400bbfc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r15 + 0x13f148], rax
mov byte [r15 + 0x13ef40], 1
cmp byte [r15 + 0x60], 0
je 0x1400af5a4
cmp qword [r15 + 0x5b8], 0
je 0x1400af5a4
lea rcx, [r15 + 0x13ef20]
mov rax, qword [rcx]
mov edx, 0x400000
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
test al, al
jne 0x1400af5a4
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, str.InitDim
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000001
call fcn.140057230
test eax, eax
jne 0x1400af5a4
mov dword [rsp + 0x20], 0xfffffffd
mov r9d, r14d
movsd xmm6, qword [0x1403a98f0]
movaps xmm2, xmm6
mov edx, 0x7f8
mov rcx, qword [r15 + 0x5b8]
call fcn.140093a30
mov dword [rsp + 0x20], 0xfffffffd
mov r9d, 3
movaps xmm2, xmm6
mov edx, 0x7f8
mov rcx, qword [r15 + 0x5b8]
call fcn.140093a30
mov dword [rsp + 0x20], 0xfffffffd
mov r9d, 5
movaps xmm2, xmm6
mov edx, 0x7f8
mov rcx, qword [r15 + 0x5b8]
call fcn.140093a30
mov dword [rsp + 0x20], 0xfffffffd
mov r9d, 0x64
movaps xmm2, xmm6
mov edx, 0x7f8
mov rcx, qword [r15 + 0x5b8]
call fcn.140093a30
movzx eax, byte [r15 + 0x13ef40]
mov dword [rbp + 0x98], eax
mov qword [rbp + 0x90], r13
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x1400af5a4
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InitDim
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, r15
call fcn.1400b7240
mov rcx, r15
call fcn.1400bac80
mov dword [r15 + 0x13f154], eax
call fcn.1400bd0c0
mov dword [r15 + 0x13f5ac], eax
mov edi, r13d
mov rcx, qword [r15 + 0x600]
test rcx, rcx
je 0x1400af61b
mov r8b, 1
lea rdx, [rbp - 0x48]
call fcn.14007aad0
cmp qword [rax + 0x18], 8
jb 0x1400af5ec
mov rax, qword [rax]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, str.1da5d803_d492_4edd_8c23_e0c0ffee7f0e_5
mov rdx, rax
mov rcx, 0xffffffff80000002
call fcn.140057230
mov ebx, eax
lea rcx, [rbp - 0x48]
call fcn.14003b0f0
test ebx, ebx
cmovne edi, r14d
mov dword [r15 + 0x13f5d4], edi
mov edi, r13d
mov rcx, qword [r15 + 0x608]
test rcx, rcx
je 0x1400af676
mov r8b, 1
lea rdx, [rbp - 0x28]
call fcn.14007aad0
cmp qword [rax + 0x18], 8
jb 0x1400af647
mov rax, qword [rax]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, str.1da5d803_d492_4edd_8c23_e0c0ffee7f0e_5
mov rdx, rax
mov rcx, 0xffffffff80000002
call fcn.140057230
mov ebx, eax
lea rcx, [rbp - 0x28]
call fcn.14003b0f0
test ebx, ebx
cmovne edi, r14d
mov dword [r15 + 0x13f5d8], edi
mov eax, r13d
cmp byte [r15 + 0x60], al
setne al
mov dword [rsp + 0x30], eax
lea rax, str.CMaxxAudioClientEx::Initialize_d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 3
lea r8, [0x1404675c0]
mov edx, 0x1c7
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
test rsi, rsi
je 0x1400af707
lea rax, [rbp + 8]
mov qword [rbp], rax
mov r8d, 3
lea rdx, [0x14033ab48]
lea rcx, [rbp]
call fcn.1400429f0
mov rdx, qword [rbp]
mov rcx, rsi
call fcn.140249db8
test eax, eax
sete al
mov byte [r15 + 0x13f630], al
lea rax, [rbp + 8]
mov rcx, qword [rbp]
cmp rcx, rax
je 0x1400af707
call fcn.1402384fc
lea rcx, [r15 + 0x13ef20]
mov rax, qword [rcx]
movabs rdx, 0x1000000000000
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
test al, al
je 0x1400af809
mov ecx, 0x258
call fcn.140202bf8
mov r14, rax
mov qword [rsp + 0x50], rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj_class_CBluetoothAudioPlaybackClient_.0
mov qword [r14], rax
lea rsi, [r14 + 0x10]
mov qword [rbp - 0x70], rsi
mov rdi, qword [r15 + 0x10]
lea rax, vtable.CBaseThread.0
mov qword [rsi], rax
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov dword [rsi + 0x18], r13d
mov byte [rsi + 0x1c], 0
lea rcx, [rsi + 0x20]
call fcn.1400ebdc0
nop
lea rax, vtable.CBluetoothAudioPlaybackClient.1.0
mov qword [rsi], rax
lea rax, vtable.CBluetoothAudioPlaybackClient.0
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x240], rdi
mov rcx, rsi
call fcn.1400622d0
nop
mov qword [rbp - 0x58], rsi
mov qword [r15 + 0x13f650], rsi
mov rbx, qword [r15 + 0x13f658]
mov qword [rbp - 0x80], rbx
mov qword [r15 + 0x13f658], r14
test rbx, rbx
je 0x1400af809
mov eax, r12d
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400af809
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14004487d.0]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x1400af809
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
movzx eax, byte [r15 + 0x13f08b]
cmp al, 0xe
jb 0x1400af825
mov rcx, r15
call fcn.1400c1580
movzx eax, byte [r15 + 0x13f08b]
cmp al, 0x10
jb 0x1400af831
mov rcx, r15
call fcn.1400c2000
cmp qword [r15 + 0x1407c0], 0
jne 0x1400af852
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r15 + 0x1407c0], rax
movzx eax, byte [r15 + 0x60]
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0x210]
movaps xmm6, xmmword [rsp + 0x1b0]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret