Function at 0x1400ae950
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov esi, r8d
mov dword [rsp + 0x30], r8d
mov rdi, rdx
test rdx, rdx
jne 0x1400ae9a1
lea r8d, [rdx + 0x57]
lea rdx, str.CSilencePlayerMgr::PlayASlience
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005b9a0
xor eax, eax
jmp 0x1400aee03
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x10]
call fcn.140091d90
mov edi, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
test edi, edi
jns 0x1400ae9e0
lfence
mov r9d, edi
lea r8d, [rbx + 0x63]
lea rcx, str._s__d_RETURN_FALSE_ON_ERROR_0x_X_
jmp 0x1400aeddd
lea rdx, [0x1400d64c0]
mov ecx, 0x90
call fcn.1400c1ca4
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400aea77
mov rax, qword [rsp + 0x50]
lea rcx, vtable.CWASAPIRenderer.1.0
mov qword [rdi], rcx
lea rcx, vtable.CWASAPIRenderer.0
mov qword [rdi + 8], rcx
mov dword [rdi + 0x10], 1
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbx
mov qword [rdi + 0x30], rbx
mov qword [rdi + 0x38], rbx
mov qword [rdi + 0x40], rbx
mov qword [rdi + 0x58], rbx
mov byte [rdi + 0x60], 0
mov dword [rdi + 0x64], ebx
mov qword [rdi + 0x68], rbx
mov qword [rdi + 0x70], rbx
mov qword [rdi + 0x78], rbx
mov qword [rdi + 0x80], rbx
mov byte [rdi + 0x88], 0
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
jmp 0x1400aea7a
mov rdi, rbx
mov r9d, esi
mov r8d, 0x69
lea rdx, str.CSilencePlayerMgr::PlayASlience
lea rcx, str._s__d_Start__d_ms_
call fcn.14005b9a0
test rdi, rdi
jne 0x1400aeab7
lea r8d, [rdi + 0x6d]
lea rdx, str.CSilencePlayerMgr::PlayASlience
lea rcx, [0x1400e3358]
call fcn.14005b9a0
jmp 0x1400aedea
mov rcx, rdi
call fcn.1400bbed0
test al, al
je 0x1400aedb5
mov r9d, dword [rdi + 0x50]
mov r12d, r9d
shr r12d, 2
imul r12d, dword [rdi + 0x48]
mov rax, qword [rdi + 0x40]
mov ecx, dword [rax + 4]
imul ecx, dword [rdi + 0x48]
lea eax, [rcx + rcx*4]
lea eax, [rax*2 - 1]
add eax, r12d
mov r13d, r12d
xor edx, edx
div r13
mov r15, rax
mov rcx, rbx
mov qword [rsp + 0x40], rbx
lea r14, [rsp + 0x40]
mov rbp, rbx
test rax, rax
je 0x1400aec15
lfence
nop word [rax + rax]
lea rdx, [0x1400d64c0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400c1ca4
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400aedea
mov qword [rax], rbx
mov qword [rax + 0x10], rbx
mov dword [rax + 8], r12d
lea rdx, [0x1400d64c0]
mov rcx, r13
call fcn.1400c1bc4
mov r10, rax
mov qword [rsi + 0x10], rax
test rax, rax
je 0x1400aec4c
mov ecx, dword [rdi + 0x4c]
test ecx, ecx
je 0x1400aebb9
cmp ecx, 1
jne 0x1400aebf6
mov rax, qword [rdi + 0x40]
mov r9d, dword [rsi + 8]
mov r8, rbx
shr r9, 1
je 0x1400aebf6
movzx edx, word [rax + 2]
nop dword [rax]
mov rcx, rbx
test rdx, rdx
je 0x1400aebaf
lea rax, [r10 + r8*2]
nop dword [rax]
mov word [rax], bx
inc rcx
lea rax, [rax + 2]
cmp rcx, rdx
jb 0x1400aeba0
add r8, rdx
cmp r8, r9
jb 0x1400aeb90
jmp 0x1400aebf6
mov rax, qword [rdi + 0x40]
mov r9d, dword [rsi + 8]
mov r8, rbx
shr r9, 2
test r9, r9
je 0x1400aebf6
movzx edx, word [rax + 2]
mov rcx, rbx
test rdx, rdx
je 0x1400aebee
lea rax, [r10 + r8*4]
nop dword [rax]
mov dword [rax], ebx
inc rcx
lea rax, [rax + 4]
cmp rcx, rdx
jb 0x1400aebe0
add r8, rdx
cmp r8, r9
jb 0x1400aebd1
mov qword [r14], rsi
mov r14, rsi
inc rbp
cmp rbp, r15
jb 0x1400aeb20
mov r9d, dword [rdi + 0x50]
mov rcx, qword [rsp + 0x40]
mov esi, dword [rsp + 0x30]
mov qword [rdi + 0x58], rcx
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
mov edx, r9d
mov rax, qword [rax + 0x18]
call qword [case.0x140048c62.0]
test eax, eax
jns 0x1400aec65
lfence
mov edx, eax
lea rcx, str.Failed_to_get_buffer:__x._n
call fcn.1400bcaa0
jmp 0x1400aedcd
xor ecx, ecx
call fcn.1400c1818
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rsi
call fcn.1400c1818
jmp 0x1400aedea
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
mov r8d, 2
mov edx, dword [rdi + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140048c62.0]
test eax, eax
jns 0x1400aec99
lfence
mov edx, eax
lea rcx, str.Failed_to_release_buffer:__x._n
call fcn.1400bcaa0
jmp 0x1400aedcd
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x1400bc360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x1400aecd8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_transport_thread:__x.
call fcn.1400bcaa0
jmp 0x1400aedcd
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x140048c62.0]
test eax, eax
jns 0x1400aed03
lfence
mov edx, eax
lea rcx, str.Unable_to_start_render_client:__x._n
call fcn.1400bcaa0
jmp 0x1400aedcd
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400aed1a
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call qword [case.0x140048c62.0]
test eax, eax
jns 0x1400aed40
lfence
mov edx, eax
lea rcx, str.Unable_to_stop_audio_client:__x_n
call fcn.1400bcaa0
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x1400aed62
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rdi + 0x30], rbx
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x1400aed96
nop dword [rax + rax]
mov rax, qword [rbx]
mov qword [rdi + 0x58], rax
mov rcx, qword [rbx + 0x10]
call fcn.1400c1818
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400c1818
mov rbx, qword [rdi + 0x58]
test rbx, rbx
jne 0x1400aed70
mov rcx, rdi
call fcn.1400bc1d0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140048c62.0]
mov ebx, 1
jmp 0x1400aedcd
mov rcx, rdi
call fcn.1400bc1d0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x140048c62.0]
mov r9d, esi
mov r8d, 0xbd
lea rcx, str._s__d_End__d_ms_
lea rdx, str.CSilencePlayerMgr::PlayASlience
call fcn.14005b9a0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400aee01
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x140048c62.0]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c17f0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret