Function at 0x2112c8c0
Capabilities:
Capture microphone audio
Check mutex on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push 0x7d
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
jne 0x2112c8e8
push str.Could_not_allocate_memory_for_input_driver_descriptor.
call sym.mss32.dll__AIL_set_error_4
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
push esi
mov esi, dword [esp + 0x24]
push edi
xor eax, eax
mov ecx, 0x1f
mov edi, ebp
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp], 0x4e494448
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x24], eax
lea edi, [ebp + 8]
mov ecx, 6
push 0x2112c7f0
rep movsd dword es:[edi], dword [esi]
call sym.mss32.dll__AIL_register_timer_4
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
jne 0x2112c93f
push str.Out_of_timer_handles
call sym.mss32.dll__AIL_set_error_4
push ebp
call sym.mss32.dll__AIL_close_input_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
test al, 2
mov ecx, 0
setne cl
and al, 1
mov word [esp + 0x10], 1
mov word [esp + 0x20], bx
inc ecx
neg al
mov word [esp + 0x12], cx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], ecx
sbb eax, eax
and eax, 8
add eax, 8
mov word [esp + 0x1e], ax
shr ax, 3
imul eax, dword [esp + 0x12]
movzx edx, ax
imul edx, ecx
mov word [esp + 0x1c], ax
cmp dword [0x211566c0], ebx
mov dword [esp + 0x18], edx
je 0x2112c9a6
mov eax, dword [0x211592a0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi]
push 0x30000
push ebx
push 0x2112c7d0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [ebp + 0x39]
push edx
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
mov edi, eax
cmp dword [0x211566c0], ebx
mov dword [esp + 0x28], edi
je 0x2112c9fb
mov eax, dword [0x211592a0]
cmp eax, ebx
jne 0x2112c9f2
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [0x211592a0], eax
je 0x2112c9e0
mov edi, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp di, bx
je 0x2112ca2c
movzx eax, di
push eax
push str.waveInOpen___failed__code__0x_X_n
push 0x211566d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
mov dword [ebp + 0x39], ebx
call sym.mss32.dll__AIL_close_input_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x10]
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x28], ebx
lea edi, [ebp + 0x2c]
lea esp, [esp]
mov edx, dword [esi + 0x10]
push edx
call sym.mss32.dll__AIL_mem_alloc_lock_4
cmp eax, ebx
mov dword [edi], eax
je 0x2112cabb
mov eax, dword [esp + 0x28]
inc eax
add edi, 4
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x2112ca40
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x39]
lea edi, [ebp + 0x3d]
mov dword [edi], eax
mov dword [ebp + 0x41], ecx
push 0x20
mov dword [ebp + 0x45], ebx
mov dword [ebp + 0x49], ebx
mov dword [ebp + 0x4d], ebx
push edi
mov dword [ebp + 0x51], ebx
mov dword [ebp + 0x55], ebx
push edx
mov dword [ebp + 0x59], ebx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
cmp ax, bx
je 0x2112cad7
movzx eax, ax
push eax
push str.waveInPrepareHeader___failed__code__0x_X_n
push 0x211566d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
call sym.mss32.dll__AIL_close_input_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
push str.Insufficient_memory_for_input_buffer
call sym.mss32.dll__AIL_set_error_4
push ebp
call sym.mss32.dll__AIL_close_input_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x39]
lea esi, [ebp + 0x5d]
mov dword [esi], ecx
mov dword [ebp + 0x61], edx
push 0x20
mov dword [ebp + 0x65], ebx
mov dword [ebp + 0x69], ebx
mov dword [ebp + 0x6d], ebx
push esi
mov dword [ebp + 0x71], ebx
mov dword [ebp + 0x75], ebx
push eax
mov dword [ebp + 0x79], ebx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
cmp ax, bx
je 0x2112cb32
movzx ecx, ax
push ecx
push str.waveInPrepareHeader___failed__code__0x_X_n
push 0x211566d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
call sym.mss32.dll__AIL_close_input_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
cmp word [esp + 0x1e], 0x10
jne 0x2112cb3f
mov byte [ebp + 0x34], bl
jmp 0x2112cb43
mov byte [ebp + 0x34], 0x80
movzx eax, byte [ebp + 0x34]
mov ecx, dword [ebp + 0x28]
mov edi, dword [edi]
mov bl, al
mov bh, bl
mov edx, ecx
shr ecx, 2
push 0xc8
mov eax, ebx
shl eax, 0x10
mov ax, bx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
movzx eax, byte [ebp + 0x34]
mov ecx, dword [ebp + 0x28]
mov edi, dword [esi]
mov bl, al
mov bh, bl
mov edx, ecx
shr ecx, 2
mov eax, ebx
shl eax, 0x10
mov ax, bx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call sym.mss32.dll__AIL_set_timer_frequency_8
mov ecx, dword [ebp + 4]
push ebp
push ecx
call sym.mss32.dll__AIL_set_timer_user_8
mov edx, dword [ebp + 4]
push edx
call sym.mss32.dll__AIL_start_timer_4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret 4