Function at 0x140001050
Capabilities:
Create thread
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x1400033ec]
lea rcx, str.audio.wav
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
mov r9, rax
mov edx, 0x9adc6
lea r8d, [rdi + 1]
lea rcx, str.RIFF
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea edx, [rdi + 1]
xor ecx, ecx
mov r9d, 0xad
mov r8d, 0x4000
call qword [sym.imp.USER32.dll_RegisterHotKey]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [rdi + 8]
call fcn.140001370
lea rcx, [0x140001020]
mov qword [rax], rcx
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140001310]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000129a
mov qword [rbp - 0x50], rdi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x140003420]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140003400]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400011c8
mov qword [rbp - 0x48], rdi
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
lea r9, [rbp - 0x48]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x20]
mov ebx, eax
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test ebx, ebx
js 0x1400011c8
mov qword [rbp - 0x40], rdi
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [0x140003410]
call qword [rax + 0x18]
mov ebx, eax
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test ebx, ebx
js 0x1400011c8
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
xor r8d, r8d
movss xmm1, dword [0x140003430]
call qword [rax + 0x38]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov dword [rbp - 0x50], 0
mov qword [rbp - 0x38], rdi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140003420]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140003400]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1400011ff
xorps xmm1, xmm1
jmp 0x140001278
mov qword [rbp - 0x30], rdi
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x20]
mov ebx, eax
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test ebx, ebx
jns 0x14000122b
xorps xmm1, xmm1
jmp 0x140001278
mov qword [rbp - 0x28], rdi
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [0x140003410]
call qword [rax + 0x18]
mov ebx, eax
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test ebx, ebx
jns 0x140001265
xorps xmm1, xmm1
jmp 0x140001278
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax + 0x48]
movss xmm1, dword [rbp - 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___float____ptr64]
mov rcx, rax
lea rdx, [0x1400012b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001122
mov dword [rbp - 0x18], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3