Function at 0x140100ba0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1402fa010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
cmp dword [rcx + 0x768], 0
jne 0x140100e6d
mov ebp, dword [rcx + 0x5f0]
test ebp, ebp
jne 0x140100bfa
lea edx, [rbp + 1]
add rcx, 0x310
call fcn.140087d00
mov dword [rdi + 0x5f0], 1
mov rax, qword [rdi + 0x290]
test rax, rax
je 0x140100c42
cmp dword [rax], 1
jne 0x140100c42
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140044940
mov rcx, rax
lea r8, str.TEXT
lea rdx, str.TEXT_ASK_STOP_MODIFYING
call fcn.140048080
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140019100
mov rbx, rax
jmp 0x140100c77
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140044940
mov rcx, rax
lea r8, str.TEXT
lea rdx, str.TEXT_ASK_STOP_ARCHIVING
call fcn.140048080
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140019100
mov rbx, rax
call fcn.1401285c0
lea r8, [0x1402620c0]
cmp dword [rax + 0x88], 0
lea rcx, [0x1402620b8]
cmovne r8, rcx
mov r9d, 4
mov rdx, rbx
mov rcx, qword [rdi + 8]
call fcn.14005fae0
mov ebx, eax
xor r15d, r15d
test ebp, ebp
jne 0x140100cc6
lea edx, [rbp + 2]
lea rcx, [rdi + 0x310]
call fcn.140087d00
mov dword [rdi + 0x5f0], r15d
cmp ebx, 6
jne 0x140100e6d
mov dword [rdi + 0x158], 1
mov dword [rdi + 0x768], 1
xor edx, edx
lea rcx, [rdi + 0x310]
call fcn.140087d00
mov edx, 0xffffffff
lea rcx, [rdi + 0x310]
call fcn.140087ca0
cmp dword [rdi + 0x918], r15d
je 0x140100d4c
mov rax, qword [rdi + 0x290]
mov r8, qword [rax + 0x18]
test r8, r8
je 0x140100e93
mov rax, qword [rdi + 0x910]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140100d44
add rax, 2
test ecx, ecx
jne 0x140100d30
test edx, edx
je 0x140100e48
mov rcx, qword [rdi + 0x290]
test rcx, rcx
je 0x140100e48
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rsi, [rdi + 0x648]
lea rcx, [rdi + 0x338]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi + 0x4a0]
test rbx, rbx
je 0x140100dc0
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
xor r9d, r9d
mov r8, qword [rsi + 8]
mov rcx, rsi
call fcn.140029d10
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140100db4
mov qword [rcx], rax
jmp 0x140100db7
mov qword [rsi], rax
mov qword [rsi + 8], rax
test rbx, rbx
jne 0x140100d90
lea rcx, [rdi + 0x4a0]
call fcn.140029c30
lea rcx, [rdi + 0x338]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14, qword [rsi]
test r14, r14
je 0x140100e40
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x28], r15
mov rcx, qword [r14 + 0x10]
mov r14, qword [r14]
sub rcx, 0x18
call fcn.1400191a0
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 0x140100e3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
test r14, r14
jne 0x140100df0
mov rcx, rsi
call fcn.140029c30
mov rcx, qword [rdi + 8]
cmp dword [rdi + 0x54], 0
je 0x140100e5f
mov edx, 2
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x140100e6d
mov qword [rdi + 0x40], 2
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401f3bf0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov ecx, 0x80004005
call fcn.140019320
int3