Function at 0x10056bd0
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1015f6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x10164950]
push esi
mov esi, dword [0x1016494c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
push edi
mov edi, ecx
cmp esi, ebx
jne 0x10056c12
call fcn.10055ca0
mov ebx, dword [0x10164950]
mov esi, dword [0x1016494c]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10056c2f
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10055990
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [ebp - 0x30]
jmp 0x10056c31
mov ecx, esi
cmp ecx, ebx
je 0x10056e49
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 cl, byte [edx + 0x10]
movzx eax, cl
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x10056c64
movzx eax, byte [eax + 0x10056ebc]
jmp dword [eax*4 + 0x10056eb8]
mov cl, byte [edx + 0x11]
movzx eax, cl
sub eax, 0
je 0x10056e3b
sub eax, 3
je 0x10056e3b
sub eax, 2
je 0x10056e3b
lea esi, [edi + 0x9c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov word [esi + 0x10], 0
xor eax, eax
cmp byte [edx + 0x11], 6
sete al
lea eax, [eax*2 + 1]
mov word [esi], ax
push dword [edx + 0x14]
movzx eax, byte [edx + 0x10]
push eax
call fcn.1006f050
mov word [edi + 0x9e], ax
mov eax, dword [edi + 4]
movzx eax, byte [eax + 0x11]
push eax
call fcn.1006f000
mov ecx, eax
add esp, 0xc
movzx eax, word [edi + 0x9e]
shl ecx, 3
mov word [edi + 0xaa], cx
movzx ecx, cx
imul eax, ecx
push 0x30000
push edi
push 0x100575d0
push esi
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx edx, ax
mov eax, dword [edi + 4]
mov word [edi + 0xa8], dx
push ebx
mov ecx, dword [eax + 4]
xor eax, eax
imul edx, ecx
mov word [edi + 0xac], ax
lea eax, [edi + 0x94]
push eax
mov dword [edi + 0xa0], ecx
mov dword [edi + 0xa4], edx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
jne 0x10056e93
movzx esi, word [edi + 0xa8]
mov eax, 0xcccccccd
mul dword [edi + 0xa4]
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 + 0xc]
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.1008ef40
add esp, 0x10
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [edi + 0x98]
mov dword [edi + 0x98], ecx
test eax, eax
je 0x10056dae
push eax
call fcn.1006a480
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10056dbe
push eax
call fcn.1006a480
add esp, 4
push dword [edi + 0x14]
call fcn.1006a480
push dword [ebp - 0x38]
xorps xmm0, xmm0
movups xmmword [edi + 0x14], xmm0
push 0x10
movups xmmword [edi + 0x24], xmm0
call fcn.1006a440
mov dword [edi + 0x14], eax
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov esi, 3
mov dword [edi + 0x18], eax
lea eax, [edi + 0x34]
nop
xorps xmm0, xmm0
lea eax, [eax + 0x20]
movups xmmword [eax - 0x20], xmm0
movups xmmword [eax - 0x10], xmm0
mov ecx, dword [eax - 0x40]
mov edx, dword [eax - 0x3c]
add ecx, edx
mov dword [eax - 0x20], ecx
mov dword [eax - 0x1c], edx
sub esi, 1
jne 0x10056df0
mov eax, dword [0x1016494c]
lea ecx, [ebx + ebx*2]
lea eax, [eax + ecx*8]
mov ecx, dword [edi + 4]
push eax
add ecx, 0x20
call fcn.10055a30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bf2d0
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.1006f150
push eax
push str._s_samples_not_supported
jmp 0x10056e77
push eax
push str.Device_name___s__not_found
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.10081470
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0x10155c98
push eax
call fcn.100c0a05
push ecx
call fcn.1006f0d0
push eax
push str._s_capture_not_supported
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10081470
add esp, 0x14
lea eax, [ebp - 0x2c]
push 0x10155c98
push eax
call fcn.100c0a05
push eax
push str.waveInOpen_failed:__u
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10081470
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0x10155c98
push eax
call fcn.100c0a05
nop dword [eax]
imul ebp, dword [esi + 5], 0x10
add byte [eax], al
add byte [eax], al
add byte [eax], al
add ah, cl
int3