Function at 0x410880
Capabilities:
Capture microphone audio

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x62dcd]
test eax, eax
je 0x410ace
mov edx, dword [esi + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push edi
mov eax, ebx
shl eax, 5
lea edi, [eax + esi]
push 0x20
lea ecx, [edi + 0x179]
push ecx
push edx
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
mov ebp, dword [edi + 0x181]
cmp ebp, 0x2000
jge 0x4108d5
push str.processdata_x0
call fcn.00436550
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret 4
mov ecx, dword [esi + 0x15f]
push 0x92
lea edx, [ecx + esi + 0x16cd1]
lea eax, [esi + 0x16cd1]
push edx
push eax
call fcn.004394b0
mov ecx, dword [esi + 0x15f]
push 0x92
lea edx, [ecx + esi + 0x17d99]
lea eax, [esi + 0x17d99]
push edx
push eax
call fcn.004394b0
imul ebx, ebx, 0x20c8
mov eax, ebp
cdq
sub eax, edx
add esp, 0x18
mov edi, eax
lea eax, [esi + 0x17e2b]
push eax
lea ecx, [esi + 0x16d63]
push ecx
lea edx, [ebx + esi + 0x439]
push edx
sar edi, 1
push edi
mov ecx, esi
call fcn.0040fb20
mov ecx, dword [esi + 0x140]
mov eax, ebp
cdq
and edx, 3
add eax, edx
mov dword [esi + 0x15f], edi
mov edx, dword [ecx]
mov edi, eax
sar edi, 2
push edi
lea eax, [esi + 0x16cd1]
push eax
call dword [edx]
mov eax, dword [esi + 0x15b]
xor ebp, ebp
cmp eax, ebp
je 0x410986
mov ecx, dword [esi + 0x144]
mov edx, dword [ecx]
push edi
lea eax, [esi + 0x17d99]
push eax
call dword [edx]
mov eax, dword [esi + 0x10]
mov ecx, eax
imul ecx, ecx, 0x20c8
lea edx, [ecx + esi + 0x439]
shl eax, 5
mov dword [eax + esi + 0x179], edx
mov eax, dword [esi + 0x10]
shl eax, 5
mov dword [eax + esi + 0x17d], 0x2000
mov ecx, dword [esi + 0x10]
shl ecx, 5
mov dword [ecx + esi + 0x189], ebp
mov edx, dword [esi + 0x10]
shl edx, 5
mov dword [edx + esi + 0x18d], ebp
mov eax, dword [esi + 0x10]
mov ecx, eax
shl ecx, 5
mov dword [ecx + esi + 0x185], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
shl edx, 5
push 0x20
lea eax, [edx + esi + 0x179]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
shl edx, 5
push 0x20
lea eax, [edx + esi + 0x179]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov ecx, dword [esi + 0x10]
inc ecx
mov eax, ecx
cmp eax, 0xa
mov dword [esi + 0x10], ecx
jne 0x410a21
mov dword [esi + 0x10], ebp
mov ecx, dword [esi + 0x140]
add ecx, 0xc
call fcn.00424850
mov edi, eax
cmp edi, ebp
je 0x410a74
lea ebx, [esi + 0x62ef7]
jmp 0x410a40
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.0040dff0
mov ecx, edi
call fcn.004246d0
push edi
call fcn.0043904c
mov ecx, dword [esi + 0x140]
add esp, 4
add ecx, 0xc
call fcn.00424850
mov edi, eax
cmp edi, ebp
jne 0x410a40
cmp dword [esi + 0x15b], ebp
je 0x410acb
mov ecx, dword [esi + 0x144]
add ecx, 0xc
call fcn.00424850
mov edi, eax
cmp edi, ebp
je 0x410acb
lea ebx, [esi + 0x62ef7]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
push 0x10
push ecx
push edx
mov ecx, ebx
call fcn.0040dff0
mov ecx, edi
call fcn.004246d0
push edi
call fcn.0043904c
mov ecx, dword [esi + 0x144]
add esp, 4
add ecx, 0xc
call fcn.00424850
mov edi, eax
cmp edi, ebp
jne 0x410a96
pop edi
pop ebp
pop ebx
pop esi
ret 4