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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x7d
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
jne 0x2112e80c
push str.Could_not_allocate_memory_for_input_driver_descriptor.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov esi, dword [esp + 0x28]
xor eax, eax
mov ecx, 0x1f
mov edi, ebp
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [str.HDIN]
mov dword [ebp], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp + 0x24], ecx
lea edi, [ebp + 8]
mov ecx, 6
push 0x2112e700
rep movsd dword es:[edi], dword [esi]
call sym.mss32.dll__AIL_register_timer_4
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
jne 0x2112e862
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, dword [esi + 8]
mov edx, 0
setne dl
and al, 1
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], 1
mov word [esp + 0x20], bx
inc edx
neg al
mov word [esp + 0x12], dx
sbb eax, eax
and eax, 8
add eax, 8
mov word [esp + 0x1e], ax
shr ax, 3
imul eax, dword [esp + 0x12]
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x1c]
and eax, 0xffff
imul eax, ecx
mov dword [esp + 0x18], eax
cmp dword [0x2114e89c], ebx
je 0x2112e8d0
mov ecx, dword [0x2114fa38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi]
push 0x30000
push ebx
push 0x2112e6e0
lea edx, [esp + 0x1c]
push edx
lea eax, [ebp + 0x39]
push ecx
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
mov edi, eax
cmp dword [0x2114e89c], ebx
je 0x2112e91b
mov eax, dword [0x2114fa38]
cmp eax, ebx
jne 0x2112e912
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x2114fa38], eax
je 0x2112e900
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp di, bx
je 0x2112e94f
and edi, 0xffff
push edi
push str.waveInOpen___failed__code__0x_X_n
push 0x2114e6e0
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 edx, dword [esi + 0x10]
mov dword [ebp + 0x28], edx
mov dword [esp + 0x28], ebx
lea edi, [ebp + 0x2c]
mov eax, dword [esi + 0x10]
push eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
cmp eax, ebx
mov dword [edi], eax
je 0x2112ea0d
mov eax, dword [esp + 0x28]
inc eax
add edi, 4
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x2112e95c
mov ecx, dword [ebp + 0x2c]
lea eax, [ebp + 0x3d]
mov dword [eax], ecx
mov edx, dword [ebp + 0x28]
mov dword [ebp + 0x41], edx
mov dword [ebp + 0x45], ebx
mov dword [ebp + 0x49], ebx
mov dword [ebp + 0x4d], ebx
mov dword [ebp + 0x51], ebx
mov dword [ebp + 0x55], ebx
mov dword [ebp + 0x59], ebx
mov esi, dword [sym.imp.WINMM.dll_waveInPrepareHeader]
push 0x20
push eax
mov eax, dword [ebp + 0x39]
push eax
call esi
cmp ax, bx
jne 0x2112e9e2
mov ecx, dword [ebp + 0x30]
lea eax, [ebp + 0x5d]
mov dword [eax], ecx
mov edx, dword [ebp + 0x28]
mov dword [ebp + 0x61], edx
mov dword [ebp + 0x65], ebx
mov dword [ebp + 0x69], ebx
mov dword [ebp + 0x6d], ebx
mov dword [ebp + 0x71], ebx
mov dword [ebp + 0x75], ebx
mov dword [ebp + 0x79], ebx
push 0x20
push eax
mov eax, dword [ebp + 0x39]
push eax
call esi
cmp ax, bx
je 0x2112ea29
and eax, 0xffff
push eax
push str.waveInPrepareHeader___failed__code__0x_X_n
push 0x2114e6e0
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
cmp word [esp + 0x1e], 0x10
jne 0x2112ea36
mov byte [ebp + 0x34], bl
jmp 0x2112ea3a
mov byte [ebp + 0x34], 0x80
xor edx, edx
mov ecx, ebp
call fcn.2112e7a0
mov edx, 1
mov ecx, ebp
call fcn.2112e7a0
mov ecx, dword [ebp + 4]
push 0xc8
push ecx
call sym.mss32.dll__AIL_set_timer_frequency_8
mov edx, dword [ebp + 4]
push ebp
push edx
call sym.mss32.dll__AIL_set_timer_user_8
mov eax, dword [ebp + 4]
push eax
call sym.mss32.dll__AIL_start_timer_4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret 4