Function at 0x140020640
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x358], rbx
mov rax, qword [0x1402a6808]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov byte [rsp + 0x31], r9b
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x58], rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor r14d, r14d
lea rax, [0x1402bb710]
mov qword [rbp - 0x68], rax
mov rcx, rax
call fcn.14015e550
test eax, eax
je 0x1400206b6
mov ecx, eax
call fcn.14015e6bc
nop
mov byte [rsp + 0x30], 0
mov r13d, r14d
mov dword [rsp + 0x3c], r14d
xor r9d, r9d
lea r8, [rbp - 0x20]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, 0x7e
lea rcx, [rbp - 0x20]
call fcn.14019e1f0
test rax, rax
je 0x1400206ff
mov r8d, 0x104
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14002073f
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r13d, eax
mov dword [rsp + 0x3c], eax
cmp eax, 0xffffffff
je 0x14002073f
mov edx, eax
and edx, 6
setne byte [rsp + 0x30]
test edx, edx
je 0x14002073f
mov edx, eax
and edx, 0xfffffff9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [rdi + 0x4c]
lea rcx, [rsp + 0x68]
call fcn.140145a30
nop
mov edx, r14d
cmp ebx, 4
cmovne edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140146490
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x34], eax
lea r8, [0x1401e5530]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x68]
call fcn.1401462a0
test rax, rax
jne 0x14002078a
lea r14d, [rax + 1]
jmp 0x140020add
mov r9, qword [rdi + 0x18]
xor r8d, r8d
mov edx, 0x936
mov rcx, qword [rsi + 8]
call fcn.14000fa00
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7d6
mov rcx, qword [rsi + 8]
call fcn.14000fa00
mov r15, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9d8
mov rcx, qword [rsi + 8]
call fcn.14000fa00
mov rbx, rax
mov qword [rsp + 0x48], rax
mov r12, r14
mov r14d, 1
cmp dword [rsp + 0x34], 0xffffffff
jne 0x140020806
movsxd r8, r15d
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1401462d0
mov r12, rax
test r15d, r15d
jne 0x1400208dd
mov r12d, r14d
jmp 0x1400208dd
call fcn.14000ca10
mov qword [rsp + 0x40], rax
xor eax, eax
test r15d, r15d
jle 0x1400208d9
mov ecx, 0x20004
mov edi, eax
mov rsi, rbx
mov r14, qword [rsp + 0x40]
mov r13d, dword [rsp + 0x34]
nop
mov ebx, r15d
sub ebx, edi
cmp ebx, ecx
cmovg ebx, ecx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x34], eax
movsxd rdx, edi
add rdx, rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, 0xfde9
mov rcx, r14
call fcn.140028020
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x34]
mov r8d, r13d
mov rdx, rax
mov rcx, r14
call fcn.14002c080
sub ebx, dword [rsp + 0x40]
movsxd r8, dword [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1401462d0
mov r12, rax
add edi, ebx
cmp edi, r15d
mov eax, 0
mov ecx, 0x20004
jl 0x140020830
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r14d, 1
mov r13d, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x48]
test r15d, r15d
cmove r12, r14
movsxd r8, r15d
mov rdx, rbx
mov rcx, rsi
call fcn.14001e720
mov ebx, eax
lea rcx, [rsp + 0x68]
call fcn.140146250
cmp r12, 1
je 0x14002091d
mov r9, qword [rsi + 0x10]
xor r8d, r8d
mov edx, 0x936
mov rcx, qword [rsi + 8]
call fcn.14000fa00
mov r14d, 2
jmp 0x140020add
cmp byte [rsp + 0x30], 0
je 0x140020931
mov edx, r13d
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [rsp + 0x31], 0
je 0x140020957
mov r9, qword [rsi + 0x10]
xor r8d, r8d
mov edx, 0x936
mov rcx, qword [rsi + 8]
call fcn.14000fa00
xor ebx, ebx
mov r14d, ebx
jmp 0x140020add
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140020ba0
mov byte [rdi + 0x48], 0
movzx eax, byte [rdi + 8]
test al, al
je 0x14002098a
mov rcx, qword [rdi]
mov r8d, 2
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140094370
movzx eax, byte [rdi + 8]
mov dword [rdi + 0xa0], r14d
test al, al
je 0x1400209a9
mov rcx, qword [rdi]
mov r8d, 0x20
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140094370
mov rcx, rdi
call fcn.14001dce0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7de
mov rcx, qword [rsi + 8]
call fcn.14000fa00
mov r9, qword [rsi + 0x10]
xor r8d, r8d
mov edx, 0x936
mov rcx, qword [rsi + 8]
call fcn.14000fa00
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14001ee60
nop
xor ebx, ebx
cmp qword [rbp - 0x50], rbx
je 0x140020a8e
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x40], bx
lea rcx, [rdi + 0xe0]
lea rax, [rbp - 0x40]
cmp rcx, rax
je 0x140020a29
xor r8d, r8d
lea rdx, [rbp - 0x40]
call fcn.140006d60
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140020a69
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020a64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020b32
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], bx
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14d, ebx
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140020acd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020ac8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020b2c
call fcn.14017f5e4
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
lea rcx, [rsp + 0x68]
call fcn.140145a80
nop
lea rcx, [0x1402bb710]
call fcn.14015e5b0
test eax, eax
je 0x140020aff
mov ecx, eax
call fcn.14015e6bc
mov eax, r14d
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14017f700
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401a10ac
nop
call fcn.1401a10ac
int3