Function at 0x1400135d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x20], 0xfffffffffffffffe
movaps xmmword [rsp + 0x50], xmm6
mov rdi, rcx
cmp dword [rcx + 0xcc4], 0
je 0x140013622
nop dword [rax]
cmp dword [rdi + 0xcc0], 0
jne 0x14001362b
or edx, 0xffffffff
mov rcx, qword [rdi + 0x2f30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rdi + 0xcc4], 0
jne 0x140013600
cmp dword [rdi + 0xcc0], 0
je 0x140013635
mov eax, 1
jmp 0x140013c0f
mov rcx, rdi
call fcn.140011700
test eax, eax
jns 0x140013650
mov dword [rdi + 0x280c], 1
jmp 0x140013c0f
cmp qword [rdi + 0x2820], 0
jg 0x14001366c
mov r14d, 2
mov dword [rdi + 0x280c], r14d
jmp case.0x1400137dc.2
mov rax, qword [rdi + 0x2e48]
xor r15d, r15d
test rax, rax
cmovs rax, r15
mov qword [rdi + 0x27f8], rax
mov rcx, qword [rdi + 0x2e50]
test rcx, rcx
jle 0x1400136a1
cmp rcx, rax
jle 0x1400136a1
lea rsi, [rdi + 0x2800]
mov qword [rsi], rcx
jmp 0x1400136b8
mov rcx, qword [rdi + 0x48]
lea rsi, [rdi + 0x2800]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x230]
mov rax, qword [rsi]
cmp qword [rdi + 0x27f8], rax
jge 0x14001365a
mov qword [rdi + 0x2818], r15
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdi + rax*2 + 0x2a30], r15w
jne 0x1400136d0
test rax, rax
je 0x140013c00
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov r14d, 2
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r14 + 1]
lea rcx, [rdi + 0x2a30]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140013c00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x2a30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140013749
lea rcx, [rdi + 0x2a30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rdi + 0x2a30]
call fcn.140013e70
test eax, eax
je 0x140013774
dec eax
je 0x140013766
mov qword [rdi + 0x2818], r15
jmp 0x14001377f
mov eax, 0xf3333333
mov qword [rdi + 0x2818], rax
jmp 0x14001377f
mov qword [rdi + 0x2818], 0x73333333
mov dword [rbp + 0x50], 0x140
mov dword [rbp + 0x48], 0xf0
movss xmm6, dword [0x14002d140]
mov r13d, 0x10
mov dword [rbp + 0x58], r15d
mov ecx, dword [rdi + 0x2e70]
cmp ecx, 1
jne 0x1400137ae
mov ebx, ecx
jmp 0x1400137b8
mov ebx, r15d
cmp ecx, r14d
cmove ebx, r14d
mov eax, dword [rdi + 0x2e60]
dec eax
cmp eax, 0xf
ja case.0x1400137dc.2
cdqe
lea rdx, [0x14000c000]
mov eax, dword [rdx + rax*4 + 0x7c28]
add rax, rdx
jmp rax
mov eax, dword [rdi + 0x2e7c]
mov dword [rbp + 0x50], eax
mov eax, dword [rdi + 0x2e80]
mov dword [rbp + 0x48], eax
movss xmm6, dword [rdi + 0x2e84]
mov dword [rbp + 0x58], r14d
jmp 0x14001384b
mov eax, dword [rdi + 0x2e7c]
mov dword [rbp + 0x50], eax
mov eax, dword [rdi + 0x2e80]
mov dword [rbp + 0x48], eax
movss xmm6, dword [rdi + 0x2e84]
movzx r15d, word [rdi + 0x2e8c]
mov r12d, dword [rdi + 0x2e90]
movzx r13d, word [rdi + 0x2e94]
cmp ecx, 1
jne 0x140013838
mov ebx, ecx
jmp 0x14001385a
xor ebx, ebx
cmp ecx, r14d
cmove ebx, r14d
jmp 0x14001385a
movzx r13d, word [rdi + 0x2e94]
mov r12d, dword [rdi + 0x2e90]
movzx r15d, word [rdi + 0x2e8c]
mov rcx, rdi
call fcn.140011fd0
cmp dword [rdi + 0xcc0], 0
jne 0x14001362b
mov qword [rbp + 0x60], 0
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
mov edx, dword [rbp + 0x58]
call qword [rax + 0x58]
mov rcx, qword [rdi + 0x40]
test byte [rdi + 0x2e6c], 1
je 0x140013926
mov r10, qword [rcx]
cvtps2pd xmm0, xmm6
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 0
movsd qword [rsp + 0x28], xmm0
mov eax, dword [rdi + 0x2e78]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x2e74]
mov r8d, dword [rbp + 0x48]
mov edx, dword [rbp + 0x50]
call qword [r10 + 0x80]
mov ebx, eax
mov dword [rbp + 0x50], 1
mov dword [rbp + 0x48], 4
mov rcx, qword [rdi + 0x50]
mov r10, qword [rcx]
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x50]
mov edx, 0x1b
call qword [r10 + 0x18]
mov rcx, qword [rdi + 0x48]
mov r8, qword [rcx]
mov edx, 0x64
call qword [r8 + 0x68]
or ebx, eax
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
mov edx, 7
call qword [rax + 0x220]
or ebx, eax
jmp 0x14001394f
mov qword [rbp + 0x60], 0
mov rax, qword [rcx]
lea rdx, [rbp + 0x60]
call qword [rax + 0x40]
mov ebx, eax
test eax, eax
js 0x14001394f
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14001394f
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x18]
test byte [rdi + 0x2e6c], r14b
je 0x1400139a9
cmp r15w, 1
mov edx, r14d
je 0x140013966
movzx edx, r15w
mov rcx, qword [rdi + 0x40]
mov rax, qword [rcx]
movzx r9d, r13w
mov r8d, r12d
call qword [rax + 0x10]
or ebx, eax
xor r15d, r15d
cmp dword [rdi + 0x2e60], 0x10
jne 0x1400139d5
mov dword [rbp + 0x58], r15d
mov dword [rbp + 0x50], r15d
mov dword [rbp + 0x48], r15d
mov rcx, qword [rdi + 0x40]
mov rax, qword [rcx]
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x58]
call qword [rax + 0x18]
jmp 0x1400139d5
xor r15d, r15d
mov qword [rbp + 0x60], r15
mov rcx, qword [rdi + 0x40]
mov rax, qword [rcx]
lea rdx, [rbp + 0x60]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x1400139d5
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x1400139d5
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x18]
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x1e0]
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x50]
test ebx, ebx
js case.0x1400137dc.2
mov qword [rbp + 0x48], r15
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
lea r8, [rbp + 0x48]
lea rdx, [0x14002cf98]
call qword [rax]
mov rcx, qword [rbp + 0x48]
test eax, eax
js 0x140013a38
test rcx, rcx
je 0x140013a38
mov rax, qword [rcx]
movsd xmm1, qword [0x14002d138]
call qword [rax + 0xc0]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140013a43
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call fcn.140011fd0
cmp dword [rdi + 0xcc0], 0
jne 0x14001362b
mov qword [rbp - 0x28], r15
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.1400141d0
test eax, eax
js 0x140013b93
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140013ba6
mov dword [rdi + 0x30], r15d
mov rax, qword [rcx]
mov r8, qword [rsi]
mov rdx, qword [rdi + 0x27f8]
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x140013b93
mov dword [rdi + 0xcc8], r14d
cmp dword [rdi + 0x2e58], 0
jge 0x140013ab7
lea rcx, [rdi + 0x2ec8]
call fcn.140012680
xor sil, sil
test ebx, ebx
js 0x140013b7d
test sil, sil
jne 0x140013b7d
mov rcx, rdi
call fcn.140011fd0
cmp dword [rdi + 0xcc0], 0
jne 0x140013b73
mov rcx, rdi
call fcn.1400140d0
mov rcx, rdi
call fcn.140013db0
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rdi + 0x30]
add eax, 0xffff7f36
cmp eax, 0xe
ja case.0x140013b18.32973
lea rdx, [0x14000c000]
mov ecx, dword [rdx + rax*4 + 0x7c68]
add rcx, rdx
jmp rcx
mov dword [rdi + 0x280c], 5
jmp case.0x140013b18.32970
mov dword [rdi + 0x280c], 4
jmp case.0x140013b18.32970
mov dword [rdi + 0x280c], 7
jmp case.0x140013b18.32970
mov dword [rdi + 0x280c], r14d
jmp case.0x140013b18.32970
mov dword [rdi + 0x280c], 6
mov sil, 1
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test sil, sil
jne 0x140013b7d
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140013ac2
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
call qword [rax + 0x70]
lea rcx, [rdi + 0x2ec8]
call fcn.1400126f0
mov dword [rdi + 0xcc8], 4
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140013ba6
mov qword [rbp - 0x28], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
js 0x140013bbe
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x50]
mov ebx, eax
cmp dword [rdi + 0x280c], 0
jne 0x140013be6
test eax, eax
jns 0x140013be6
mov dword [rdi + 0x280c], r14d
mov dword [rdi + 0xcc8], r15d
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140013bfc
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
jmp 0x140013c0f
mov dword [rdi + 0x280c], 3
mov eax, 0x80004005
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret