Function at 0x14014c4b0
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r15d, edx
mov rsi, rcx
xor r13b, r13b
lea rax, [rcx + 0x18]
mov qword [rbp + 0x20], rax
lea rdi, [rax + 8]
mov qword [rbp + 0x88], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rsi + 0xb0]
mov rbx, qword [rax + 0x18]
test rbx, rbx
je 0x14014c52a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 8
je 0x14014c52a
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14014c513
lea rax, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
mov qword [rbp - 0x78], rax
xor r14d, r14d
mov dword [rbp - 0x70], r14d
mov qword [rbp - 0x68], r14
mov qword [rsp + 0x28], r14
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.1401fcb40
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r9d, [r14 + 4]
lea r8, str.Item
mov rcx, qword [rsp + 0x20]
call fcn.1402ba94c
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.1401fde50
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1402046f0
test eax, eax
setg bl
cmp dword [rsp + 0x28], r14d
jle 0x14014c5a7
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
mov r12, qword [rbp - 0x68]
test bl, bl
je 0x14014ca59
lea rdx, [rbp - 8]
mov rcx, rsi
call fcn.14014b890
nop
mov edi, r14d
mov r14d, dword [rbp - 0x70]
test r14d, r14d
jle 0x14014ca37
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov r12, qword [rsi]
mov qword [rsp + 0x20], r12
lea r8, [0x14030a674]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1402018f0
nop
cmp dword [rsp + 0x5c], 0
je 0x14014c641
mov rbx, qword [rsp + 0x50]
mov r8d, 0xa
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1402ba758
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x5c]
cmp rdx, rcx
jne 0x14014c641
lea ecx, [rax + 0x7fffffff]
cmp ecx, 0xfffffffd
ja 0x14014c641
cmp eax, r15d
je 0x14014c666
cmp dword [rsp + 0x58], 0
jle 0x14014c652
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
inc edi
add rsi, 8
cmp edi, r14d
jge 0x14014ca2f
jmp 0x14014c5e0
lea rdi, vtable.Core::Dictionary_class_Core::String__class_Core::Xml::XmlElement____ptr64_.0
mov qword [rbp - 0x48], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xor r15d, r15d
mov dword [rbp - 0x30], r15d
lea rax, vtable.Core::Collection_class_Core::Xml::XmlElement____ptr64_.0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], r15d
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rsp + 0x38], r15
lea edx, [r15 + 4]
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r9d, [r15 + 4]
lea r8, str.File
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
lea edx, [r15 + 4]
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea r8, [rbp - 0x28]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.1402048a0
nop
cmp dword [rsp + 0x38], r15d
jle 0x14014c6f7
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
lea rax, vtable.Core::Collection_class_Core::Xml::XmlElement____ptr64_::Enumerator.0
mov qword [rbp + 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0x10], rax
mov rbx, qword [rbp - 0x18]
mov qword [rbp + 0x18], rbx
mov rsi, qword [rbp + 0x70]
mov r14, qword [rbp + 0x80]
lea r12, [0x140346ce0]
test rbx, rbx
je 0x14014c897
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
mov qword [rbp + 0x18], rbx
lea r8, [0x14035482c]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1402018f0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14014c882
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14014c760
test rax, rax
je 0x14014c882
lea r8, str.path
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.1402018f0
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x60]
call fcn.1400d2ba0
nop
mov edx, dword [rsp + 0x6c]
test edx, edx
jle 0x14014c85c
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, dword [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.1401fde50
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.140118df0
mov qword [rsp + 0x38], r15
mov edx, dword [rbp - 0x54]
test edx, edx
jne 0x14014c805
mov qword [rsp + 0x30], r12
jmp 0x14014c82d
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, dword [rbp - 0x54]
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, dword [rbp - 0x54]
lea rcx, [rsp + 0x30]
call fcn.1401fde50
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14014d030
test al, al
je 0x14014c85c
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.140117a40
mov r13b, 1
cmp dword [rsp + 0x68], 0
jle 0x14014c86e
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
nop
cmp dword [rbp - 0x58], 0
jle 0x14014c87d
mov rcx, qword [rbp - 0x60]
call fcn.1402b7350
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 0
jle 0x14014c724
call fcn.1402b7350
jmp 0x14014c724
test r13b, r13b
mov r12, qword [rsp + 0x20]
je 0x14014c9aa
lea rax, vtable.Core::Dictionary_class_Core::String__class_Core::Xml::XmlElement____ptr64_::Enumerator.0
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x78], rax
mov rbx, qword [rbp - 0x40]
mov qword [rbp - 0x80], rbx
lea rax, [0x140346ce0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r15
test rbx, rbx
je 0x14014c945
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0x1c]
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
mov r8, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x20]
call fcn.1402ba94c
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.1401fde50
mov rdi, qword [rbx + 0x20]
mov rbx, qword [rbx]
mov qword [rbp - 0x80], rbx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14014c8d3
mov rcx, qword [rdi + 0x48]
call fcn.140212600
test rax, rax
je 0x14014c8d3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
jmp 0x14014c8d3
lea r8, str.Restored
lea rdx, str.action
mov rcx, r12
call fcn.140201940
lea rcx, [rbp - 0x60]
call fcn.1400cafe0
nop
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400cb0d0
nop
mov r8, qword [rax]
lea rdx, [0x140354830]
mov rcx, r12
call fcn.140201940
nop
cmp dword [rsp + 0x48], 0
jle 0x14014c998
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
nop
cmp dword [rsp + 0x28], 0
jle 0x14014c9aa
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
nop
lea rax, vtable.Core::Collection_class_Core::Xml::XmlElement____ptr64_.0
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14014c9d0
nop
mov rbx, qword [rcx]
call fcn.1402150f0
mov rcx, rbx
test rbx, rbx
jne 0x14014c9c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov dword [rbp - 0x20], r15d
lea rax, vtable.Core::Dictionary_class_Core::String__class_Core::Xml::XmlElement____ptr64_.0
mov qword [rbp - 0x48], rax
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x14014ca12
mov rdi, qword [rbx]
cmp dword [rbx + 0x18], 0
jle 0x14014ca02
mov rcx, qword [rbx + 0x10]
call fcn.1402b7350
mov rcx, rbx
call fcn.1402150f0
mov rbx, rdi
test rdi, rdi
jne 0x14014c9f0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], r15d
cmp dword [rsp + 0x58], 0
jle 0x14014ca2f
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
mov rsi, qword [rbp + 0x70]
mov r12, qword [rbp - 0x68]
cmp dword [rbp], 0
jle 0x14014ca46
mov rcx, qword [rbp - 8]
call fcn.1402b7350
mov rdi, qword [rbp + 0x88]
test r13b, r13b
je 0x14014ca59
mov byte [rsi + 0xb8], 1
test r12, r12
je 0x14014ca67
mov rcx, r12
call fcn.1402b712c
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, r13b
mov rbx, qword [rsp + 0x178]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret