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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
mov qword [rbp + 0x120], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov byte [rsp + 0x21], r9b
mov byte [rsp + 0x22], r8b
mov rbx, rdx
mov r15, rcx
xor r12d, r12d
mov r14d, r12d
lea ecx, [r12 + 0xd]
mov rax, qword [rdx + 8]
cmp qword [rdx], rax
cmove r14d, ecx
mov qword [rbp + 0x18], r12
lea edi, [rcx + 0x2b]
mov ecx, edi
call fcn.1400be454
test rax, rax
je 0x1402d106a
mov qword [rbp + 0x10], rax
mov qword [rax], rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 8], rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x10], rax
mov rax, qword [rbp + 0x10]
mov byte [rax + 0x30], 1
mov rax, qword [rbp + 0x10]
mov byte [rax + 0x31], 1
mov qword [rbp - 8], r12
mov ecx, edi
call fcn.1400be454
test rax, rax
je 0x1402d1034
mov qword [rbp - 0x10], rax
mov qword [rax], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 8], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x10], rax
mov rax, qword [rbp - 0x10]
mov byte [rax + 0x30], 1
mov rax, qword [rbp - 0x10]
mov byte [rax + 0x31], 1
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rbp + 0xf8], rbx
mov rax, qword [rbx]
mov rbx, qword [rbx + 8]
mov qword [rbp + 0x118], rbx
or esi, 0xffffffff
mov qword [rsp + 0x78], rax
cmp rax, rbx
je 0x1402d0f2a
mov r13, qword [rax]
mov qword [rbp - 0x80], r13
mov rsi, qword [rax + 8]
mov qword [rbp - 0x78], rsi
test rsi, rsi
je 0x1402d07e2
lock inc dword [rsi + 8]
mov rsi, qword [rbp - 0x78]
mov r13, qword [rbp - 0x80]
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x60], r13
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x68], rsi
mov qword [rbp - 0x78], rdi
test rdi, rdi
je 0x1402d0833
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x1402d082e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
add eax, esi
jne 0x1402d082e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rdx, qword [r13 + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14000cb18
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1402d0f02
lea rcx, [rsp + 0x50]
call fcn.14000b994
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000c4d8
nop
mov r10, qword [rbp + 0x10]
mov rcx, qword [r10 + 8]
mov r8, r10
cmp byte [rcx + 0x31], r12b
jne 0x1402d08d7
mov r11d, r12d
cmp qword [rsp + 0x40], r12
setne r11b
test r11d, r11d
je 0x1402d0eea
mov rax, qword [rcx + 0x18]
mov r9, qword [rsp + 0x40]
sub r9, rax
movzx edx, word [rax]
cmp dx, word [rax + r9]
jne 0x1402d08b7
add rax, 2
test dx, dx
jne 0x1402d089f
mov eax, r12d
jmp 0x1402d08bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sets al
test al, al
je 0x1402d08cb
mov rcx, qword [rcx + 0x10]
jmp 0x1402d08d1
mov r8, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x31], r12b
je 0x1402d088a
mov qword [rbp + 0x30], r8
cmp r8, r10
je 0x1402d0928
mov rcx, qword [r8 + 0x18]
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
je 0x1402d0ef5
mov rax, qword [rsp + 0x40]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1402d0914
add rax, 2
test dx, dx
jne 0x1402d08fd
mov eax, r12d
jmp 0x1402d0919
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sets al
test al, al
jne 0x1402d0928
lea rax, [rbp + 0x30]
jmp 0x1402d0930
mov qword [rbp + 0x40], r10
lea rax, [rbp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
cmp rax, r10
je 0x1402d0981
mov r12, qword [rax + 0x20]
mov qword [rbp - 0x68], r12
mov rdi, qword [rax + 0x28]
mov qword [rbp - 0x60], rdi
test rdi, rdi
je 0x1402d0968
lock inc dword [rdi + 8]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rbp - 0x60]
mov r12, qword [rbp - 0x68]
and qword [rbp - 0x68], 0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], rdi
and qword [rbp - 0x60], 0
jmp 0x1402d0a0f
mov ecx, 0x78
call fcn.1400be454
mov qword [rbp + 0x128], rax
test rax, rax
je 0x1402d09a9
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1402cfe68
jmp 0x1402d09ac
mov rax, r12
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140091a58
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x60]
call fcn.14000c4d8
mov r12, qword [rsp + 0x28]
mov qword [rbp + 0x68], r12
mov rdi, qword [rsp + 0x30]
mov qword [rbp + 0x70], rdi
test rdi, rdi
je 0x1402d09f1
lock inc dword [rdi + 8]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x28]
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 8]
call fcn.1400734a8
nop
lea rcx, [rbp + 0x60]
call fcn.140078ae0
test r12, r12
je 0x1402d0e51
cmp byte [rsp + 0x22], 0
je 0x1402d0dcd
mov byte [rsp + 0x20], 0
mov qword [rbp + 0x90], r13
mov qword [rbp + 0x98], rsi
test rsi, rsi
je 0x1402d0a4e
lock inc dword [rsi + 8]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x90]
mov rcx, r12
call fcn.1402ced88
mov r14d, eax
test eax, eax
jne 0x1402d0e51
cmp byte [rsp + 0x20], al
jne 0x1402d0aaf
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], rsi
test rsi, rsi
je 0x1402d0a94
lock inc dword [rsi + 8]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x28]
lea rdx, [rbp + 0xa0]
mov rcx, r12
call fcn.1402ce858
xor esi, esi
test al, al
je 0x1402d0e51
jmp 0x1402d0ab1
xor esi, esi
test dword [r13 + 8], 0x10000
jne 0x1402d0ac9
test dword [r13 + 8], 0x800000
je 0x1402d0d83
mov rdx, qword [r13 + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14000cb18
nop
lea rcx, [rsp + 0x58]
call fcn.140050bb8
lea rdx, str.Extensions
lea rcx, [rsp + 0x58]
call fcn.14000f884
mov rdx, qword [r13]
lea rcx, [rsp + 0x58]
call fcn.14000f884
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea r12, vtable.Piriform::IOperationImpl_struct_Piriform::IOperation_.0
test eax, eax
je 0x1402d0b8a
mov qword [rbp - 0x38], r12
mov byte [rbp - 0x30], sil
mov qword [rbp - 0x28], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x28], rax
lea rax, vtable.Piriform::CCleanDirectory.0
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x20], sil
mov rdi, qword [rsp + 0x58]
lea rcx, [rbp - 0x38]
call qword [method.Piriform::IOperationImpl_struct_Piriform::IOperation_.virtual_16]
test al, al
jne 0x1402d0b68
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400722dc
nop
mov qword [rbp - 0x38], r12
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1402d0b7f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x28], rsi
lea rax, vtable.Piriform::IOperation.0
mov qword [rbp - 0x38], rax
mov rdx, qword [r13 + 0x40]
lea rcx, [rsp + 0x38]
call fcn.14000cb18
nop
lea rcx, [rsp + 0x38]
call fcn.140050bb8
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8, qword [r13]
lea rdx, str.chrome_extension__s_0
lea rcx, [rsp + 0x70]
call fcn.14000d9c8
lea rdx, str.Local_Storage
lea rcx, [rsp + 0x38]
call fcn.14000f884
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.14000f884
lea rdx, str..localstorage
lea rcx, [rsp + 0x38]
call fcn.14002e360
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1402d0c3c
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140223418
test eax, eax
jne 0x1402d0c31
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1402d0c3c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [r13 + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000cb18
nop
lea rcx, [rsp + 0x48]
call fcn.140050bb8
lea rdx, str.databases
lea rcx, [rsp + 0x48]
call fcn.14000f884
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000f884
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1402d0cf7
mov qword [rbp - 0x58], r12
mov byte [rbp - 0x50], sil
mov qword [rbp - 0x48], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x48], rax
lea rax, vtable.Piriform::CCleanDirectory.0
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x40], 1
mov rdi, qword [rsp + 0x48]
lea rcx, [rbp - 0x58]
call qword [method.Piriform::IOperationImpl_struct_Piriform::IOperation_.virtual_16]
test al, al
jne 0x1402d0cd5
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.1400722dc
nop
mov qword [rbp - 0x58], r12
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1402d0cec
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x48], rsi
lea rax, vtable.Piriform::IOperation.0
mov qword [rbp - 0x58], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1402d0d1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1402d0d3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1402d0d5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1402d0d79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.14000c4d8
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], rdi
xor r12d, r12d
test rdi, rdi
je 0x1402d0daa
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x30]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x18]
call fcn.1400734a8
nop
lea rcx, [rbp + 0x48]
call fcn.140078ae0
jmp 0x1402d0e54
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xb8], rsi
test rsi, rsi
je 0x1402d0dee
lock inc dword [rsi + 8]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x28]
mov r8b, byte [rsp + 0x21]
lea rdx, [rbp + 0xb0]
mov rcx, r12
call fcn.1402cea38
test al, al
je 0x1402d0e51
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x78]
call fcn.14000c4d8
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], rdi
xor r12d, r12d
test rdi, rdi
je 0x1402d0e33
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x30]
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0x140]
lea rcx, [rbp - 0x18]
call fcn.1400734a8
nop
lea rcx, [rbp + 0x78]
jmp 0x1402d0dc3
xor r12d, r12d
or esi, 0xffffffff
test rdi, rdi
je 0x1402d0e8c
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x1402d0e8c
mov rdi, qword [rsp + 0x30]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
add eax, esi
jne 0x1402d0e8c
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1402d0eab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14d, r14d
jne 0x1402d0f0b
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
test al, al
jne 0x1402d0f00
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1402d0edc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x78]
add rax, 0x10
jmp 0x1402d07b4
mov ecx, 0x80004005
call fcn.14000cbb8
int3
mov ecx, 0x80004005
call fcn.14000cbb8
nop
jmp 0x1402d0f0b
mov r14d, 2
or esi, 0xffffffff
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1402d0f2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
test al, al
jne 0x1402d0fe2
test r14d, r14d
jne 0x1402d0fe2
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], r12
mov qword [rbp + 0xd0], r12
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rdi]
mov qword [rbp + 0xd8], rdi
mov qword [rbp - 0x70], rbx
cmp rbx, rdi
je 0x1402d0fd5
mov rcx, qword [rbx + 0x20]
call fcn.1402d0418
mov r14d, eax
test eax, eax
jne 0x1402d0fd5
cmp byte [rbx + 0x31], r12b
jne 0x1402d0f80
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x31], r12b
jne 0x1402d0fb3
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x31], r12b
je 0x1402d0fa5
jmp 0x1402d0f7c
mov rax, qword [rbx + 8]
jmp 0x1402d0fc6
cmp rbx, qword [rax + 0x10]
jne 0x1402d0fcc
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x31], r12b
je 0x1402d0fb9
mov rbx, rax
mov qword [rbp - 0x70], rax
jmp 0x1402d0f80
lea rcx, [rbp + 0xc0]
call fcn.140078ae0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402d101c
mov eax, esi
lock xadd dword [rcx + 8], eax
add eax, esi
jne 0x1402d101c
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1402d101c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x18]
call fcn.140066fa4
nop
lea rcx, [rbp + 8]
call fcn.140066fa4
mov eax, r14d
jmp 0x1402d10a0
mov qword [rbp + 0x38], r12
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x100]
call fcn.1400be280
lea r11, vtable.std::bad_alloc.0
mov qword [rbp + 0x100], r11
lea rdx, [0x140456118]
lea rcx, [rbp + 0x100]
call fcn.1400c744c
nop
mov qword [rbp + 0x28], r12
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0xe0]
call fcn.1400be280
lea r11, vtable.std::bad_alloc.0
mov qword [rbp + 0xe0], r11
lea rdx, [0x140456118]
lea rcx, [rbp + 0xe0]
call fcn.1400c744c
int3
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9b, r8b
add rcx, 0xffffffffffffffe8
xor r8d, r8d
jmp 0x1402d06c8