Function at 0x100018df4
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 0x100018e45
bt dword [rcx + 0x1c], 0x1d
jae 0x100018e45
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000059e0]
mov edx, 0x14
call fcn.10000e61c
lea rdx, [0x100007250]
lea rcx, [rsp + 0x50]
mov r9d, 1
mov r8d, 0x1bb
call fcn.100018130
xor r12d, r12d
lea r11, [0x100005960]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x30], r11
cmp rsi, r12
jne 0x100018e9d
mov ebx, 0x80070057
mov eax, 0x1c3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x56], ax
jmp 0x10001905f
mov eax, 0x1c4
mov edx, 5
mov rcx, rsi
mov word [rsp + 0x54], ax
mov dword [rsp + 0x50], r12d
call fcn.100018b28
lea rdi, [0x100005a00]
lea rdx, [0x100007220]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rdi
call fcn.10001b3c4
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1cb
jl 0x100018e93
mov rcx, qword [rsp + 0x30]
mov word [rsp + 0x54], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100018f27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100018f11
cmp eax, 3
jne 0x100018f27
mov ebx, r12d
mov eax, 0x1d3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x54], ax
jmp 0x10001905f
mov ebp, 4
lea rdx, [0x100007220]
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9d, ebp
mov qword [rsp + 0x20], rdi
call fcn.10001b3c4
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1d8
jl 0x100018e93
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, [0x100005a00]
lea r9d, [rbp - 1]
lea rdx, [0x100007220]
lea rcx, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.10001b3c4
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x100019059
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 0x100018fef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100018fe4
cmp eax, 0x20
je 0x100018fe4
cmp eax, 5
jne 0x100019036
mov dword [rsp + 0x50], r12d
mov word [rsp + 0x54], r15w
mov rcx, rdi
call fcn.1000189c4
cmp dword [rsp + 0x38], r12d
je 0x100019007
mov dword [rsp + 0x38], r12d
mov word [rdi], r12w
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.10001b8e4
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x100019051
add ebp, 0xffffffff
mov word [rsp + 0x54], r13w
je 0x10001905f
mov rdi, qword [rsp + 0x30]
jmp 0x100018f7d
movzx ebx, ax
mov word [rsp + 0x56], r15w
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov dword [rsp + 0x50], ebx
jmp 0x10001905f
mov word [rsp + 0x56], r13w
jmp 0x10001905f
mov word [rsp + 0x56], r14w
lea rcx, [rsp + 0x30]
call fcn.10001ae4c
lea rcx, [rsp + 0x40]
call fcn.10001ae4c
lea rcx, [rsp + 0x50]
call fcn.100018248
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