Function at 0x10008410
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f1b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x70], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000843f
push ebp
adc byte [ecx], 0x58
pop eax
push 0x20
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
test eax, eax
je 0x10008459
jmp 0x1000867f
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x18], 0
jne 0x100084cf
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x18], 1
push 0x12
mov ecx, dword [ebp - 0x70]
add ecx, 0x60
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0xc0]
push eax
call fcn.1000e640
add esp, 0xc
test eax, eax
je 0x100084a7
push 0x20
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0xc0]
push eax
call fcn.1000e640
add esp, 0xc
test eax, eax
jne 0x100084cf
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x1c], 1
push 0
push 0
push 0x721
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0xcc]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x1000867f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
lea eax, [edx + edx + 0xffff]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
lea ecx, [eax + eax + 0xffff]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
lea ecx, [ecx + ecx + 0xffff]
xor eax, eax
mov edi, dword [ebp - 0x54]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
lea ecx, [ecx + ecx + 0xffff]
xor eax, eax
mov edi, dword [ebp - 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov edi, dword [ebp - 0x50]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x3a], 8
mov byte [ebp - 0x3b], 8
mov byte [ebp - 0x39], 4
mov byte [ebp - 0x38], 2
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x48]
call fcn.10001ff0
push 4
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0xc0]
push edx
call fcn.1000e640
add esp, 0xc
test eax, eax
je 0x100085d7
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0xc0]
push eax
call fcn.1000e640
add esp, 0xc
test eax, eax
jne 0x10008627
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x1c], 1
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0
push 0
push 0x721
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0xcc]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov dword [ebp - 4], 0xffffffff
jmp 0x1000867f
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x20
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
je 0x10008668
mov dword [ebp - 4], 0xffffffff
jmp 0x1000867f
push 0x20
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8