Function at 0x1006ea30
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10163034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x10169fc4]
push esi
mov esi, dword [0x10169fc0]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
push edi
mov edi, ecx
cmp esi, ebx
jne 0x1006ea72
call fcn.1006d3d0
mov ebx, dword [0x10169fc4]
mov esi, dword [0x10169fc0]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1006ea8f
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10001325
mov ecx, eax
add esp, 0x10
mov eax, dword [ebp - 0x30]
jmp 0x1006ea95
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x34]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x1006ecff
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x18]
cmp eax, 0x1508
jg 0x1006eaf1
je 0x1006eacf
cmp eax, 0x1503
jl 0x1006eaf8
cmp eax, 0x1506
jg 0x1006eaf8
push eax
call fcn.100012da
push eax
push str._s_capture_not_supported
lea eax, [ebp - 0x2c]
push 0xa004
push eax
call fcn.10002261
add esp, 0x14
jmp 0x1006ed16
cmp eax, 0x70000000
je 0x1006eacf
mov ecx, dword [edx + 0x1c]
mov eax, ecx
sub eax, 0x1400
je 0x1006ece0
sub eax, 3
je 0x1006ece0
sub eax, 2
je 0x1006ece0
lea esi, [edi + 0xcc]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov word [esi + 0x10], 0
xor eax, eax
cmp dword [edx + 0x1c], 0x1406
sete al
lea eax, [eax*2 + 1]
mov word [esi], ax
push dword [edx + 0x24]
push dword [edx + 0x18]
call fcn.10002239
mov word [edi + 0xce], ax
mov eax, dword [edi + 4]
push dword [eax + 0x1c]
call fcn.10001c71
movzx ecx, word [edi + 0xce]
add esp, 0xc
shl eax, 3
mov word [edi + 0xda], ax
movzx eax, ax
imul eax, ecx
push 0x30000
push edi
push 0x1006f890
push esi
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx edx, ax
mov eax, dword [edi + 4]
mov word [edi + 0xd8], dx
push ebx
mov ecx, dword [eax + 0xc]
xor eax, eax
imul edx, ecx
mov word [edi + 0xdc], ax
lea eax, [edi + 0xc4]
push eax
mov dword [edi + 0xd0], ecx
mov dword [edi + 0xd4], edx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x1006ebd3
push eax
push str.waveInOpen_failed:__u
jmp 0x1006ed05
movzx esi, word [edi + 0xd8]
mov eax, 0xcccccccd
mul dword [edi + 0xd4]
push 0
mov ecx, edx
xor edx, edx
shr ecx, 4
mov eax, ecx
div esi
mov eax, dword [edi + 4]
sub ecx, edx
mov dword [ebp - 0x30], ecx
push esi
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x30]
lea edx, [eax*4]
cmp ecx, edx
mov dword [ebp - 0x38], edx
mov eax, edx
cmova eax, ecx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.100010a0
lea edx, [edi + 0xc8]
add esp, 0x10
cmp edx, eax
je 0x1006ec42
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [edx]
mov dword [edx], ecx
test eax, eax
je 0x1006ec42
push eax
call fcn.100010c3
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1006ec52
push eax
call fcn.100010c3
add esp, 4
push dword [edi + 0x44]
call fcn.100010c3
push dword [ebp - 0x38]
xorps xmm0, xmm0
movups xmmword [edi + 0x44], xmm0
push 0x10
movups xmmword [edi + 0x54], xmm0
call fcn.10001ded
mov dword [edi + 0x44], eax
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov edx, 3
mov dword [edi + 0x48], eax
lea eax, [edi + 0x64]
xorps xmm0, xmm0
lea eax, [eax + 0x20]
movups xmmword [eax - 0x20], xmm0
movups xmmword [eax - 0x10], xmm0
mov ecx, dword [eax - 0x40]
add ecx, dword [eax - 0x3c]
mov dword [eax - 0x20], ecx
mov ecx, dword [eax - 0x3c]
mov dword [eax - 0x1c], ecx
sub edx, 1
jne 0x1006ec83
mov eax, dword [0x10169fc0]
lea ecx, [ebx + ebx*2]
lea eax, [eax + ecx*8]
mov ecx, dword [edi + 4]
pop edi
add ecx, 0x34
pop esi
pop ebx
cmp ecx, eax
je 0x1006ecd0
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x1006ecc7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10001fc8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001abe
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.10001640
push eax
push str._s_samples_not_supported
lea eax, [ebp - 0x2c]
push 0xa004
push eax
call fcn.10002261
add esp, 0x14
jmp 0x1006ed16
push eax
push str.Device_name___s__not_found
lea eax, [ebp - 0x2c]
push 0xa004
push eax
call fcn.10002261
add esp, 0x10
push 0x10158dc0
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3