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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rsi, rcx
mov rcx, qword [0x10001f120]
lea rax, [0x10001f120]
cmp rcx, rax
je 0x100018e25
bt dword [rcx + 0x1c], 0x1d
jae 0x100018e25
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000059c0]
mov edx, 0x14
call fcn.10000e5fc
lea rdx, [0x100007230]
lea rcx, [rsp + 0x50]
mov r9d, 1
mov r8d, 0x1bb
call fcn.100018110
xor r12d, r12d
lea r11, [0x100005940]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x30], r11
cmp rsi, r12
jne 0x100018e7d
mov ebx, 0x80070057
mov eax, 0x1c3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x56], ax
jmp 0x10001903f
mov eax, 0x1c4
mov edx, 5
mov rcx, rsi
mov word [rsp + 0x54], ax
mov dword [rsp + 0x50], r12d
call fcn.100018b08
lea rdi, [0x1000059e0]
lea rdx, [0x100007200]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rdi
call fcn.10001b3a4
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1cb
jl 0x100018e73
mov rcx, qword [rsp + 0x30]
mov word [rsp + 0x54], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100018f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100018ef1
cmp eax, 3
jne 0x100018f07
mov ebx, r12d
mov eax, 0x1d3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x54], ax
jmp 0x10001903f
mov ebp, 4
lea rdx, [0x100007200]
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9d, ebp
mov qword [rsp + 0x20], rdi
call fcn.10001b3a4
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1d8
jl 0x100018e73
mov rdi, qword [rsp + 0x30]
mov word [rsp + 0x54], ax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14d, 0x1df
lea r15d, [r14 + 0xd]
lea r13d, [r14 + 0x14]
lea rax, [0x1000059e0]
lea r9d, [rbp - 1]
lea rdx, [0x100007200]
lea rcx, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.10001b3a4
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x100019039
mov rcx, qword [rsp + 0x40]
mov r8d, 1
mov rdx, rdi
mov word [rsp + 0x54], r14w
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, r12d
jne 0x100018fcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100018fc4
cmp eax, 0x20
je 0x100018fc4
cmp eax, 5
jne 0x100019016
mov dword [rsp + 0x50], r12d
mov word [rsp + 0x54], r15w
mov rcx, rdi
call fcn.1000189a4
cmp dword [rsp + 0x38], r12d
je 0x100018fe7
mov dword [rsp + 0x38], r12d
mov word [rdi], r12w
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.10001b8c4
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x100019031
add ebp, 0xffffffff
mov word [rsp + 0x54], r13w
je 0x10001903f
mov rdi, qword [rsp + 0x30]
jmp 0x100018f5d
movzx ebx, ax
mov word [rsp + 0x56], r15w
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov dword [rsp + 0x50], ebx
jmp 0x10001903f
mov word [rsp + 0x56], r13w
jmp 0x10001903f
mov word [rsp + 0x56], r14w
lea rcx, [rsp + 0x30]
call fcn.10001ae2c
lea rcx, [rsp + 0x40]
call fcn.10001ae2c
lea rcx, [rsp + 0x50]
call fcn.100018228
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret