Function at 0x1400c5d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1401dd1d8]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
lea rcx, str.E:RawAudio_test.wav
mov qword [rbp + 0x2f], rsi
xor edx, edx
mov qword [rbp + 0x37], rsi
mov r8d, 0x10000
movups xmm0, xmmword [rbp + 0x2f]
mov dword [rbp + 0x3f], esi
mov dword [rbp + 0xf], esi
movups xmmword [rbp - 1], xmm0
call qword [sym.imp.WINMM.dll_mmioOpenW]
mov rbx, rax
test rax, rax
jne 0x1400c5e02
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._FAILED.nCould_not_open_the_WAV_file.n
call fcn.140099aa0
jmp 0x1400c6069
mov r9d, 0x20
mov dword [rbp - 1], 0x45564157
xor r8d, r8d
lea rdx, [rbp + 0x2f]
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
je 0x1400c5e46
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._FAILED.nWAV_file_section_not_found.n
call fcn.140099aa0
jmp 0x1400c6069
xor r9d, r9d
mov dword [rbp - 1], 0x20746d66
lea r8, [rbp + 0x2f]
lea rdx, [rbp - 1]
call qword [sym.imp.WINMM.dll_mmioDescend]
mov rcx, rbx
test eax, eax
je 0x1400c5e85
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.FAILED.nWAV_format_not_found.n
call fcn.140099aa0
jmp 0x1400c6069
mov r8d, 0x12
lea rdx, [rbp + 0x17]
call qword [sym.imp.WINMM.dll_mmioRead]
mov rcx, rbx
cmp eax, 0x12
je 0x1400c5ebd
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.FAILED.nWAV_file_section_couldnt_be_read.n
call fcn.140099aa0
jmp 0x1400c6069
cmp word [rbp + 0x17], 1
je 0x1400c5ee4
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.FAILED.nNot_a_PCM_file.n
call fcn.140099aa0
jmp 0x1400c6069
xor r8d, r8d
lea rdx, [rbp - 1]
call qword [sym.imp.WINMM.dll_mmioAscend]
mov rcx, rbx
test eax, eax
je 0x1400c5f18
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.FAILED.nBad_WAV_file.n
call fcn.140099aa0
jmp 0x1400c6069
mov r9d, 0x10
mov dword [rbp - 1], 0x61746164
lea r8, [rbp + 0x2f]
lea rdx, [rbp - 1]
call qword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
je 0x1400c5f5a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.FAILED.nWAV_file_data_missing.n
call fcn.140099aa0
jmp 0x1400c6069
mov ecx, dword [rbp + 3]
mov qword [rsp + 0xb0], rdi
call sub.mfc140u.dll_operator
mov r8d, dword [rbp + 3]
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.WINMM.dll_mmioRead]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINMM.dll_mmioClose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._Hz
call fcn.140099aa0
mov edx, dword [rbp + 0x1b]
mov rcx, rax
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str.__BitDepth
call fcn.140099aa0
movzx edx, word [rbp + 0x25]
mov rcx, rax
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___unsigned_short_int____ptr64]
mov rcx, rax
lea rdx, str.__Duration
call fcn.140099aa0
mov edx, dword [rbp + 3]
mov rcx, rax
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._bytes.__
call fcn.140099aa0
mov edx, dword [rbp + 3]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
shr edx, 0xa
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str.KB_n
call fcn.140099aa0
mov qword [rsp + 0x30], rsi
lea rcx, str.E:RawAudio_sam.raw
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [rbp + 3]
lea r9, [rbp - 9]
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14010f260
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret