Function at 0x10001fdd8
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 [0x10002e120]
lea rax, [0x10002e120]
cmp rcx, rax
je 0x10001fe29
bt dword [rcx + 0x1c], 0x1d
jae 0x10001fe29
mov rcx, qword [rcx + 0x10]
lea r8, [0x100005f28]
mov edx, 0x14
call fcn.10001031c
lea rdx, [0x100007fd8]
lea rcx, [rsp + 0x50]
mov r9d, 1
mov r8d, 0x1bb
call fcn.10001ed8c
xor r12d, r12d
lea r11, [0x100005e20]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x30], r11
cmp rsi, r12
jne 0x10001fe81
mov ebx, 0x80070057
mov eax, 0x1c3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x56], ax
jmp 0x100020043
mov eax, 0x1c4
mov edx, 5
mov rcx, rsi
mov word [rsp + 0x54], ax
mov dword [rsp + 0x50], r12d
call fcn.10001fb0c
lea rdi, [0x100005f48]
lea rdx, [0x100007fa8]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rdi
call fcn.1000284f0
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1cb
jl 0x10001fe77
mov rcx, qword [rsp + 0x30]
mov word [rsp + 0x54], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10001ff0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10001fef5
cmp eax, 3
jne 0x10001ff0b
mov ebx, r12d
mov eax, 0x1d3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x54], ax
jmp 0x100020043
mov ebp, 4
lea rdx, [0x100007fa8]
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9d, ebp
mov qword [rsp + 0x20], rdi
call fcn.1000284f0
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1d8
jl 0x10001fe77
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, [0x100005f48]
lea r9d, [rbp - 1]
lea rdx, [0x100007fa8]
lea rcx, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.1000284f0
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x10002003d
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 0x10001ffd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10001ffc8
cmp eax, 0x20
je 0x10001ffc8
cmp eax, 5
jne 0x10002001a
mov dword [rsp + 0x50], r12d
mov word [rsp + 0x54], r15w
mov rcx, rdi
call fcn.10001f798
cmp dword [rsp + 0x38], r12d
je 0x10001ffeb
mov dword [rsp + 0x38], r12d
mov word [rdi], r12w
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.10002897c
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x100020035
add ebp, 0xffffffff
mov word [rsp + 0x54], r13w
je 0x100020043
mov rdi, qword [rsp + 0x30]
jmp 0x10001ff61
movzx ebx, ax
mov word [rsp + 0x56], r15w
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov dword [rsp + 0x50], ebx
jmp 0x100020043
mov word [rsp + 0x56], r13w
jmp 0x100020043
mov word [rsp + 0x56], r14w
lea rcx, [rsp + 0x30]
call fcn.100027da0
lea rcx, [rsp + 0x40]
call fcn.100027da0
lea rcx, [rsp + 0x50]
call fcn.10001eea4
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