Function at 0x140002f60
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0xe08]
sub rsp, 0xf08
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0xbe0]
mov r8d, 0x208
call fcn.1400045b0
mov r8d, 0x104
lea rdx, [rbp + 0xbe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002fae
mov al, 1
add rsp, 0xf08
pop rdi
pop rbp
ret
mov qword [rsp + 0xf00], rbx
lea rcx, [rbp + 0xbe0]
mov qword [rsp + 0xef0], r14
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
movups xmm0, xmmword [str.Pending_]
movzx ecx, word [0x140005720]
xor edx, edx
mov word [rbp + 0x5c0], cx
mov r8d, 0x1f6
lea rcx, [rbp + 0x5c2]
movaps xmmword [rbp + 0x5b0], xmm0
mov r14, rax
call fcn.1400045b0
movups xmm0, xmmword [str.System_]
xor edx, edx
lea rcx, [rbp + 0x7d0]
mov r8d, 0x1f8
movaps xmmword [rbp + 0x7c0], xmm0
call fcn.1400045b0
movaps xmm0, xmmword [str.........LDLS4_binx64Release_]
lea rcx, [rbp + 0x1d6]
movaps xmm1, xmmword [0x140005750]
xor edx, edx
mov eax, dword [0x140005780]
mov r8d, 0x1c2
movaps xmmword [rbp + 0x190], xmm0
movaps xmm0, xmmword [0x140005760]
movaps xmmword [rbp + 0x1a0], xmm1
movaps xmm1, xmmword [0x140005770]
mov dword [rbp + 0x1d0], eax
movzx eax, word [0x140005784]
movaps xmmword [rbp + 0x1b0], xmm0
movaps xmmword [rbp + 0x1c0], xmm1
mov word [rbp + 0x1d4], ax
call fcn.1400045b0
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.1400045b0
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.1400045b0
mov r8d, 0x104
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
test eax, eax
je 0x140003306
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140003306
lea r8, [rbp + 0x5b0]
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x140003306
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x140003306
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003306
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.1400045b0
xor edx, edx
lea rcx, [rbp + 0x9d0]
mov r8d, 0x208
call fcn.1400045b0
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400032f5
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1400032f5
lea r8, [rbp + 0x7c0]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x9d0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x1400032f5
lea rdx, [rbp + 0x9d0]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x1400032f5
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400032f5
lea r9, [rbp + 0xe38]
xor edx, edx
lea r8, [0x140005e58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x140003293
lea rax, [rbp + 0xe30]
mov qword [rsp + 0xef8], rsi
lea r9, [0x140005e48]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [0x140005410]
lea esi, [rbx - 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140003275
mov rcx, qword [rbp + 0xe30]
mov edx, 0x614
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x140003268
mov rcx, qword [rbp + 0xe30]
xor r8d, r8d
mov rdx, qword [rbp + 0xe38]
mov rax, qword [rcx]
call qword [rax + 0x90]
test eax, eax
js 0x140003268
mov rcx, qword [rbp + 0xe30]
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov esi, eax
mov rcx, qword [rbp + 0xe30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp + 0xe38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
shr esi, 0x1f
xor sil, 1
mov rsi, qword [rsp + 0xef8]
jne 0x1400032f5
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov eax, 0x414
mov word [rbp + rcx*2 - 0x7e], bx
lea rcx, [rsp + 0x30]
mov word [rsp + 0x50], ax
mov dword [rsp + 0x38], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x140003306
cmp dword [rsp + 0x54], ebx
jne 0x140003306
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, r14
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r14
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r14
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rbp + 0x5b0]
xor edx, edx
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x80]
lea rax, [rbp + 0x7c0]
mov r8d, 0x208
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x78], rax
call fcn.1400045b0
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r14, qword [rsp + 0xef0]
test eax, eax
je 0x1400033e5
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1400033e5
nop word [rax + rax]
mov r8, qword [rsp + rbx*8 + 0x68]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x9d0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x1400033dc
lea rdx, [rbp + 0x9d0]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x1400033dc
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400033f9
inc rbx
cmp rbx, 3
jb 0x1400033a0
mov rbx, qword [rsp + 0xf00]
xor al, al
add rsp, 0xf08
pop rdi
pop rbp
ret
mov rbx, qword [rsp + 0xf00]
mov al, 1
add rsp, 0xf08
pop rdi
pop rbp
ret