Function at 0x140021190
Capabilities:
Capture microphone audio
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [rcx]
mov edi, r9d
mov ebp, r8d
mov r14d, edx
mov rsi, rcx
call qword [rax + reloc.WS2_32.dll_htonl]
xor r15d, r15d
mov ebx, 1
mov eax, ebp
shl eax, 4
mov ecx, reloc.WS2_32.dll_recv
mov dword [rsi + 8], r14d
shr eax, 3
mov word [rsp + 0x30], bx
mov word [rsp + 0x32], bp
mov word [rsp + 0x3c], ax
movzx eax, ax
mov dword [rsp + 0x34], edi
mov word [rsp + 0x3e], cx
mov word [rsp + 0x40], r15w
mov r13d, r15d
imul eax, edi
mov dword [rsp + 0x38], eax
lea r12d, [rbx + 5]
cmp r14d, 0x7e
jne 0x1400212fd
lea ecx, [rbx + 0x11]
call fcn.1401e65ec
lea rcx, [rsp + 0x30]
mov r12d, ebx
mov r11, rax
mov qword [rsi + 0xc0], rax
mov rax, qword [rcx]
mov qword [r11], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 8], rax
movzx eax, word [rcx + 0x10]
mov word [r11 + 0x10], ax
mov ebp, r15d
mov rdi, r15
test r12d, r12d
jle 0x1400212f2
movsxd r14, r13d
mov r13d, dword [rsp + 0xa8]
movsxd r12, r12d
lea rbx, [rsi + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002126f
call fcn.1401e64f8
lea rcx, [r13 + 0x30]
call fcn.1401e6440
xor ecx, ecx
mov qword [rbx], rax
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov rax, qword [rbx]
mov dword [rax + 8], r13d
mov rcx, qword [rbx]
lea rax, [rcx + 0x30]
mov qword [rcx], rax
mov rax, qword [rbx]
xor ecx, ecx
mov dword [rax + 0x18], ecx
mov rax, qword [rbx]
mov dword [rax + 0x1c], ecx
mov rax, qword [rbx]
movsxd rcx, ebp
mov qword [rax + 0x10], rcx
test r14, r14
je 0x1400212e0
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0xb8]
mov r8d, gethostbyaddr
call qword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
jne 0x14002148f
inc rdi
inc ebp
add rbx, 8
cmp rdi, r12
jl 0x140021262
mov dword [rsi + 0xc], r15d
xor eax, eax
jmp 0x140021499
call fcn.1401e65ec
mov rbx, rax
test rax, rax
je 0x140021319
xor edx, edx
xor ecx, ecx
mov qword [rax], r15
call qword [sym.imp.ole32.dll_CoInitializeEx]
jmp 0x14002131c
mov rbx, r15
mov r9d, edi
mov r8d, ebp
mov edx, r14d
mov rcx, rbx
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsi + 0xc8], rbx
mov dword [rsp + 0x20], r15d
call fcn.140021610
test eax, eax
je 0x14002137b
cmp dword [reloc.WS2_32.dll_accept], 2
mov r12d, 1
jg 0x140021241
lea r9, str.Using_AEC...
lea rdx, str.....media_tavAudioChannel.cpp
lea ecx, [r12 + 1]
mov r8d, 0x275
call fcn.1400045f0
jmp 0x140021241
mov rbx, qword [rsi + 0xc8]
test rbx, rbx
je 0x1400213a3
mov rcx, qword [rbx]
test rcx, rcx
je 0x140021395
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rbx
call fcn.1401e60f0
mov qword [rsi + 0xc8], r15
mov r13d, 1
cmp qword [rsi + 0xa0], r15
jne 0x140021496
mov r9, qword [rsi + 0xb0]
lea rax, [rsi + 0xa8]
lea r8, [0x140001050]
mov qword [rsp + 0x28], rax
mov edx, 0x80000
xor ecx, ecx
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0xa0], rax
test rax, rax
je 0x140021403
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, r15d
cmp qword [rsi + 0xa0], rax
setne al
test eax, eax
je 0x140021496
mov r9d, dword [rsi + 0xa8]
lea rcx, [rsi + 0xb8]
lea r8, [rsp + 0x30]
mov edx, r14d
mov dword [rsp + 0x28], 0x20000
mov qword [rsp + 0x20], r15
call qword [sym.imp.WINMM.dll_waveInOpen]
mov ebx, eax
test eax, eax
je 0x140021241
cmp dword [reloc.WS2_32.dll_accept], r13d
jg 0x140021474
lea r9, str.Failed_to_open_record_channel._err_d
lea rdx, str.....media_tavAudioChannel.cpp
mov r8d, 0x299
mov ecx, r13d
mov dword [rsp + 0x20], eax
call fcn.1400045f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002148a
bts ebx, 0x1f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r13d
jmp 0x140021499
mov eax, 2
jmp 0x140021499
or eax, 0xffffffff
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret