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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rsi, rcx
mov rcx, qword [0x100028c90]
lea rax, [0x100028c90]
cmp rcx, rax
je 0x10000da5a
bt dword [rcx + 0x1c], 0x1d
jae 0x10000da5a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100005dc8]
mov edx, 0x14
call fcn.10000963c
lea rdx, [0x100006cd0]
lea rcx, [rsp + 0x50]
mov r9d, 1
mov r8d, 0x1bb
call fcn.10000cb94
xor r12d, r12d
lea r11, [0x100005d20]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x30], r11
cmp rsi, r12
jne 0x10000dab2
mov ebx, 0x80070057
mov eax, 0x1c3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x56], ax
jmp 0x10000dc75
mov eax, 0x1c4
mov edx, 3
mov rcx, rsi
mov word [rsp + 0x54], ax
mov dword [rsp + 0x50], r12d
call fcn.10000d738
lea rdi, [0x100005de8]
lea rdx, [0x100006ca0]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rdi
call fcn.10000ff50
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1cb
jl 0x10000daa8
mov rcx, qword [rsp + 0x30]
mov word [rsp + 0x54], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10000db3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10000db26
cmp eax, 3
jne 0x10000db3c
mov ebx, r12d
mov eax, 0x1d3
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x54], ax
jmp 0x10000dc75
lea rdx, [0x100006ca0]
lea rcx, [rsp + 0x30]
mov r9d, 2
mov r8, rsi
mov qword [rsp + 0x20], rdi
call fcn.10000ff50
mov ebx, eax
mov dword [rsp + 0x50], eax
cmp eax, r12d
mov eax, 0x1d8
jl 0x10000daa8
mov rdi, qword [rsp + 0x30]
mov word [rsp + 0x54], ax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r15d, 0x1df
mov ebp, 2
lea r14d, [r15 + 0x14]
lea rax, [0x100005de8]
lea r9d, [rbp - 1]
lea rdx, [0x100006ca0]
lea rcx, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.10000ff50
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x10000dc6f
mov rcx, qword [rsp + 0x40]
mov r8d, 1
mov rdx, rdi
mov word [rsp + 0x54], r15w
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, r12d
jne 0x10000dc07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10000dbf8
cmp eax, 0x20
je 0x10000dbf8
cmp eax, 5
jne 0x10000dc4e
mov eax, 0x1ec
mov dword [rsp + 0x50], r12d
mov word [rsp + 0x54], ax
mov rcx, rdi
call fcn.10000d3c4
cmp dword [rsp + 0x38], r12d
je 0x10000dc1f
mov dword [rsp + 0x38], r12d
mov word [rdi], r12w
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1000104c0
cmp eax, r12d
mov ebx, eax
mov dword [rsp + 0x50], eax
jl 0x10000dc67
add ebp, 0xffffffff
mov word [rsp + 0x54], r14w
je 0x10000dc75
mov rdi, qword [rsp + 0x30]
jmp 0x10000db91
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov eax, 0x1ec
jmp 0x10000daa4
mov word [rsp + 0x56], r14w
jmp 0x10000dc75
mov word [rsp + 0x56], r15w
lea rcx, [rsp + 0x30]
call fcn.10000f9a4
lea rcx, [rsp + 0x40]
call fcn.10000f9a4
lea rcx, [rsp + 0x50]
call fcn.10000ccac
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret