Function at 0x73e9ff25
Capabilities:
Capture microphone audio

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0xb8]
push dword [esi + 0xc4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x20]
push eax
push 0
push 0xffffffffffffffff
push 3
call fcn.73e7148b
test eax, eax
mov dword [ebp - 8], eax
je 0x73ea0258
lea eax, [esi + 0x74]
push ebx
mov dword [ebp - 4], eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 8], 2
jne 0x73ea020a
mov eax, dword [esi + 0x28]
test al, 8
je 0x73ea0057
mov ecx, dword [esi + 0x2c]
test cl, 1
je 0x73ea0229
and eax, 0x3ffffffe
or eax, 1
test cl, 2
mov dword [esi + 0x28], eax
je 0x73e9ffc8
or eax, 2
mov dword [esi + 0x28], eax
lea ebx, [esi + 0x5c]
cmp dword [ebx], 0
jne 0x73ea0010
mov edi, dword [esi + 0x1c]
push 4
shr edi, 0x1d
pop eax
and edi, eax
or edi, 0x30000
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
push edi
push esi
push 0x73e9fee2
push dword [esi + 0x58]
push dword [eax + 0x50]
push ebx
call fcn.73e9280e
test eax, eax
jge 0x73ea0010
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 8]
je 0x73ea0075
jmp 0x73e9ffe4
lea edi, [esi + 0xb0]
cmp dword [edi], 0
jle 0x73ea0049
and dword [ebp - 8], 0
test byte [esi + 0x28], 2
jne 0x73ea002b
cmp dword [esi + 0x54], 0
jne 0x73ea0049
mov eax, dword [esi + 0x34]
add eax, dword [ebp - 8]
mov ecx, esi
push eax
call fcn.73e9fe57
add dword [ebp - 8], 0x20
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [edi], 0
jg 0x73ea001f
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInStart]
and dword [esi + 0x3c], 0
jmp 0x73ea0075
test al, 1
je 0x73ea0229
or eax, 0x80000000
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x73ea0075
push eax
call dword [sym.imp.WINMM.dll_waveInReset]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x73ea0229
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x73ea0229
push dword [esi + 0xb8]
xor ebx, ebx
push ebx
call fcn.73e7146d
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x73ea021c
mov edi, dword [esi + 0x3c]
shl edi, 5
add edi, dword [esi + 0x34]
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x73ea0169
add dword [esi + 0xa4], eax
mov ecx, dword [edi + 8]
lea eax, [esi + 0xb4]
add dword [eax], ecx
mov ecx, dword [eax]
cmp ecx, dword [esi + 0x4c]
mov dword [ebp - 0xc], ebx
jb 0x73ea00e0
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
mov dword [ebp - 0xc], 1
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x60], ebx
je 0x73ea0142
mov ebx, dword [edi]
sub ebx, dword [esi + 0x40]
mov ecx, dword [edi + 8]
mov eax, dword [esi + 0x68]
add ecx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov edx, dword [esi + 0x64]
lea eax, [edx + eax*8]
mov edx, dword [eax]
cmp edx, ebx
jb 0x73ea0115
cmp edx, ecx
jb 0x73ea011a
cmp edx, 0xffffffff
jne 0x73ea0142
cmp edx, 0xffffffff
je 0x73ea012b
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x10]
inc dword [esi + 0x68]
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x60]
jb 0x73ea013a
and dword [esi + 0x68], 0
mov eax, dword [esi + 0x68]
cmp eax, dword [ebp - 0x14]
jne 0x73ea0105
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x73ea0169
mov eax, dword [esi + 0x28]
test al, 2
jne 0x73ea0169
test eax, eax
js 0x73ea0169
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
and dword [edi + 0x10], 0xfffffffe
push 0x20
mov dword [edi + 8], ebx
push edi
lea ebx, [esi + 0x5c]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
mov eax, dword [esi + 0x28]
test eax, eax
js 0x73ea01a1
test al, 2
jne 0x73ea0190
mov ecx, dword [esi + 0x50]
cmp ecx, dword [edi]
jbe 0x73ea01e0
test eax, 0xc0000000
jne 0x73ea01a1
push edi
mov ecx, esi
call fcn.73e9fe57
jmp 0x73ea01fb
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi]
cmp eax, dword [esi + 0x30]
jne 0x73ea01fb
mov eax, dword [esi + 0xb4]
and dword [esi + 0x54], 0
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.73e9fddf
test byte [esi + 0x1f], 0x20
je 0x73ea01fb
cmp dword [ebx], 0
je 0x73ea01da
push ebx
call fcn.73e92896
and dword [esi + 0x28], 0xfffffffc
jmp 0x73ea01fb
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x30]
cmp eax, dword [edi]
jne 0x73ea01fb
mov ecx, esi
call fcn.73e9fddf
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x30]
jl 0x73ea020a
and dword [esi + 0x3c], 0
lea edi, [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jge 0x73ea008c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp - 8], 0
je 0x73ea024d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x20]
push eax
push 0
push 0xffffffffffffffff
push 3
call fcn.73e7148b
test eax, eax
mov dword [ebp - 8], eax
je 0x73ea0256
jmp 0x73e9ff88
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
leave
ret