Function at 0x1400a52d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x298]
sub rsp, 0x398
cmp byte [rcx + 0xc], 0
mov r13, r9
mov rbx, qword [rbp + 0x2f8]
mov r14, r8
mov rdi, rcx
jne 0x1400a5399
cmp byte [rcx + 0xe], 0
jne 0x1400a5399
mov rdx, rbx
mov rcx, r8
call fcn.1400f579c
test eax, eax
jne 0x1400a5399
cmp byte [rdi + 0x18d], al
jne 0x1400a55ea
mov rcx, qword [rdi + 0x1e08]
lea r9, [0x140152f80]
mov dword [rsp + 0x58], 0xffffffff
lea rdx, str.Input_and_output_file_names_and_paths_are_the_same_
mov dword [rsp + 0x50], 0xffffffff
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov r8, r14
mov dword [rsp + 0x40], 0xffffffff
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 1
call fcn.140090950
mov eax, 1
add rsp, 0x398
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor r15d, r15d
cmp eax, 0xffffffff
je 0x1400a54bc
cmp byte [rdi + 0x9bc], r15b
jne 0x1400a55ea
cmp byte [rdi + 0xc], r15b
jne 0x1400a54bc
cmp byte [rdi + 0x18d], r15b
jne 0x1400a55ea
mov r8, rbx
lea rdx, str.The_following_output_file_aldready_exists:_n_________n_s_n_________nWhat_would_you_like_to_do_with_it_
lea rcx, [rbp - 0x80]
call fcn.140010090
mov dword [rsp + 0x58], 0xffffffff
lea rax, str.Replace_All
mov dword [rsp + 0x50], 3
lea rcx, [0x140152f80]
mov qword [rsp + 0x48], rax
lea r9, str.Replace
mov dword [rsp + 0x40], 2
lea rax, str.Rename
mov qword [rsp + 0x38], rax
lea r8, str.Replace_existing_file_
mov dword [rsp + 0x30], 1
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi + 0x1e08]
mov dword [rsp + 0x20], r15d
call fcn.140090950
test eax, eax
je 0x1400a5595
sub eax, 1
je 0x1400a5383
sub eax, 1
je 0x1400a555e
cmp eax, 1
jne 0x1400a546e
mov byte [rdi + 0xc], al
mov rcx, qword [rdi + 0x1e00]
mov r8, rbx
mov edx, 0x14c
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rdi + 0x1e00]
mov edx, 0x14c
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rdi + 0x1e00]
call qword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [r13 + 0x10]
lea rdx, [rbp + 0x2d0]
mov r9d, 0xfffffffe
mov dword [rsp + 0x20], eax
mov r8, r14
mov qword [rsp + 0x3e0], rsi
lea rcx, [0x1401a9708]
call fcn.140022c80
movzx r9d, byte [rdi + 0x18d]
lea rdx, str.Reading_file___Awave_Audio
mov ecx, eax
mov r8, r14
call fcn.1400a4fb0
test al, al
je 0x1400a5540
mov rcx, qword [rbp + 0x2d0]
mov rax, qword [rcx]
call qword [rax + 0x70]
movzx r9d, byte [rdi + 0x18d]
lea rdx, str.Reading_file___Awave_Audio
mov ecx, eax
mov r8, r14
call fcn.1400a4fb0
test al, al
jne 0x1400a5600
mov rcx, qword [rbp + 0x2d0]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov eax, 0x80040200
mov rsi, qword [rsp + 0x3e0]
add rsp, 0x398
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [0x1401a94b8]
lea rax, str.All_files
mov byte [rsp + 0x30], 1
lea r9, str.Please_select_a_new_output_file_name
mov qword [rsp + 0x28], rbx
mov r8d, 0x104
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.14008fc00
jmp 0x1400a546e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a546e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a546e
movzx r9d, byte [rdi + 0x18d]
lea rdx, str.Replacing_file___Awave_Audio
mov r8, r14
mov ecx, 0x80040204
call fcn.1400a4fb0
mov eax, 0x80040204
add rsp, 0x398
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
mov eax, 2
add rsp, 0x398
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
movzx eax, word [rdi + 0xbd2]
mov ecx, 0x20
mov esi, dword [rbp + 0x318]
mov qword [rsp + 0x390], r12
mov r12, qword [rbp + 0x308]
mov dword [0x140194ce0], eax
mov dword [0x14018d2d8], ecx
cmp eax, 0x3e7
jne 0x1400a56ea
mov dword [0x140194ce0], 3
cmp byte [rdi + 0xf], r15b
je 0x1400a5655
cmp byte [rdi + 0xbdc], r15b
je 0x1400a56ea
cmp byte [rdi + 0x1e], r15b
jne 0x1400a56ea
cmp byte [rdi + 0xbe0], r15b
jne 0x1400a56ea
cmp dword [rbp + 0x310], 1
mov rbx, qword [rbp + 0x2d0]
jne 0x1400a5686
cmp dword [rbx + 0x20], 1
jbe 0x1400a5686
test esi, esi
js 0x1400a56f1
mov rax, qword [rbx]
mov edx, 2
mov rcx, rbx
call qword [rax + 0x50]
mov r9, rax
cmp r12, rax
je 0x1400a56e3
test r12, r12
je 0x1400a56c8
test rax, rax
je 0x1400a56c8
mov r8, rax
mov rcx, r12
sub r8, r12
nop
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x1400a56c4
add rcx, 2
test eax, eax
jne 0x1400a56b0
test edx, edx
je 0x1400a56e3
mov rcx, r9
call fcn.1400ade40
mov ecx, dword [0x14018d2d8]
test eax, eax
cmovg ecx, eax
mov dword [0x14018d2d8], ecx
jmp 0x1400a56ea
mov dword [0x140194ce0], r15d
mov rbx, qword [rbp + 0x2d0]
cmp byte [r13 + 0xd8], r15b
je 0x1400a5708
mov eax, dword [r13 + 0x28]
mov dword [rbx + 0x28], eax
mov rbx, qword [rbp + 0x2d0]
mov eax, dword [r13 + 0x30]
test eax, eax
je 0x1400a572f
cmp dword [rbx + 0x24], r15d
jne 0x1400a5725
mov ecx, dword [rbx + 0x20]
call fcn.140027e00
mov dword [rbx + 0x24], eax
mov eax, dword [r13 + 0x30]
mov dword [rbx + 0x24], eax
mov rbx, qword [rbp + 0x2d0]
mov r12, 0xffffffffffffffff
cmp qword [r13 + 0xd0], r15
je 0x1400a57fa
mov rax, qword [rbx]
lea edx, [r12 + 4]
mov rcx, rbx
call qword [rax + 0x50]
mov r9, rax
test rax, rax
je 0x1400a57f3
mov rdx, r12
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x1400a5760
mov rax, r12
nop dword [rax]
cmp word [r14 + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x1400a5770
lea rax, [r14 + rax*2]
cmp rax, r14
jbe 0x1400a5797
sub rax, 2
cmp word [rax], 0x2e
je 0x1400a5794
cmp rax, r14
ja 0x1400a5785
cmp rax, r14
jne 0x1400a57b0
mov rcx, r12
nop dword [rax]
cmp word [r14 + rcx*2 + 2], r15w
lea rcx, [rcx + 1]
jne 0x1400a57a0
lea rax, [rax + rcx*2]
sub rax, r14
sar rax, 1
cmp edx, eax
jg 0x1400a57f3
movsxd rcx, edx
mov rdx, r9
cdqe
sub rax, rcx
lea r8, [rcx + rcx]
lea rcx, [r14 + rax*2]
call fcn.1400ba3e0
test eax, eax
jne 0x1400a57f3
mov rcx, qword [rbp + 0x2d0]
lea edx, [rax + 3]
mov r8, qword [r13 + 0xd0]
add rcx, 0x58
mov r9d, r12d
call fcn.140026280
mov rbx, qword [rbp + 0x2d0]
cmp qword [r13 + 0xc0], r15
je 0x1400a5849
mov ebx, r15d
nop word [rax + rax]
mov rcx, qword [r13 + 0xc0]
mov edx, ebx
mov rax, qword [rcx]
call qword [rax]
test rax, rax
je 0x1400a583b
mov rcx, qword [rbp + 0x2d0]
mov r9d, r12d
add rcx, 0x58
mov r8, rax
mov edx, ebx
call fcn.140026280
inc ebx
cmp ebx, 0x1b
jl 0x1400a5810
mov rbx, qword [rbp + 0x2d0]
mov rax, qword [r13 + 0xc8]
test rax, rax
je 0x1400a5873
movups xmm0, xmmword [rax]
movups xmmword [rbx + 0x38], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbx + 0x48], xmm1
mov eax, dword [rax + 0x18]
mov dword [rbx + 0x50], eax
mov rbx, qword [rbp + 0x2d0]
cmp byte [rbp + 0x320], r15b
je 0x1400a5963
mov rax, qword [rbx]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x50]
mov rbx, rax
test rax, rax
je 0x1400a595c
cmp word [rax], r15w
je 0x1400a595c
mov rsi, r12
nop word [rax + rax]
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x1400a58b0
movsxd rcx, esi
mov eax, 2
add rcx, 3
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400b609c
mov r12, rax
test rax, rax
je 0x1400a5956
mov rdx, rax
sub rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rbx]
mov word [rdx + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x1400a58f0
movsxd rcx, esi
mov eax, 0x20
mov esi, dword [rbp + 0x318]
mov r8d, 0x4c
test esi, esi
mov word [r12 + rcx*2], ax
mov eax, 0x52
cmove ax, r8w
mov word [r12 + rcx*2 + 4], r15w
mov word [r12 + rcx*2 + 2], ax
lea r9d, [r8 - 0x4d]
mov rcx, qword [rbp + 0x2d0]
lea edx, [r9 + 4]
add rcx, 0x58
mov r8, r12
call fcn.140026280
mov rcx, r12
call fcn.1400b60a4
jmp 0x1400a595c
mov esi, dword [rbp + 0x318]
mov rbx, qword [rbp + 0x2d0]
mov rdx, r14
mov rcx, rbx
call fcn.1400b5b70
mov rbx, qword [rbp + 0x2d0]
mov rdx, qword [r13 + 0xb8]
mov r12, qword [rsp + 0x390]
mov r14d, dword [rbx + 0x28]
test rdx, rdx
je 0x1400a59d4
cmp byte [rdi + 0x1e], r15b
je 0x1400a5999
mov r8d, dword [rdi + 0x24]
jmp 0x1400a599f
mov r8d, 5
movzx r9d, byte [rdi + 0x18d]
mov rcx, rbx
call fcn.1400b57e0
mov rbx, rax
test rax, rax
jne 0x1400a59d4
mov rcx, qword [rbp + 0x2d0]
test rcx, rcx
je 0x1400a5540
mov rax, qword [rcx]
lea edx, [rbx + 1]
call qword [rax]
jmp 0x1400a5540
test esi, esi
js 0x1400a5a1b
mov ecx, 0x58
call fcn.1400b6058
test rax, rax
je 0x1400a59f9
mov edx, 1
mov rcx, rax
call fcn.14001fca0
mov rsi, rax
jmp 0x1400a59fc
mov rsi, r15
mov r8d, dword [rbp + 0x318]
xor edx, edx
mov rcx, rsi
call fcn.1400203b0
mov rdx, rsi
mov rcx, rbx
call fcn.140025ee0
mov rbx, rsi
cmp byte [rdi + 0x1e], r15b
je 0x1400a5a6d
cmp byte [rdi + 0x23], r15b
jne 0x1400a5a2f
cmp dword [rdi + 0x1f], r14d
jne 0x1400a5a35
jmp 0x1400a5a6d
cmp dword [rdi + 0x1f], r14d
jae 0x1400a5a6d
mov ecx, 0x178
call fcn.1400b6058
test rax, rax
je 0x1400a5a58
mov r8d, dword [rdi + 0x24]
mov rcx, rax
mov edx, dword [rdi + 0x1f]
call fcn.14002a530
mov rsi, rax
jmp 0x1400a5a5b
mov rsi, r15
mov rdx, rsi
mov rcx, rbx
call fcn.140025ee0
mov r14d, dword [rdi + 0x1f]
mov rbx, rsi
mov eax, dword [rbp + 0x300]
lea rdx, [rsp + 0x60]
mov r9, qword [rbp + 0x308]
lea rcx, [0x1401a9708]
mov r8, qword [rbp + 0x2f0]
mov dword [rsp + 0x20], eax
call fcn.140022e00
mov rsi, qword [rbp + 0x2f8]
lea rdx, str.Writing_file___Awave_Audio
movzx r9d, byte [rdi + 0x18d]
mov r8, rsi
mov ecx, eax
call fcn.1400a4fb0
test al, al
je 0x1400a5b0b
mov r9d, dword [rbp + 0x310]
lea rcx, [0x1401a9708]
mov r8, qword [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x20], r15d
call fcn.140022970
movzx r9d, byte [rdi + 0x18d]
lea rdx, str.Writing_file___Awave_Audio
mov ecx, eax
mov r8, rsi
call fcn.1400a4fb0
test al, al
jne 0x1400a5b16
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400a5b0b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
jmp 0x1400a553d
cmp byte [rdi + 0xbe1], r15b
je 0x1400a5b7c
cmp byte [rdi + 0x19], r15b
je 0x1400a5b7c
mov ecx, 0x58
call fcn.1400b6058
test rax, rax
je 0x1400a5b6e
movss xmm1, dword [rdi + 0x145]
xorps xmm0, xmm0
mulss xmm1, dword [0x14012f29c]
movzx r9d, byte [rdi + 0x18e]
mov ecx, r14d
cvtsi2ss xmm0, rcx
mov rcx, rax
mulss xmm0, dword [rdi + 0x9c5]
cvttss2si r8, xmm0
call fcn.14001b6c0
jmp 0x1400a5b71
mov rax, r15
mov rdx, rax
mov rcx, rbx
call fcn.140025ee0
mov rax, qword [0x1401aa2a8]
lea r8, [0x1401aa260]
movzx r9d, byte [0x1401aa2a1]
lea rcx, [0x1401aa200]
movzx edx, byte [0x1401aa2a0]
xor sil, sil
mov qword [rsp + 0x20], rax
call fcn.140096dd0
test eax, eax
je 0x1400a5c20
mov rax, qword [rbp + 0x2d0]
xorps xmm1, xmm1
movss xmm2, dword [0x140132b64]
xorps xmm0, xmm0
cvtsi2ss xmm1, qword [rax + 0x18]
mov eax, r14d
cvtsi2ss xmm0, rax
divss xmm1, xmm0
comiss xmm1, xmm2
jbe 0x1400a5c20
mov sil, 1
cmp byte [rdi + 0x13c], r15b
je 0x1400a5bf2
comiss xmm2, dword [rdi + 0x13d]
jae 0x1400a5c20
mov rcx, qword [rdi + 0x1e00]
lea r8, str.Note_
xor r9d, r9d
mov byte [rdi + 0x13c], sil
lea rdx, str._nThe_unregistered_version_of_this_software_will_only_convert_the_first_60s_of_the_input_file...
mov dword [rdi + 0x13d], 0x42700000
call fcn.140091170
cmp byte [rdi + 0xbe1], r15b
jne 0x1400a5c32
test sil, sil
je 0x1400a5cdf
cmp byte [rdi + 0x13c], r15b
je 0x1400a5cdf
xorps xmm0, xmm0
comiss xmm0, dword [rdi + 0x13d]
jae 0x1400a5cdf
mov ecx, pe_nt_image_headers64
call fcn.1400b6058
mov rsi, rax
test rax, rax
je 0x1400a5ccf
cmp byte [rdi + 0x196], r15b
je 0x1400a5c96
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + 0x50]
xorps xmm0, xmm0
mov ecx, eax
cvtsi2sd xmm0, rcx
mulsd xmm0, qword [0x140131688]
addsd xmm0, qword [0x14012c8e0]
cvttsd2si rcx, xmm0
jmp 0x1400a5c99
mov ecx, r15d
movss xmm1, dword [rdi + 0x13d]
xorps xmm0, xmm0
cvtps2pd xmm1, xmm1
mov eax, r14d
mov r9d, ecx
xor edx, edx
mov rcx, rsi
cvtsi2sd xmm0, rax
mulsd xmm1, xmm0
addsd xmm1, qword [0x14012c8e0]
cvttsd2si r8, xmm1
call fcn.140020000
jmp 0x1400a5cd2
mov rax, r15
mov rcx, qword [rsp + 0x60]
mov rdx, rax
call fcn.140025eb0
mov ecx, 0x68
call fcn.1400b6058
test rax, rax
je 0x1400a5d09
mov r8d, dword [rbp + 0x328]
mov rcx, rax
mov rdx, qword [rdi + 0x1e00]
call fcn.1400a0230
mov rsi, rax
jmp 0x1400a5d0c
mov rsi, r15
mov rdx, rsi
mov rcx, rbx
call fcn.140025ee0
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400a14d0
mov rbx, r15
cmp byte [rdi + 0xf], bl
je 0x1400a5dce
mov eax, dword [rdi + 0xbd4]
movss xmm0, dword [rdi + 0xbd8]
mov dword [rsp + 0x68], eax
movzx eax, byte [rdi + 0xbdc]
mov byte [rsp + 0x6c], al
movzx eax, byte [rdi + 0x194]
mov byte [rsp + 0x74], al
movzx eax, byte [rdi + 0xbdd]
mov byte [rsp + 0x75], al
movzx eax, byte [rdi + 0x18]
mov byte [rsp + 0x76], al
movzx eax, byte [rdi + 0x9be]
test al, al
movss dword [rsp + 0x70], xmm0
sete byte [rsp + 0x77]
cmp byte [rdi + 0x9c9], bl
je 0x1400a5d90
mov byte [rsp + 0x78], 1
test al, al
je 0x1400a5d94
mov byte [rsp + 0x78], bl
movss xmm0, dword [0x14012c8dc]
mov ecx, 0x780
movss dword [rsp + 0x7c], xmm0
call fcn.1400b6058
test rax, rax
je 0x1400a5dc1
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140015800
mov rbx, rax
mov rcx, qword [rsp + 0x60]
mov rdx, rbx
call fcn.140025eb0
cmp byte [rdi + 0xbe1], r15b
je 0x1400a5e17
cmp byte [rdi + 0x9be], r15b
je 0x1400a5e17
mov ecx, 0x38
call fcn.1400b6058
test rax, rax
je 0x1400a5e0a
movss xmm1, dword [rdi + 0x9bf]
mov rcx, rax
mulss xmm1, dword [0x14012f29c]
call fcn.140014690
mov r15, rax
mov rcx, qword [rsp + 0x60]
mov rdx, r15
call fcn.140025eb0
mov rcx, qword [rbp + 0x2d8]
mov rax, qword [rsp + 0x60]
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rbx
jmp 0x1400a5545