Function at 0x140082a2c
Capabilities:
Create thread
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov eax, dword [0x1401fdff4]
cmp eax, 1
jne 0x140082a87
lea rbx, str.RIFF
mov edi, 0xfcbc
jmp 0x140082b13
cmp eax, 3
jne 0x140082a9a
lea rbx, str.RIFFd
mov edi, 0x22a6c
jmp 0x140082b13
cmp eax, 2
jne 0x140082aad
lea rbx, [0x1400f2970]
mov edi, 0x1a000
jmp 0x140082b13
cmp eax, 4
jne 0x140082ac0
lea rbx, str.RIFFFg
mov edi, 0x2674e
jmp 0x140082b13
cmp eax, 5
jne 0x140082ad3
lea rbx, [0x14010c970]
mov edi, 0x3b20a
jmp 0x140082b13
cmp eax, 6
jne 0x140082ae6
lea rbx, str.RIFF6
mov edi, 0x3b63e
jmp 0x140082b13
cmp eax, 7
jne 0x140082af9
lea rbx, str.RIFFF
mov edi, 0x15e4e
jmp 0x140082b13
cmp eax, 8
jne 0x140082b07
lea rbx, [0x1401b5fb0]
jmp 0x140082adf
lea rbx, str.RIFF_R
mov edi, 0x25268
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov r15d, 0xf
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x40], r14b
mov dword [rsp + 0x30], 1
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0xb]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov r13d, 0x1000
test eax, eax
js 0x140082be1
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
lea rax, [rbp - 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x140082b7b
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.14000ca88
mov rdx, qword [rsp + 0x58]
cmp rdx, r15
jbe 0x140082bcd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x140082bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082bc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008a600
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x50], xmm1
mov r8d, 0x14
lea rdx, str._nemo_temp_sound.wav
lea rcx, [rsp + 0x40]
call fcn.14000a79c
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov byte [rax], r14b
mov rdx, qword [rsp + 0x58]
cmp rdx, r15
jbe 0x140082c5c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, r13
jb 0x140082c57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082c57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008a600
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x40], r14b
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], r15
cmova rcx, qword [rbp - 0x80]
lea rdx, [0x1400a5ea4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x140082d65
mov r9, rax
mov r8, rdi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp rbx, rdi
jne 0x140082d5c
mov ecx, 0x30
call fcn.14008a608
mov rbx, rax
mov qword [rsp + 0x30], rax
mov dword [rax], 0x5dc
lea rcx, [rax + 8]
lea rdx, [rbp - 0x80]
call fcn.140009048
lea rax, [0x140082954]
mov qword [rbx + 0x28], rax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rbx
lea r8, [0x14008a1f8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140082d4b
cmp dword [rsp + 0x68], r14d
je 0x140082d3f
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140082d3f
jmp 0x140082d89
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x68], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdx, str.Failed_to_write_entire_sound_data_to_file
jmp 0x140082d6c
lea rdx, str.Failed_to_create_temp_sound_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000b8b0
lea rdx, [0x14000ba20]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, r15
jbe 0x140082dc2
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, r13
jb 0x140082dbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082dbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008a600
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14008a5e0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret