Function at 0x73f4033d
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.73f1148b
test eax, eax
mov dword [ebp - 8], eax
je 0x73f40671
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 0x73f40622
mov eax, dword [esi + 0x28]
test al, 8
je 0x73f4046f
mov ecx, dword [esi + 0x2c]
test cl, 1
je 0x73f40641
and eax, 0x3ffffffe
or eax, 1
test cl, 2
mov dword [esi + 0x28], eax
je 0x73f403e0
or eax, 2
mov dword [esi + 0x28], eax
lea ebx, [esi + 0x5c]
cmp dword [ebx], 0
jne 0x73f40428
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 0x73f402fa
push dword [esi + 0x58]
push dword [eax + 0x50]
push ebx
call fcn.73f32e56
test eax, eax
jge 0x73f40428
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 8]
jne 0x73f403fc
jmp 0x73f4048d
lea edi, [esi + 0xb0]
cmp dword [edi], 0
jle 0x73f40461
and dword [ebp - 8], 0
test byte [esi + 0x28], 2
jne 0x73f40443
cmp dword [esi + 0x54], 0
jne 0x73f40461
mov eax, dword [esi + 0x34]
add eax, dword [ebp - 8]
mov ecx, esi
push eax
call fcn.73f4026f
add dword [ebp - 8], 0x20
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [edi], 0
jg 0x73f40437
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInStart]
and dword [esi + 0x3c], 0
jmp 0x73f4048d
test al, 1
je 0x73f40641
or eax, 0x80000000
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x73f4048d
push eax
call dword [sym.imp.WINMM.dll_waveInReset]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x73f40641
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x73f40641
push dword [esi + 0xb8]
xor ebx, ebx
push ebx
call fcn.73f1146d
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x73f40634
mov edi, dword [esi + 0x3c]
shl edi, 5
add edi, dword [esi + 0x34]
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x73f40581
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 0x73f404f8
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 0x73f4055a
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 0x73f4052d
cmp edx, ecx
jb 0x73f40532
cmp edx, 0xffffffff
jne 0x73f4055a
cmp edx, 0xffffffff
je 0x73f40543
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 0x73f40552
and dword [esi + 0x68], 0
mov eax, dword [esi + 0x68]
cmp eax, dword [ebp - 0x14]
jne 0x73f4051d
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x73f40581
mov eax, dword [esi + 0x28]
test al, 2
jne 0x73f40581
test eax, eax
js 0x73f40581
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 0x73f405b9
test al, 2
jne 0x73f405a8
mov ecx, dword [esi + 0x50]
cmp ecx, dword [edi]
jbe 0x73f405f8
test eax, 0xc0000000
jne 0x73f405b9
push edi
mov ecx, esi
call fcn.73f4026f
jmp 0x73f40613
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi]
cmp eax, dword [esi + 0x30]
jne 0x73f40613
mov eax, dword [esi + 0xb4]
and dword [esi + 0x54], 0
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.73f401f7
test byte [esi + 0x1f], 0x20
je 0x73f40613
cmp dword [ebx], 0
je 0x73f405f2
push ebx
call fcn.73f32ede
and dword [esi + 0x28], 0xfffffffc
jmp 0x73f40613
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x30]
cmp eax, dword [edi]
jne 0x73f40613
mov ecx, esi
call fcn.73f401f7
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x30]
jl 0x73f40622
and dword [esi + 0x3c], 0
lea edi, [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jge 0x73f404a4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp - 8], 0
je 0x73f40666
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.73f1148b
test eax, eax
mov dword [ebp - 8], eax
jne 0x73f403a0
jmp 0x73f4066f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
leave
ret