Function at 0x140065500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1401a6c00]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
lea rax, [0x1401a6430]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
call fcn.140066870
cmp dword [rsp + 0x30], 0
jne 0x140065028
movzx esi, word [rdi]
lea rcx, [rbp - 0x10]
call fcn.140064000
nop
lea rcx, [0x1401554f0]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 8
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140064b50
mov rdx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], esi
lea rdx, [rdi + 0x10]
cmp qword [rdi + 0x28], 0xf
jbe 0x140064b71
mov rdx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x80], rax
vmovups ymm0, ymmword [rsp + 0x58]
vmovups ymmword [rbp + 0x30], ymm0
vmovups xmm1, xmmword [rsp + 0x78]
vmovups xmmword [rbp + 0x50], xmm1
mov qword [rsp + 0x30], 0xd2d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
vmovups xmm1, xmmword [rsp + 0x20]
vmovdqa xmmword [rsp + 0x20], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x30]
vzeroupper
call fcn.140048a50
nop
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x58]
call fcn.1400610a0
nop
lea r8, [rbp - 0x58]
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.1400625d0
nop
lea rcx, [rbp - 0x58]
call fcn.1400457b0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140064c5c
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064c57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064c57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
vmovdqu xmm0, xmmword [0x140150990]
vmovdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140064cab
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064ca6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064ca6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
vmovdqu xmm0, xmmword [0x140150990]
vmovdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x10]
call fcn.140066e50
nop
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rcx, qword [rbp - 0x78]
lea rdx, [0x140155430]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
jne 0x140064dba
lea rax, str._slideshow__Failed_to_open_file_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x22
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x20], Ordinal_17
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovdqa xmmword [rsp + 0x20], xmm0
vmovups xmm1, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140048a50
nop
lea rcx, [rbp - 0x58]
call fcn.1400637a0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140064fae
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064fa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064fa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.14005a1d0
nop
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
sub rdi, rbx
mov r9, rsi
mov r8, rdi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rdi
je 0x140064ea4
lea rcx, str._slideshow__Failed_to_write_bytes__
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x27
mov qword [rbp - 0x10], rax
mov qword [rbp], rdi
vmovups ymm0, ymmword [rbp - 0x10]
vmovups ymmword [rbp - 0x10], ymm0
mov qword [rsp + 0x20], 0x44
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovdqa xmmword [rbp - 0x30], xmm0
vmovups xmm1, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x20], xmm1
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x58]
vzeroupper
call fcn.140048a50
nop
lea rcx, [rbp - 0x58]
call fcn.1400637a0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140064ea4
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064e9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064e9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, str._slideshow__Wrote_file_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x19
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x20], Ordinal_17
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovdqa xmmword [rsp + 0x20], xmm0
vmovups xmm1, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140048a50
nop
lea rcx, [rbp - 0x58]
call fcn.140063970
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140064f70
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064f6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064f6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
nop
test rbx, rbx
je 0x140064fae
mov rdx, qword [rsp + 0x50]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140064fa5
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064fa5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400fcffc
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140064fec
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064fe7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064fe7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400fcffc
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], reloc.portaudio.dll_Ordinal_15
mov byte [rbp - 0x78], 0
lea rcx, [rbp + 0x10]
call fcn.1400457b0
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400fd350
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, str.create_directories
call fcn.140065db0
int3
mov rdx, qword [rdx]
mov rcx, qword [rcx + 8]
jmp 0x140064ad0