Function at 0x14003aad4
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 rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r14, r8
mov qword [rsp + 0x60], r8
mov r13, rdx
mov rbx, rcx
lea rdx, [0x14017a048]
mov rcx, qword [0x14017a048]
cmp rcx, rdx
je 0x14003ab4a
test byte [rcx + 0x1c], 1
je 0x14003ab4a
cmp byte [rcx + 0x19], 4
jb 0x14003ab4a
mov edx, 0xfe
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140006b98
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
or rax, 0xffffffffffffffff
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
xor r15b, r15b
movups xmm0, xmmword [0x14015f068]
movdqu xmmword [rsp + 0x68], xmm0
and dword [rsp + 0x40], 0
movq rax, xmm0
cmp qword [r13], rax
jne 0x14003abc2
mov rax, qword [r13 + 8]
cmp rax, qword [0x14015f070]
jne 0x14003abc2
cmp rcx, rdx
je 0x14003abb8
test byte [rcx + 0x1c], 1
je 0x14003abb8
cmp byte [rcx + 0x19], 2
jb 0x14003abb8
mov edx, 0xff
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140006b98
mov rcx, qword [0x14017a048]
mov edi, 0x80070057
jmp 0x14003b2db
test byte [rbx + 0x154], 1
je 0x14003ac7f
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14008c1cc
mov edi, eax
test eax, eax
js 0x14003b2b4
mov r12, qword [rsp + 0x50]
cmp dword [rbx + 0x150], 4
setne al
lea rcx, [rsp + 0x48]
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, r12
call fcn.140092700
mov edi, eax
test eax, eax
jns 0x14003ad2c
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003adc0
test byte [rcx + 0x1c], 1
je 0x14003adc0
cmp byte [rcx + 0x19], 2
jb 0x14003adc0
mov edx, 0x101
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140011330
mov rax, qword [rsp + 0x48]
jmp 0x14003b206
lea r8, [rsp + 0x50]
lea rdx, str.TempMediaId
mov rcx, qword [rbx + 0x248]
call fcn.14008bdcc
mov edi, eax
test eax, eax
js 0x14003b2b4
mov r12, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14003abee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 2
je 0x14003abee
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003ad16
test byte [rcx + 0x1c], 1
je 0x14003ad16
cmp byte [rcx + 0x19], 2
jb 0x14003ad16
mov edx, 0x100
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.14003d060
mov rcx, qword [0x14017a048]
test edi, edi
jle 0x14003b22b
movzx edi, di
or edi, 0x80070000
jmp 0x14003b229
mov r15b, byte [rbx + 0x154]
and r15b, 1
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x10
mov rdx, r13
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003adca
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003adb3
test byte [rcx + 0x1c], 1
je 0x14003adb3
cmp byte [rcx + 0x19], 2
jb 0x14003adb3
mov edx, 0x102
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.14003d060
mov rcx, qword [0x14017a048]
test edi, edi
jle 0x14003adc0
movzx edi, di
or edi, 0x80070000
mov rax, qword [rsp + 0x48]
jmp 0x14003b20d
mov r9d, dword [rsp + 0x40]
cmp r9d, 0x10
je 0x14003ae1f
mov edi, 0x8007045d
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003adc0
test byte [rcx + 0x1c], 1
je 0x14003adc0
cmp byte [rcx + 0x19], 2
jb 0x14003adc0
mov edx, 0x103
mov dword [rsp + 0x20], 0x10
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.14003cbf0
mov rcx, qword [0x14017a048]
jmp 0x14003adc0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop dword [rax + rax]
test eax, eax
jne 0x14003aeb6
call qword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003ae98
test byte [rcx + 0x1c], 1
je 0x14003ae98
cmp byte [rcx + 0x19], 2
jb 0x14003ae98
mov edx, 0x104
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
mov r9, r12
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.14003d24c
mov rcx, qword [0x14017a048]
test edi, edi
jle 0x14003aea5
movzx edi, di
or edi, 0x80070000
mov rax, qword [rsp + 0x48]
lea rbx, [0x14017a048]
jmp 0x14003b20d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [rsp + 0x50], 0xffffffffffffffff
test byte [rbx + 0x154], 1
jne 0x14003af52
mov r8d, 1
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003af4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003ad16
test byte [rcx + 0x1c], 1
je 0x14003ad16
cmp byte [rcx + 0x19], 2
jb 0x14003ad16
mov edx, 0x105
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9, r12
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140011464
jmp 0x14003ad0f
mov r15b, 1
lea rax, [rsp + 0x58]
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 rcx, r14
call fcn.140092700
mov edi, eax
test eax, eax
jns 0x14003afd2
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003b1e8
test byte [rcx + 0x1c], 1
je 0x14003b1e8
cmp byte [rcx + 0x19], 2
jb 0x14003b1e8
mov edx, 0x106
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140011330
jmp 0x14003b1e1
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x10
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003b056
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14003b01d
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003b1e8
test byte [rcx + 0x1c], 1
je 0x14003b1e8
cmp byte [rcx + 0x19], 2
jb 0x14003b1e8
mov edx, 0x107
mov dword [rsp + 0x20], edi
jmp 0x14003afba
cmp dword [rsp + 0x40], 0x10
jne 0x14003b165
mov rax, qword [rsp + 0x68]
cmp rax, qword [r13]
jne 0x14003b165
mov rax, qword [rsp + 0x70]
cmp rax, qword [r13 + 8]
jne 0x14003b165
test byte [rbx + 0x154], 0x80
je 0x14003b1da
cmp byte [rbx + 0x114], 0
je 0x14003b1da
mov ecx, 0x40
call fcn.140001950
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14003b0ba
mov rcx, rax
call fcn.1400118e0
mov r14, rax
jmp 0x14003b0bd
xor r14d, r14d
mov rdx, qword [rsp + 0x60]
mov rcx, r14
call fcn.1400276b8
mov edi, eax
test eax, eax
js 0x14003b1da
mov r8d, 0x10
mov rdx, r13
mov rcx, r14
call fcn.1400350a4
mov edi, eax
test eax, eax
jns 0x14003b133
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003b1e8
test byte [rcx + 0x1c], 1
je 0x14003b1e8
cmp byte [rcx + 0x19], 2
jb 0x14003b1e8
mov edx, 0x109
mov r9d, eax
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140006bc4
jmp 0x14003b1e1
add rbx, 0x308
mov r13, qword [rbx + 8]
cmp r13, qword [rbx + 0x10]
jb 0x14003b158
lea rdx, [r13 + 1]
mov rcx, rbx
call fcn.14000c0fc
test al, al
je 0x14003b32a
mov rax, qword [rbx]
mov qword [rax + r13*8], r14
inc qword [rbx + 8]
jmp 0x14003b1da
mov edi, 0x8007045d
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14003b1e8
test byte [rcx + 0x1c], 1
je 0x14003b1e8
cmp byte [rcx + 0x19], 2
jb 0x14003b1e8
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call fcn.14008b8ac
mov rbx, rax
mov rdx, r13
lea rcx, [rbp - 0x10]
call fcn.14008b8ac
mov edx, 0x108
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x10
mov r9, rax
lea r8, [0x14015a530]
mov rcx, qword [0x14017a048]
mov rcx, qword [rcx + 0x10]
call fcn.14003d170
lea rbx, [0x14017a048]
mov rcx, qword [0x14017a048]
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x14003b229
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0x50]
mov rcx, qword [0x14017a048]
cmp rax, 0xffffffffffffffff
je 0x14003b229
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test edi, edi
jns 0x14003b2c0
test r15b, r15b
je 0x14003b2c0
cmp rcx, rbx
je 0x14003b269
test byte [rcx + 0x1c], 1
je 0x14003b269
cmp byte [rcx + 0x19], 4
jb 0x14003b269
mov edx, 0x10a
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x60]
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140011330
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140090640
test eax, eax
jns 0x14003b2b9
mov rcx, qword [0x14017a048]
cmp rcx, rbx
je 0x14003b2c0
test byte [rcx + 0x1c], 1
je 0x14003b2c0
cmp byte [rcx + 0x19], 2
jb 0x14003b2c0
mov edx, 0x10b
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x60]
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140011330
jmp 0x14003b2b9
mov r12, qword [rsp + 0x50]
mov rcx, qword [0x14017a048]
test r12, r12
je 0x14003b2db
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14003b308
test byte [rcx + 0x1c], 1
je 0x14003b308
cmp byte [rcx + 0x19], 4
jb 0x14003b308
mov edx, 0x10c
lea r8, [0x14015a530]
mov rcx, qword [rcx + 0x10]
call fcn.140006b98
mov eax, edi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140001d90
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140003714
int3