Function at 0x1000f030
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011ba9
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
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000f063
inc ebx
push edi
je 0x1000f0bc
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 0x1000f07d
jmp 0x1000f293
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x14], 0
jne 0x1000f0eb
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x14], 1
push 0x12
mov ecx, dword [ebp - 0x70]
add ecx, 0x58
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0x1c8
call fcn.10004150
test eax, eax
je 0x1000f0c3
push 0x20
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, 0x1c8
call fcn.10004150
test eax, eax
jne 0x1000f0eb
push eax
invalid
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x18], 1
push 0
push 0
push 0x5b6
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x2e4]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x1000f293
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
lea edx, [ecx + ecx + 0xffff]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
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 - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
lea ecx, [eax + eax + 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.10002000
push 4
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0x1c8
call fcn.10004150
test eax, eax
je 0x1000f1eb
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, 0x1c8
call fcn.10004150
test eax, eax
jne 0x1000f23b
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0
push 0
push 0x5b6
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x2e4]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov dword [ebp - 4], 0xffffffff
jmp 0x1000f293
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x20
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
je 0x1000f27c
mov dword [ebp - 4], 0xffffffff
jmp 0x1000f293
push 0x20
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
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