Function at 0x2112dcc0
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
push 0x155
mov esi, eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x2112dced
push str.Could_not_allocate_memory_for_input_driver_descriptor.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
push 0x155
push ebx
push edi
call fcn.21136810
mov dword [edi], 0x4e494448
mov eax, dword [esi + 0x14]
mov dword [edi + 0x24], eax
mov ecx, dword [esi]
mov dword [edi + 8], ecx
mov edx, dword [esi + 4]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 8]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x14], ecx
mov edx, dword [esi + 0x10]
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x14]
add esp, 0xc
push 0x2112dc10
mov dword [edi + 0x1c], eax
call sym.mss32.dll__AIL_register_timer_4
cmp eax, 0xffffffff
mov dword [edi + 4], eax
jne 0x2112dd56
push str.Out_of_timer_handles
call sym.mss32.dll__AIL_set_error_4
push edi
call sym.mss32.dll__AIL_close_input_4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esi + 4]
mov ecx, eax
and cl, 2
neg cl
mov edx, dword [esi + 8]
mov word [esp + 0x10], 1
mov dword [esp + 0x14], edx
mov word [esp + 0x20], bx
sbb ecx, ecx
and al, 1
neg ecx
add ecx, 1
neg al
mov word [esp + 0x12], cx
sbb eax, eax
and eax, 8
add eax, 8
mov word [esp + 0x1e], ax
shr ax, 3
imul ax, cx
mov word [esp + 0x1c], ax
movzx eax, ax
imul eax, edx
cmp dword [0x21165710], ebx
mov dword [esp + 0x18], eax
je 0x2112ddbc
mov ecx, dword [0x2118b20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi]
push ebp
push 0x30000
push ebx
push 0x2112dbf0
lea edx, [esp + 0x20]
push edx
push eax
lea ebp, [edi + 0x51]
push ebp
call dword [sym.imp.WINMM.dll_waveInOpen]
movzx ecx, ax
mov dword [esp + 0x10], ecx
call fcn.21101090
mov eax, dword [esp + 0x10]
cmp ax, bx
je 0x2112de19
movzx edx, ax
push edx
push str.waveInOpen___failed__code__0x_X_n
push 0x21165738
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
mov dword [ebp], ebx
call sym.mss32.dll__AIL_close_input_4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esi + 0x10]
mov dword [edi + 0x28], eax
mov dword [esp + 0x10], ebx
lea ebp, [edi + 0x2c]
mov ecx, dword [esi + 0x10]
push ecx
call sym.mss32.dll__AIL_mem_alloc_lock_4
cmp eax, ebx
mov dword [ebp], eax
je 0x2112deab
mov eax, dword [esp + 0x10]
add eax, 1
add ebp, 4
cmp eax, 8
mov dword [esp + 0x10], eax
jl 0x2112de26
mov dword [esp + 0x10], ebx
lea esi, [edi + 0x5d]
lea ebp, [edi + 0x2c]
mov edx, dword [ebp]
mov dword [esi - 8], edx
mov ecx, dword [edi + 0x28]
lea eax, [esi - 8]
mov dword [esi - 4], ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
push 0x20
mov dword [esi + 0x14], ebx
mov edx, dword [edi + 0x51]
push eax
push edx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
movzx eax, ax
cmp ax, bx
jne 0x2112dec5
mov eax, dword [esp + 0x10]
add eax, 1
add ebp, 4
add esi, 0x20
cmp eax, 8
mov dword [esp + 0x10], eax
jl 0x2112de53
cmp word [esp + 0x22], 0x10
jne 0x2112deec
mov byte [edi + 0x4c], bl
jmp 0x2112def0
push str.Insufficient_memory_for_input_buffer
call sym.mss32.dll__AIL_set_error_4
push edi
call sym.mss32.dll__AIL_close_input_4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
movzx eax, ax
push eax
push str.waveInPrepareHeader___failed__code__0x_X_n
push 0x21165738
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call sym.mss32.dll__AIL_close_input_4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov byte [edi + 0x4c], 0x80
lea esi, [edi + 0x55]
mov ebx, 8
jmp 0x2112df00
mov ecx, dword [edi + 0x28]
movzx edx, byte [edi + 0x4c]
mov eax, dword [esi]
push ecx
push edx
push eax
call fcn.21136810
add esp, 0xc
add esi, 0x20
sub ebx, 1
jne 0x2112df00
mov ecx, dword [edi + 4]
push 0xc8
push ecx
call sym.mss32.dll__AIL_set_timer_frequency_8
mov edx, dword [edi + 4]
push edi
push edx
call sym.mss32.dll__AIL_set_timer_user_8
mov eax, dword [edi + 4]
push eax
call sym.mss32.dll__AIL_start_timer_4
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x18
ret