Function at 0x140103270
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
cmp dword [rcx + 0x768], 0
jne 0x140103531
mov ebp, dword [rcx + 0x5f0]
test ebp, ebp
jne 0x1401032c4
lea edx, [rbp + 1]
add rcx, 0x310
call fcn.14008a130
mov dword [rdi + 0x5f0], 1
mov rax, qword [rdi + 0x290]
test rax, rax
je 0x14010330c
cmp dword [rax], 1
jne 0x14010330c
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140044d30
mov rcx, rax
lea r8, str.TEXT
lea rdx, str.TEXT_ASK_STOP_MODIFYING
call fcn.140048480
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400190e0
mov rbx, rax
jmp 0x140103341
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140044d30
mov rcx, rax
lea r8, str.TEXT
lea rdx, str.TEXT_ASK_STOP_ARCHIVING
call fcn.140048480
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400190e0
mov rbx, rax
call fcn.14012bfe0
lea r8, [0x1402670e0]
cmp dword [rax + 0x88], 0
lea rcx, [0x1402670d8]
cmovne r8, rcx
mov r9d, 4
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.140061b80
mov ebx, eax
xor r14d, r14d
test ebp, ebp
jne 0x140103390
lea edx, [rbp + 2]
lea rcx, [rdi + 0x310]
call fcn.14008a130
mov dword [rdi + 0x5f0], r14d
cmp ebx, 6
jne 0x140103531
mov dword [rdi + 0x158], 1
mov dword [rdi + 0x768], 1
xor edx, edx
lea rcx, [rdi + 0x310]
call fcn.14008a130
mov edx, 0xffffffff
lea rcx, [rdi + 0x310]
call fcn.14008a0d0
cmp dword [rdi + 0x918], r14d
je 0x14010340f
mov rax, qword [rdi + 0x290]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x140103551
mov rax, qword [rdi + 0x910]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140103407
add rax, 2
test ecx, ecx
jne 0x1401033f3
test edx, edx
je 0x14010350c
mov rcx, qword [rdi + 0x290]
test rcx, rcx
je 0x14010350c
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 0x338]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rdi + 0x4a0]
test rsi, rsi
je 0x140103483
mov rdx, qword [rsi + 0x10]
mov rsi, qword [rsi]
xor r9d, r9d
mov r8, qword [rdi + 0x650]
lea rcx, [rdi + 0x648]
call fcn.140029e40
mov rcx, qword [rdi + 0x650]
test rcx, rcx
je 0x140103470
mov qword [rcx], rax
jmp 0x140103477
mov qword [rdi + 0x648], rax
mov qword [rdi + 0x650], rax
test rsi, rsi
jne 0x140103442
lea rcx, [rdi + 0x4a0]
call fcn.140029d60
lea rcx, [rdi + 0x338]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rdi + 0x648]
test rsi, rsi
je 0x140103500
nop dword [rax + rax]
mov qword [rsp + 0x28], r14
mov rcx, qword [rsi + 0x10]
mov rsi, qword [rsi]
sub rcx, 0x18
call fcn.140019180
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401034fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test rsi, rsi
jne 0x1401034b0
lea rcx, [rdi + 0x648]
call fcn.140029d60
mov rcx, qword [rdi + 8]
cmp dword [rdi + 0x54], 0
je 0x140103523
mov edx, 2
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x140103531
mov qword [rdi + 0x40], 2
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140019300
int3