Function at 0x1801ea270
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
xor edx, edx
mov rcx, qword [rsp + 0x3d0]
call fcn.1801e68f0
movzx eax, al
test eax, eax
jne 0x1801ea2da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov dl, 1
mov rcx, qword [rsp + 0x3d0]
call fcn.1801e68f0
movzx eax, al
test eax, eax
je 0x1801ea2c5
xor al, al
jmp 0x1801ea70a
cmp dword [rsp + 0x24], 2
je 0x1801ea2d3
cmp dword [rsp + 0x24], 3
jne 0x1801ea2da
mov al, 1
jmp 0x1801ea70a
mov edx, 2
mov rcx, qword [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1801ea306
mov al, 1
jmp 0x1801ea70a
lea rcx, [rsp + 0x30]
call fcn.180073cf0
nop
lea rcx, [rsp + 0x50]
call fcn.180073cf0
nop
lea rdx, [rsp + 0x1b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1801ea345
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x30]
call fcn.1800aac90
lea rcx, [rsp + 0x30]
call fcn.180003ba0
test rax, rax
je 0x1801ea3c2
lea rcx, [rsp + 0x30]
call fcn.180003ba0
dec rax
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800a6630
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1801ea3c2
lea rcx, [rsp + 0x30]
call fcn.180003ba0
dec rax
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.1800aacc0
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.180073df0
lea rcx, [rsp + 0xd0]
call fcn.180073fc0
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1801e63d0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
lea r8, [0x180326924]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x190]
call fcn.1800f24b0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.180074060
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1801ec300
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180073df0
lea rcx, [rsp + 0x110]
call fcn.180073fc0
nop
lea rcx, [rsp + 0x190]
call fcn.180073fc0
nop
lea rcx, [rsp + 0x150]
call fcn.180073fc0
lea rcx, [rsp + 0x50]
call fcn.180003ba0
test rax, rax
je 0x1801ea4f4
lea rcx, [rsp + 0x50]
call fcn.180003ba0
dec rax
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800a6630
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1801ea4f4
lea rcx, [rsp + 0x50]
call fcn.180003ba0
dec rax
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x50]
call fcn.1800aacc0
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x50]
call fcn.180073df0
lea rcx, [rsp + 0xf0]
call fcn.180073fc0
lea rcx, [rsp + 0x30]
call fcn.180074060
mov dl, 1
mov rcx, rax
call fcn.1801e68f0
movzx eax, al
test eax, eax
je 0x1801ea5d9
call fcn.18017d27c
mov dword [rsp + 0x2c], eax
call fcn.18017d27c
shl eax, 0xf
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
mov r8d, eax
lea rdx, str.__tmp__08x
lea rcx, [rsp + 0x130]
call fcn.1801e9260
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x30]
call fcn.180073fe0
nop
lea rcx, [rsp + 0x130]
call fcn.180073fc0
lea rcx, [rsp + 0x30]
call fcn.180074060
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1801ea5d9
lea rcx, [rsp + 0x30]
call fcn.180074060
mov r8d, 4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x50]
call fcn.180073fc0
nop
lea rcx, [rsp + 0x30]
call fcn.180073fc0
movzx eax, byte [rsp + 0x21]
jmp 0x1801ea70a
lea rcx, [rsp + 0x50]
call fcn.180074060
mov dl, 1
mov rcx, rax
call fcn.1801e68f0
movzx eax, al
test eax, eax
je 0x1801ea6c1
call fcn.18017d27c
mov dword [rsp + 0x28], eax
call fcn.18017d27c
shl eax, 0xf
mov ecx, dword [rsp + 0x28]
or ecx, eax
mov eax, ecx
mov r8d, eax
lea rdx, str.__tmp__08x
lea rcx, [rsp + 0x170]
call fcn.1801e9260
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.180073fe0
nop
lea rcx, [rsp + 0x170]
call fcn.180073fc0
lea rcx, [rsp + 0x50]
call fcn.180074060
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1801ea6c1
lea rcx, [rsp + 0x50]
call fcn.180074060
mov r8d, 4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x50]
call fcn.180073fc0
nop
lea rcx, [rsp + 0x30]
call fcn.180073fc0
movzx eax, byte [rsp + 0x22]
jmp 0x1801ea70a
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1801ea6e2
mov byte [rsp + 0x20], 1
jmp 0x1801ea6e7
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x23], al
lea rcx, [rsp + 0x50]
call fcn.180073fc0
nop
lea rcx, [rsp + 0x30]
call fcn.180073fc0
movzx eax, byte [rsp + 0x23]
add rsp, 0x3c8
ret