Function at 0x568340
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7ab180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 0x14]
jl 0x56838d
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 0x14]
jl 0x568383
push 0x32e
push 0x79cd00
push str.prm__rec_id____int_wf__dev_count
call fcn.0040606e
add esp, 0xc
mov eax, 0x11174
jmp 0x5685cc
xor ecx, ecx
jne 0x568350
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0
jne 0x5683b8
call fcn.00404cf0
jmp 0x5685cc
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00567ec0
add esp, 8
mov eax, dword [ebp + 0x18]
imul eax, dword [eax + 0x14], 0x3e8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ecx + 0xc]
imul ecx, dword [edx + 0x10]
xor edx, edx
div ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xd4], eax
mov dword [ebp - 0x24], 0x50000
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x20], 0
jne 0x568418
mov ecx, dword [ebp - 0x24]
or ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x18]
imul ecx, dword [eax + 4], 0x1e4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + ecx + 0x1dc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x568461
mov eax, dword [ebp - 0x1c]
add eax, 0x6ddd0
jmp 0x5685cc
mov eax, dword [ebp + 0x1c]
shl eax, 5
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00569ac0
add esp, 8
mov edx, dword [ebp + 0x14]
mov dword [edx + 4], eax
mov dword [ebp - 0x20], 0
jmp 0x56848c
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0x1c]
jae 0x56853d
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xd4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00569ac0
add esp, 8
mov edx, dword [ebp - 0x20]
shl edx, 5
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 4]
mov dword [ecx + edx], eax
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xd4]
mov dword [ecx + edx + 4], eax
push 0x20
mov ecx, dword [ebp - 0x20]
shl ecx, 5
mov edx, dword [ebp + 0x14]
add ecx, dword [edx + 4]
push ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x568507
mov eax, dword [ebp - 0x1c]
add eax, 0x6ddd0
jmp 0x5685cc
push 0x20
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 4]
push edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x568538
mov eax, dword [ebp - 0x1c]
add eax, 0x6ddd0
jmp 0x5685cc
jmp 0x568483
mov eax, dword [ebp + 0x14]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
call fcn.00406a8c
cmp eax, 4
jl 0x5685c6
mov eax, dword [ebp + 0x18]
imul eax, dword [eax + 0x14], 0x3e8
mov ecx, dword [ebp + 0x18]
xor edx, edx
div dword [ecx + 0xc]
push eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x20]
push eax
call fcn.00568020
add esp, 4
push eax
mov ecx, dword [ebp + 0x18]
imul edx, dword [ecx + 4], 0x1e4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
lea edx, [ecx + edx + 4]
push edx
push str._WaveAPI_Sound_recorder___s__initialized__format_s__clock_rate_d__channel_count_d__samples_per_frame_d___dms__
push 0x79ce64
call fcn.004034e5
add esp, 0x20
xor eax, eax
jne 0x56855d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403751
mov esp, ebp
pop ebp
ret