Function at 0x110341b0
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dab11
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 4]
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1103420b
movzx esi, word [ebx + 2]
jmp 0x1103420e
mov esi, dword [ebp + 0xc]
mov al, byte [edi + 0x238]
mov dword [edi + 0x70], esi
test al, 1
je 0x1103421e
or esi, 1
test al, 2
je 0x11034225
or esi, 8
test esi, esi
jne 0x11034241
push 0xf
mov ecx, edi
call fcn.110336c0
mov eax, dword [ebp - 0x2fc]
add esp, 4
push eax
jmp 0x11034984
mov eax, esi
and eax, 1
mov dword [ebp - 0x308], eax
jne 0x1103425a
push 1
mov ecx, edi
call fcn.110336c0
add esp, 4
mov eax, esi
and eax, 2
mov dword [ebp - 0x304], eax
jne 0x11034273
push 2
mov ecx, edi
call fcn.110336c0
add esp, 4
and esi, 8
mov dword [ebp - 0x300], esi
jne 0x1103428a
push 8
mov ecx, edi
call fcn.110336c0
add esp, 4
test ebx, ebx
je 0x1103431f
movzx ecx, word [ebx + 0xe]
add ecx, 0x12
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x110342c0
push 0x1da
push str...ctl32AUDIO.CPP
push 0x111fa3c8
call fcn.11067750
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov word [esi + 0x10], ax
mov dx, word [ebx + 4]
mov word [esi], dx
mov eax, 1
mov word [esi + 2], ax
movzx ecx, word [ebx + 6]
mov dword [esi + 4], ecx
movzx edx, word [ebx + 8]
mov dword [esi + 8], edx
mov ax, word [ebx + 0xa]
mov word [esi + 0xc], ax
mov cx, word [ebx + 0xc]
mov word [esi + 0xe], cx
movzx eax, word [ebx + 0xe]
mov word [esi + 0x10], ax
test ax, ax
je 0x11034330
push eax
add ebx, 0x10
lea eax, [esi + 0x12]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x11034330
push 0x12
push 0x1126d6d8
call fcn.111ba520
add esp, 8
mov esi, eax
cmp word [esi], 1
jne 0x11034341
movzx ecx, word [esi + 0xc]
imul ecx, dword [esi + 4]
mov dword [esi + 8], ecx
cmp byte [ebp + 0x10], 0
jne 0x11034476
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x110343ae
movzx eax, word [esi + 0x10]
cmp ax, word [ecx + 0x10]
jne 0x110343ae
add eax, 0x12
mov edx, esi
cmp eax, 4
jb 0x1103437a
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x110343ae
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x11034366
test eax, eax
je 0x11034476
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x110343ae
cmp eax, 1
jbe 0x11034476
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x110343ae
cmp eax, 2
jbe 0x11034476
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x11034476
push 0xf
mov ecx, edi
call fcn.110336c0
mov eax, dword [edi + 0x74]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x110343cd
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [edi + 0x74], esi
mov ecx, dword [esi]
mov dword [edi + 0x440], ecx
mov edx, dword [esi + 4]
mov dword [edi + 0x444], edx
mov eax, dword [esi + 8]
mov dword [edi + 0x448], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x44c], ecx
mov dx, word [esi + 0x10]
mov word [edi + 0x450], dx
mov byte [edi + 0x409], bl
movzx edx, word [esi + 0x10]
add edx, 0x10
xor eax, eax
mov dword [ebp - 0x2f8], ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], edx
mov ecx, esi
cmp edx, 2
jl 0x1103445b
movzx edx, byte [ecx]
add word [ebp - 0x2f8], dx
movzx edx, byte [esi + eax + 1]
add word [ebp - 0x2f4], dx
mov edx, dword [ebp - 0x310]
add eax, 2
lea ebx, [edx - 1]
add ecx, 2
cmp eax, ebx
jl 0x1103442c
mov ebx, dword [ebp - 0x30c]
cmp eax, edx
jge 0x11034462
movzx ebx, byte [ecx]
mov ecx, dword [ebp - 0x2f4]
add ecx, dword [ebp - 0x2f8]
add ebx, ecx
mov word [edi + 0x78], bx
jmp 0x11034483
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov esi, dword [edi + 0x74]
add esp, 4
cmp dword [ebp - 0x300], 0
je 0x11034495
push edi
call fcn.11032e90
add esp, 4
cmp dword [ebp - 0x308], 0
je 0x110347c0
cmp dword [edi + 0x84], 0
jne 0x110347c0
lea eax, [edi + 0x28]
push eax
mov dword [ebp - 0x2f8], eax
mov dword [ebp - 0x30c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 4]
push 0
push 0x100
lea edx, [ebp - 0x110]
push edx
mov dword [edi + 0x208], 0xa
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push str.InputDevice
push str.Audio
mov byte [ebp - 4], 1
mov dword [ebp - 0x2f4], 0xffffffff
call eax
cmp word [ebp - 0x110], 0
je 0x110345af
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
xor ebx, ebx
mov dword [ebp - 0x308], eax
test eax, eax
jle 0x110345af
xor ecx, ecx
push 0x4e
push ecx
lea edx, [ebp - 0x2ee]
push edx
mov word [ebp - 0x2f0], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x50
lea eax, [ebp - 0x2f0]
push eax
push ebx
call dword [sym.imp.WINMM.dll_waveInGetDevCapsW]
test eax, eax
jne 0x110345a2
lea ecx, [ebp - 0x2e8]
push ecx
push ebx
push str.InputId__d_s_n
call fcn.111bd7b0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x2e8]
push eax
call fcn.11198bf0
add esp, 0x14
test eax, eax
je 0x110345a2
cmp dword [ebp - 0x2f4], 0xffffffff
jne 0x110345a2
lea ecx, [ebp - 0x2e8]
push ecx
push ebx
push str.Selecting_input__d___s__n
mov dword [ebp - 0x2f4], ebx
call fcn.111bd7b0
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 0x308]
jl 0x11034523
mov edx, dword [ebp - 0x2f4]
push 0x30000
push edi
push 0x110317c0
push esi
push edx
lea eax, [edi + 0x84]
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
mov ebx, eax
test ebx, ebx
je 0x1103466f
mov eax, dword [edi + 0x218]
test eax, eax
je 0x11034631
push 4
push 0
push 0
push 0
push esi
push 0x1126d6d8
push 0
lea ecx, [edi + 0x7c]
push ecx
call eax
test eax, eax
je 0x1103460b
push eax
push str.Error._acmStreamOpen__in__ret__d_n
call fcn.111bd7b0
add esp, 8
mov edx, dword [ebp - 0x2f4]
push 0x30000
push edi
push 0x110317c0
push 0x1126d6d8
push edx
lea eax, [edi + 0x84]
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
mov ebx, eax
test ebx, ebx
je 0x1103466f
push ebx
push str.Error._waveInOpen_ret__d_n
call fcn.111bd7b0
add esp, 8
cmp dword [ebp - 0x300], 0
jne 0x110347af
mov eax, dword [ebp - 0x2f8]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call esi
mov ecx, dword [ebp - 0x2fc]
push ecx
call esi
mov eax, ebx
jmp 0x1103498c
mov edx, dword [edi + 0x84]
push edx
call dword [sym.imp.WINMM.dll_waveInStop]
test eax, eax
je 0x1103468e
push eax
push str.Error._waveInStop_ret__d_n
call fcn.111bd7b0
add esp, 8
lea ebx, [edi + 0x98]
mov dword [ebp - 0x300], 0xa
mov eax, 0xcccccccd
mul dword [esi + 8]
shr edx, 3
add edx, 3
and edx, 0xfffffffc
cmp word [esi], 1
je 0x110346ce
movzx eax, word [esi + 2]
imul eax, dword [esi + 4]
lea ecx, [eax + eax*2 + 9]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
add edx, 8
push edx
mov dword [ebx + 4], edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x110346f8
push 0x2a4
push str...ctl32AUDIO.CPP
push str.wh__lpData
call fcn.11067750
add esp, 0xc
mov edx, dword [edi + 0x84]
push 0x20
push ebx
push edx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
je 0x11034738
push eax
lea eax, [ebp - 0x2a0]
push str.waveInPrepareHeader_err_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x2aa
lea ecx, [ebp - 0x2a0]
push str...ctl32AUDIO.CPP
push ecx
call fcn.11067750
add esp, 0x18
mov edx, dword [edi + 0x84]
push 0x20
push ebx
push edx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
je 0x11034778
push eax
lea eax, [ebp - 0x2a0]
push str.waveInAddBuffer_err_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x2bb
lea ecx, [ebp - 0x2a0]
push str...ctl32AUDIO.CPP
push ecx
call fcn.11067750
add esp, 0x18
add ebx, 0x20
dec dword [ebp - 0x300]
jne 0x1103469e
mov edx, dword [edi + 0x84]
push edx
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
je 0x110347af
push 0x2c1
push str...ctl32AUDIO.CPP
push str.err__0
call fcn.11067750
add esp, 0xc
mov eax, dword [ebp - 0x2f8]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x304], 0
je 0x1103497d
cmp dword [edi + 0x1e0], 0
lea eax, [edi + 0x1e0]
mov dword [ebp - 0x2f8], eax
jne 0x1103497d
lea ebx, [edi + 0x40]
push ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x310], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 4]
push 0
push 0
push str.FailWaveOutOpen
push str._debug
mov byte [ebp - 4], 2
call fcn.110bbc00
mov dword [ebp - 0x304], eax
test eax, eax
je 0x11034842
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
mov ecx, dword [ebp - 0x2fc]
push ecx
call esi
mov eax, dword [ebp - 0x304]
or eax, 0x8000
jmp 0x1103498c
mov edx, dword [ebp - 0x2f8]
push 0x30000
push edi
push 0x11031810
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov ebx, eax
test ebx, ebx
je 0x1103491a
mov eax, dword [edi + 0x218]
test eax, eax
je 0x110348e7
push 4
push 0
push 0
push 0
push 0x1126d6d8
push esi
push 0
lea ecx, [edi + 0x80]
push ecx
call eax
mov esi, eax
test esi, esi
je 0x110348c6
push esi
push str.Error._acmStreamOpen__out__ret__d_n
call fcn.111bd7b0
push 0xf
mov ecx, edi
call fcn.110336c0
mov edx, dword [ebp - 0x2f4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0xc
push edx
call edi
mov eax, dword [ebp - 0x2fc]
push eax
call edi
mov eax, esi
jmp 0x1103498c
mov ecx, dword [ebp - 0x2f8]
push 0x30000
push edi
push 0x11031810
push 0x1126d6d8
push 0xffffffffffffffff
push ecx
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov ebx, eax
test ebx, ebx
je 0x1103491a
push ebx
push str.Error._waveOutOpen_ret__d_n
call fcn.111bd7b0
mov edx, dword [ebp - 0x2f4]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 8
push edx
call esi
mov eax, dword [ebp - 0x2fc]
push eax
call esi
mov eax, ebx
or eax, 0x8000
jmp 0x1103498c
mov ecx, dword [edi + 4]
push 0
push 0xffffffffffffffff
push str.VoiceVol
push str.Audio
call fcn.110bbc00
cmp eax, 0x64
jle 0x1103493c
mov eax, 0x64
jmp 0x11034940
test eax, eax
js 0x11034970
imul eax, eax, 0xffff
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x2f8]
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
mov ecx, dword [ebp - 0x2f4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x2fc]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0xc