Function at 0x14001a764
Capabilities:
Check if file exists
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r9, r8
mov qword [rsp + 0x50], r8
mov r13, rdx
mov r14, rcx
lea rbx, [0x14017b048]
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x14001a7e1
test byte [rcx + 0x1c], 1
je 0x14001a7e1
cmp byte [rcx + 0x19], 4
jb 0x14001a7e1
mov edx, 0xfe
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c10
mov rcx, qword [0x14017b048]
mov r9, qword [rsp + 0x50]
or rax, 0xffffffffffffffff
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
and qword [rsp + 0x48], 0
xor r12b, r12b
movups xmm0, xmmword [0x14015af68]
movdqu xmmword [rsp + 0x70], xmm0
and dword [rsp + 0x44], 0
movq rax, xmm0
cmp qword [r13], rax
jne 0x14001a859
mov rax, qword [r13 + 8]
cmp rax, qword [0x14015af70]
jne 0x14001a859
cmp rcx, rbx
je 0x14001a84f
test byte [rcx + 0x1c], 1
je 0x14001a84f
cmp byte [rcx + 0x19], 2
jb 0x14001a84f
mov edx, 0xff
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c10
mov rcx, qword [0x14017b048]
mov edi, 0x80070057
jmp 0x14001af80
test byte [r14 + 0x154], 1
je 0x14001a887
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, r9
call fcn.1400889dc
mov edi, eax
test eax, eax
js 0x14001af57
mov r15, qword [rsp + 0x48]
jmp 0x14001a930
lea r8, [rsp + 0x48]
lea rdx, str.TempMediaId
mov rcx, qword [r14 + 0x248]
call fcn.140088abc
mov edi, eax
test eax, eax
js 0x14001af57
mov r15, qword [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a930
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x14001a929
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001a916
test byte [rcx + 0x1c], 1
je 0x14001a916
cmp byte [rcx + 0x19], 2
jb 0x14001a916
mov edx, 0x100
mov dword [rsp + 0x20], ebx
mov r9, r15
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
mov rcx, qword [0x14017b048]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x14001aebe
lea rbx, [0x14017b048]
cmp dword [r14 + 0x150], 4
setne al
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x30], al
mov dword [rsp + 0x20], 0x80
mov r9d, 2
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r15
call fcn.14008ca78
mov edi, eax
test eax, eax
jns 0x14001a9b7
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x14001aa51
test byte [rcx + 0x1c], 1
je 0x14001aa51
cmp byte [rcx + 0x19], 2
jb 0x14001aa51
mov edx, 0x101
mov dword [rsp + 0x20], eax
mov r9, r15
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
mov rbx, qword [rsp + 0x58]
jmp 0x14001ae94
mov r12b, byte [r14 + 0x154]
and r12b, 1
mov byte [rsp + 0x40], r12b
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 0x10
mov rdx, r13
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14001aa5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001aa43
test byte [rcx + 0x1c], 1
je 0x14001aa43
cmp byte [rcx + 0x19], 2
jb 0x14001aa43
mov edx, 0x102
mov dword [rsp + 0x20], ebx
mov r9, r15
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
mov rcx, qword [0x14017b048]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
mov rbx, qword [rsp + 0x58]
jmp 0x14001ae9b
mov r9d, dword [rsp + 0x44]
cmp r9d, 0x10
je 0x14001aab8
mov edi, 0x8007045d
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001ae9b
test byte [rcx + 0x1c], 1
je 0x14001ae9b
cmp byte [rcx + 0x19], 2
jb 0x14001ae9b
mov edx, 0x103
mov dword [rsp + 0x20], 0x10
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140010290
jmp 0x14001ae94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop dword [rax + rax]
test eax, eax
jne 0x14001ab37
call qword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001aa43
test byte [rcx + 0x1c], 1
je 0x14001aa43
cmp byte [rcx + 0x19], 2
jb 0x14001aa43
mov edx, 0x104
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
mov r9, r15
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140010a44
jmp 0x14001aa3c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x48], rbx
test byte [r14 + 0x154], 1
jne 0x14001abe0
lea r8d, [rbx + 2]
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001abdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001a916
test byte [rcx + 0x1c], 1
je 0x14001a916
cmp byte [rcx + 0x19], 2
jb 0x14001a916
mov edx, 0x105
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov r9, r15
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005e80
jmp 0x14001a90f
mov byte [rsp + 0x40], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x2000000
mov edx, 0x80000000
mov r9d, 3
lea r8d, [r9 - 2]
mov r12, qword [rsp + 0x50]
mov rcx, r12
call fcn.14008ca78
mov edi, eax
test eax, eax
jns 0x14001ac65
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001ae76
test byte [rcx + 0x1c], 1
je 0x14001ae76
cmp byte [rcx + 0x19], 2
jb 0x14001ae76
mov edx, 0x106
mov dword [rsp + 0x20], edi
mov r9, r12
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
jmp 0x14001ae6f
and dword [rsp + 0x44], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 0x10
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14001ace4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001ae76
test byte [rcx + 0x1c], 1
je 0x14001ae76
cmp byte [rcx + 0x19], 2
jb 0x14001ae76
mov edx, 0x107
jmp 0x14001ac49
cmp dword [rsp + 0x44], 0x10
jne 0x14001adf5
mov rax, qword [rsp + 0x70]
cmp rax, qword [r13]
jne 0x14001adf5
mov rax, qword [rsp + 0x78]
cmp rax, qword [r13 + 8]
jne 0x14001adf5
test byte [r14 + 0x154], 0x80
je 0x14001ae6f
cmp byte [r14 + 0x114], 0
je 0x14001ae6f
mov ecx, 0x40
call fcn.14014b734
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001ad4a
mov rcx, rax
call fcn.14003bf6c
mov r12, rax
jmp 0x14001ad4d
xor r12d, r12d
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call fcn.140011548
mov edi, eax
test eax, eax
js 0x14001ae6f
mov r8d, 0x10
mov rdx, r13
mov rcx, r12
call fcn.14001189c
mov edi, eax
test eax, eax
jns 0x14001adc3
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001ae76
test byte [rcx + 0x1c], 1
je 0x14001ae76
cmp byte [rcx + 0x19], 2
jb 0x14001ae76
mov edx, 0x109
mov r9d, edi
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
jmp 0x14001ae6f
lea rbx, [r14 + 0x308]
mov r14, qword [rbx + 8]
cmp r14, qword [rbx + 0x10]
jb 0x14001ade8
lea rdx, [r14 + 1]
mov rcx, rbx
call fcn.14000fbf0
test al, al
je 0x14001afc8
mov rax, qword [rbx]
mov qword [rax + r14*8], r12
inc qword [rbx + 8]
jmp 0x14001ae6a
mov edi, 0x8007045d
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14001ae76
test byte [rcx + 0x1c], 1
je 0x14001ae76
cmp byte [rcx + 0x19], 2
jb 0x14001ae76
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400886e8
mov rbx, rax
mov rdx, r13
lea rcx, [rbp - 0x10]
call fcn.1400886e8
mov edx, 0x108
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x10
mov r9, rax
lea r8, [0x1401563e0]
mov rcx, qword [0x14017b048]
mov rcx, qword [rcx + 0x10]
call fcn.140010adc
mov rbx, qword [rsp + 0x48]
mov rcx, qword [0x14017b048]
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x14001aeb9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov r12b, byte [rsp + 0x40]
mov rcx, qword [0x14017b048]
cmp rbx, 0xffffffffffffffff
je 0x14001aebe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
jmp 0x14001aebe
mov r12b, byte [rsp + 0x40]
test edi, edi
jns 0x14001af5e
test r12b, r12b
je 0x14001af5e
lea rbx, [0x14017b048]
cmp rcx, rbx
je 0x14001af05
test byte [rcx + 0x1c], 1
je 0x14001af05
cmp byte [rcx + 0x19], 4
jb 0x14001af05
mov edx, 0x10a
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x50]
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14008ce10
test eax, eax
jns 0x14001af4e
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x14001af65
test byte [rcx + 0x1c], 1
je 0x14001af65
cmp byte [rcx + 0x19], 2
jb 0x14001af65
mov edx, 0x10b
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x50]
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140005d40
mov rcx, qword [0x14017b048]
jmp 0x14001af65
mov r15, qword [rsp + 0x48]
jmp 0x14001af4e
lea rbx, [0x14017b048]
test r15, r15
je 0x14001af80
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x14001afa6
test byte [rcx + 0x1c], 1
je 0x14001afa6
cmp byte [rcx + 0x19], 4
jb 0x14001afa6
mov edx, 0x10c
lea r8, [0x1401563e0]
mov rcx, qword [rcx + 0x10]
call fcn.140004c10
mov eax, edi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14014bb60
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001950
int3