Function at 0x14007a730
Capabilities:
Write file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x38
lea r14, [0x14012dc78]
mov rsi, rcx
mov rdx, r14
call fcn.140024c30
mov edx, eax
shr edx, 0x1f
test dl, dl
jne 0x14007aa61
mov qword [rsp + 0x50], rbx
lea rdx, str.__Ascii_text_formatted_audio_file_generated_by_awC_v4.3_c_c
mov r9d, 0xa
mov qword [rsp + 0x60], rbp
lea rbx, [rsi + 0x29c]
mov qword [rsp + 0x68], rdi
mov rcx, rbx
mov qword [rsp + 0x30], r15
lea r8d, [r9 + 3]
call fcn.1400100f0
xor r15d, r15d
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x58], r15d
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rbx + r8], r15b
jne 0x14007a7a0
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x10]
mov edx, reloc.WSOCK32.dll_recv
mov rax, qword [rcx]
call qword [rax + 0x40]
test rax, rax
je 0x14007a820
mov r9d, recv
mov dword [rsp + 0x20], 0xa
mov r8, rax
lea rdx, str.__Copyright:__s_c_c
mov rcx, rbx
call fcn.1400100f0
mov r8, rdi
mov dword [rsp + 0x58], r15d
nop dword [rax]
inc r8
cmp byte [rbx + r8], r15b
jne 0x14007a800
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x10]
mov edx, recv
mov rax, qword [rcx]
call qword [rax + 0x40]
test rax, rax
je 0x14007a880
mov r9d, recv
mov dword [rsp + 0x20], 0xa
mov r8, rax
lea rdx, str.___s_c_c
mov rcx, rbx
call fcn.1400100f0
mov r8, rdi
mov dword [rsp + 0x58], r15d
nop dword [rax]
inc r8
cmp byte [rbx + r8], r15b
jne 0x14007a860
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 0xa
lea rdx, str.___c_c
mov rcx, rbx
lea r8d, [r9 + 3]
call fcn.1400100f0
mov r8, rdi
mov dword [rsp + 0x58], r15d
inc r8
cmp byte [rbx + r8], r15b
jne 0x14007a8a1
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 2
mov byte [rsi + 0x4a8], r15b
lea rcx, [rsi + 0x28]
call fcn.140025da0
lea r8, [0x14012dcb0]
mov rdx, r15
movzx ecx, word [rax + rdx*2]
cmp cx, word [r8 + rdx*2]
jne 0x14007a927
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [r8 + rdx*2 + 2]
jne 0x14007a927
add rdx, 2
cmp rdx, 0xa
jne 0x14007a8e0
mov r9d, edx
lea r8d, [rdx + 3]
lea rdx, str.__Sample_range0..255_c_c
mov rcx, rbx
call fcn.1400100f0
mov dword [rsi + 0x290], 1
jmp 0x14007aaf8
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov r8, rax
lea r9, [0x14012bb38]
mov rdx, rdi
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r9 + rdx*2 + 2]
jne 0x14007a96a
add rdx, 2
cmp rdx, 0xb
je 0x14007aa69
movzx eax, word [r8 + rdx*2]
cmp ax, word [r9 + rdx*2]
je 0x14007a942
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov r8, rax
lea r9, [0x14012dc98]
mov rdx, rdi
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r9 + rdx*2 + 2]
jne 0x14007a9b8
add rdx, 2
cmp rdx, 0xb
je 0x14007aa8e
movzx eax, word [r8 + rdx*2]
cmp ax, word [r9 + rdx*2]
je 0x14007a990
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov r8, rax
lea r9, [0x140130280]
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r9 + rdx*2 + 2]
jne 0x14007aa08
add rdx, 2
cmp rdx, 0xb
je 0x14007aab3
movzx eax, word [r8 + rdx*2]
cmp ax, word [r9 + rdx*2]
je 0x14007a9e0
mov edx, 2
lea rcx, [rsi + 0x28]
call fcn.140025da0
mov r8, rax
mov rdx, rdi
nop dword [rax]
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r14 + rdx*2 + 2]
jne 0x14007aa48
add rdx, 2
cmp rdx, 0xd
je 0x14007aace
movzx eax, word [r8 + rdx*2]
cmp ax, word [r14 + rdx*2]
je 0x14007aa20
mov eax, 0x80040208
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
ret
mov r9d, 0xa
lea rdx, str.__Sample_range_32768..32767_c_c
mov rcx, rbx
lea r8d, [r9 + 3]
call fcn.1400100f0
mov dword [rsi + 0x290], 2
jmp 0x14007aaf8
mov r9d, 0xa
lea rdx, str.__Sample_range_8388608..8388607_c_c
mov rcx, rbx
lea r8d, [r9 + 3]
call fcn.1400100f0
mov dword [rsi + 0x290], 3
jmp 0x14007aaf8
mov r9d, 0xa
lea rdx, str.__Sample_range_2147483648..2147483647_c_c
mov rcx, rbx
lea r8d, [r9 + 3]
call fcn.1400100f0
jmp 0x14007aaee
mov r9d, 0xa
lea rdx, str.__Sample_range_1.0..1.0_c_c
mov rcx, rbx
lea r8d, [r9 + 3]
call fcn.1400100f0
mov byte [rsi + 0x4a8], 1
mov dword [rsi + 0x290], 4
mov dword [rsp + 0x58], r15d
mov r8, rdi
inc r8
cmp byte [rbx + r8], r15b
jne 0x14007ab00
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 0x258], 1
lea rax, str.Interleaved_stereo
mov r9d, dword [rsi + 0x260]
lea r8, str.Mono
cmova r8, rax
mov dword [rsp + 0x28], 0xa
lea rdx, str.___s_data_sampled_at__d_Hz_c_c
mov dword [rsp + 0x20], recv
mov rcx, rbx
call fcn.1400100f0
mov r8, rdi
mov dword [rsp + 0x58], r15d
inc r8
cmp byte [rbx + r8], r15b
jne 0x14007ab67
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 0xa
mov dword [rsp + 0x28], 0xa
lea rdx, str.___c_c_c_c
mov dword [rsp + 0x20], recv
mov rcx, rbx
lea r8d, [r9 + 3]
call fcn.1400100f0
mov dword [rsp + 0x58], r15d
inc rdi
cmp byte [rbx + rdi], r15b
jne 0x14007abb5
mov rcx, qword [rsi + 0x38]
lea r9, [rsp + 0x58]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsi + 0x290]
mov rcx, rsi
mov r9d, dword [rsi + 0x260]
mov r8d, dword [rsi + 0x258]
shl edx, 3
call fcn.140024600
mov rcx, rsi
call fcn.140079fa0
mov rcx, rsi
call fcn.1400246e0
mov rcx, rsi
mov ebx, eax
call fcn.140079ed0
mov eax, ebx
jmp 0x14007aa4d