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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x460
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov ebx, edx
mov rsi, rcx
lea rbp, [0x10000ac30]
test rcx, rcx
jne 0x1000a7016
lea r8, [0x10000ac70]
mov edx, 0xc2
mov rcx, rbp
call fcn.10009a050
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0xfd
jb 0x1000a7045
lea r8, [0x10000ac80]
mov edx, 0xc3
mov rcx, rbp
call fcn.10009a050
cmp ebx, 2
jae 0x1000a705e
lea r8, [0x10000aca8]
mov edx, 0xc4
mov rcx, rbp
call fcn.10009a050
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
lea r12, [0x1000036e8]
cmp rcx, rbp
je 0x1000a7095
test byte [rcx + 0x1c], 1
je 0x1000a7095
cmp byte [rcx + 0x19], 4
jb 0x1000a7095
mov rcx, qword [rcx + 0x10]
mov edx, 0x11
mov r8, r12
call fcn.10001c854
mov r15d, 0x208
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8, r15
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
mov r8, r15
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [0x100003558]
lea r8, [0x10000acb8]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
mov r9, rsi
mov edx, 0x104
call fcn.100043f10
mov edi, eax
test eax, eax
js 0x1000a72b9
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000a7140
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a72e2
test byte [rcx + 0x1c], 1
je 0x1000a72c0
cmp byte [rcx + 0x19], 4
jb 0x1000a72c0
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0x12
mov r8, r12
call fcn.10001db08
jmp 0x1000a72b9
lea rcx, [rsp + 0x30]
mov r8, r15
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [0x100003558]
lea r8, [0x10000acb8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
mov r9, rsi
mov edx, 0x104
mov dword [rsp + 0x20], ebx
call fcn.100043f10
mov edi, eax
test eax, eax
js 0x1000a72b9
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000a71c1
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a71c8
test byte [rcx + 0x1c], 1
je 0x1000a71c8
cmp byte [rcx + 0x19], 3
jb 0x1000a71c8
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x13]
lea r9, [rsp + 0x30]
mov r8, r12
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
test ebx, ebx
je 0x1000a72c0
lea rcx, [0x100003558]
lea eax, [rbx - 1]
lea r8, [0x10000acb8]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x240]
mov r9, rsi
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.100043f10
mov edi, eax
test eax, eax
js 0x1000a72b9
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1000a7231
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000a726c
lea rcx, [rsp + 0x30]
call fcn.1000a6e94
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x240]
mov r8, r15
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x240]
mov r8, r15
xor edx, edx
call sub.msvcrt.dll_memset
add ebx, 0xffffffff
je 0x1000a72b9
jmp 0x1000a71d0
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a72e2
test byte [rcx + 0x1c], 1
je 0x1000a72c0
cmp byte [rcx + 0x19], 3
jb 0x1000a72c0
mov rcx, qword [rcx + 0x10]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x240]
mov edx, 0x14
mov r8, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.10001e39c
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a72e2
test byte [rcx + 0x1c], 1
je 0x1000a72e2
cmp byte [rcx + 0x19], 4
jb 0x1000a72e2
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r8, r12
call fcn.10001c854
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret