Function at 0x41c020
Capabilities:
Capture microphone audio
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov eax, dword [ebp + 8]
mov word [esp + 0x16], si
shl esi, 4
mov ecx, 1
shr esi, 3
mov word [esp + 0x14], cx
movzx ecx, si
imul ecx, ebx
mov edx, 0x10
mov word [esp + 0x22], dx
xor edx, edx
mov dword [edi + 4], eax
mov dword [esp + 0x18], ebx
mov word [esp + 0x20], si
mov dword [esp + 0x1c], ecx
mov word [esp + 0x24], dx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 6
cmp eax, 0x7e
jne 0x41c164
push 0x12
call fcn.005c020b
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x64], eax
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov cx, word [esp + 0x28]
add esp, 4
mov word [eax + 0x10], cx
mov dword [esp + 0xc], 1
xor ebx, ebx
cmp dword [esp + 0xc], ebx
jle 0x41c153
lea esi, [edi + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x41c0e4
push eax
call fcn.005c05f8
add esp, 4
mov eax, dword [ebp + 0x10]
add eax, 0x20
push eax
call fcn.005c052e
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov edx, dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [esi]
lea edx, [eax + 0x20]
mov dword [eax], edx
mov eax, dword [esi]
mov dword [eax + 0x10], ecx
mov edx, dword [esi]
mov dword [edx + 0x14], ecx
mov eax, dword [esi]
add esp, 4
mov dword [eax + 0xc], ebx
cmp dword [esp + 0x10], ecx
je 0x41c149
mov ecx, dword [esi]
mov edx, dword [edi + 0x60]
push 0x20
push ecx
push edx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
jne 0x41c2b9
inc ebx
add esi, 4
cmp ebx, dword [esp + 0xc]
jl 0x41c0d5
mov dword [edi + 8], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 8
call fcn.005c020b
mov esi, eax
add esp, 4
test esi, esi
je 0x41c188
push 0
push 0
mov dword [esi], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, esi
jmp 0x41c18a
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push eax
mov ecx, ebx
mov dword [edi + 0x68], eax
call fcn.0041c3b0
test eax, eax
je 0x41c1d0
cmp dword [0x69aaa4], 2
mov dword [esp + 0xc], 1
jg 0x41c0c6
push str.Using_AEC...
push 0x275
push str.....media_tavAudioChannel.cpp
push 2
call fcn.00401310
add esp, 0x10
jmp 0x41c0c6
mov esi, dword [edi + 0x68]
test esi, esi
je 0x41c1f4
mov eax, dword [esi]
test eax, eax
je 0x41c1e5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call fcn.005bf7fb
add esp, 4
mov dword [edi + 0x68], 0
cmp dword [edi + 0x54], 0
mov esi, 1
mov dword [esp + 0x10], esi
jne 0x41c245
mov edx, dword [edi + 0x5c]
lea ecx, [edi + 0x58]
push ecx
push 0x10000
push edx
push 0x401070
push 0x80000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x54], eax
test eax, eax
je 0x41c239
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
cmp dword [edi + 0x54], eax
setne al
test eax, eax
jne 0x41c252
mov eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x58]
push 0x20000
push 0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [edi + 0x60]
push ecx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov ebx, eax
test ebx, ebx
je 0x41c0c6
cmp dword [0x69aaa4], esi
jg 0x41c298
push ebx
push str.Failed_to_open_record_channel._err_d
push 0x299
push str.....media_tavAudioChannel.cpp
push esi
call fcn.00401310
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c2af
or ebx, 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc