Function at 0x4c86a0
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5b66c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], edi
cmp eax, dword [ecx + 0x14]
jl 0x4c86f2
pop edi
pop esi
mov eax, 0x11174
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4c871d
call fcn.00422720
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.004c8b00
mov ecx, dword [ebx + 0xc]
xor edx, edx
imul ecx, dword [ebx + 0x10]
add esp, 8
imul eax, dword [ebx + 0x14], 0x3e8
div ecx
mov ecx, eax
mov eax, 0x10624dd3
imul ecx, dword [ebp - 0x10]
mul ecx
mov eax, dword [ebp - 0x1c]
shr edx, 6
mov dword [eax + 0xd4], edx
xor eax, eax
cmp dword [ebx + 0x20], eax
sete al
imul ecx, dword [ebx + 4], 0x1e4
lea eax, [eax*8 + 0x50000]
push eax
push 0
push dword [esi + 8]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
push dword [ecx + eax + 0x1dc]
push esi
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x4c87a3
pop edi
pop esi
add eax, 0x6ddd0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
mov eax, edi
shl eax, 5
push eax
push 1
push dword [ebp - 0x20]
call fcn.0041c720
add esp, 0xc
mov dword [esi + 4], eax
xor ebx, ebx
test edi, edi
je 0x4c8825
xor edi, edi
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xd4]
push 1
push dword [ebp - 0x20]
call fcn.0041c720
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [edi + ecx], eax
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0x1c]
push 0x20
mov eax, dword [eax + 0xd4]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 4]
add eax, edi
push eax
push dword [esi]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
jne 0x4c878d
mov eax, dword [esi + 4]
push 0x20
add eax, edi
push eax
push dword [esi]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
jne 0x4c878d
inc ebx
add edi, 0x20
cmp ebx, dword [ebp - 0x24]
jb 0x4c87c1
mov edi, dword [ebp - 0x24]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
call fcn.00418190
cmp eax, 4
jl 0x4c88a9
mov edi, dword [ebp - 0x2c]
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x4c885e
mov dword [0x5bd8f0], ebx
mov byte [0x5bd8f4], 0
mov ecx, dword [edi + 0x14]
xor edx, edx
mov esi, dword [edi + 0xc]
imul eax, ecx, 0x3e8
div esi
test ebx, ebx
push eax
push ecx
push dword [edi + 0x10]
mov ecx, 0x582e68
mov eax, 0x5bd8f0
cmove eax, ecx
imul ecx, dword [edi + 4], 0x1e4
push esi
push eax
mov eax, dword [ebp - 0x28]
add ecx, 4
mov eax, dword [eax + 0x18]
add eax, ecx
push eax
push str._WaveAPI_Sound_recorder___s__initialized__format_s__clock_rate_d__channel_count_d__samples_per_frame_d___dms__
push str.wmme_dev.c
call fcn.00418080
add esp, 0x20
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050101b
mov esp, ebp
pop ebp
ret