Function at 0x14014f1c0
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 0x14014f23a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 8
je 0x14014f23a
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14014f223
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.1402028a0
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.1402c06dc
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.140203bb0
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14020a3e0
test eax, eax
setg bl
cmp dword [rsp + 0x28], r14d
jle 0x14014f2b7
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
mov r12, qword [rbp - 0x68]
test bl, bl
je 0x14014f769
lea rdx, [rbp - 8]
mov rcx, rsi
call fcn.14014e5a0
nop
mov edi, r14d
mov r14d, dword [rbp - 0x70]
test r14d, r14d
jle 0x14014f747
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov r12, qword [rsi]
mov qword [rsp + 0x20], r12
lea r8, [0x140310694]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1402075e0
nop
cmp dword [rsp + 0x5c], 0
je 0x14014f351
mov rbx, qword [rsp + 0x50]
mov r8d, 0xa
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1402c04e8
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x5c]
cmp rdx, rcx
jne 0x14014f351
lea ecx, [rax + 0x7fffffff]
cmp ecx, 0xfffffffd
ja 0x14014f351
cmp eax, r15d
je 0x14014f376
cmp dword [rsp + 0x58], 0
jle 0x14014f362
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
inc edi
add rsi, 8
cmp edi, r14d
jge 0x14014f73f
jmp 0x14014f2f0
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.1402028a0
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.1402c06dc
lea edx, [r15 + 4]
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
lea r8, [rbp - 0x28]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.14020a590
nop
cmp dword [rsp + 0x38], r15d
jle 0x14014f407
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
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, [0x14034d1a0]
test rbx, rbx
je 0x14014f5a7
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
mov qword [rbp + 0x18], rbx
lea r8, [0x14035af3c]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1402075e0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14014f592
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14014f470
test rax, rax
je 0x14014f592
lea r8, str.path
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.1402075e0
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x60]
call fcn.1400d4050
nop
mov edx, dword [rsp + 0x6c]
test edx, edx
jle 0x14014f56c
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x70]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.140203bb0
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.14011ba60
mov qword [rsp + 0x38], r15
mov edx, dword [rbp - 0x54]
test edx, edx
jne 0x14014f515
mov qword [rsp + 0x30], r12
jmp 0x14014f53d
lea rcx, [rsp + 0x30]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbp - 0x54]
lea rcx, [rsp + 0x30]
call fcn.140203bb0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14014fd40
test al, al
je 0x14014f56c
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.14011a6b0
mov r13b, 1
cmp dword [rsp + 0x68], 0
jle 0x14014f57e
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x58], 0
jle 0x14014f58d
mov rcx, qword [rbp - 0x60]
call fcn.1402bd0e0
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 0
jle 0x14014f434
call fcn.1402bd0e0
jmp 0x14014f434
test r13b, r13b
mov r12, qword [rsp + 0x20]
je 0x14014f6ba
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, [0x14034d1a0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r15
test rbx, rbx
je 0x14014f655
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.140203bb0
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 0x14014f5e3
mov rcx, qword [rdi + 0x48]
call fcn.140218330
test rax, rax
je 0x14014f5e3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
jmp 0x14014f5e3
lea r8, str.Restored
lea rdx, str.action
mov rcx, r12
call fcn.140207630
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, [0x14035af34]
mov rcx, r12
call fcn.140207630
nop
cmp dword [rsp + 0x48], 0
jle 0x14014f6a8
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x28], 0
jle 0x14014f6ba
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
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 0x14014f6e0
nop
mov rbx, qword [rcx]
call fcn.14021ae20
mov rcx, rbx
test rbx, rbx
jne 0x14014f6d0
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 0x14014f722
mov rdi, qword [rbx]
cmp dword [rbx + 0x18], 0
jle 0x14014f712
mov rcx, qword [rbx + 0x10]
call fcn.1402bd0e0
mov rcx, rbx
call fcn.14021ae20
mov rbx, rdi
test rdi, rdi
jne 0x14014f700
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], r15d
cmp dword [rsp + 0x58], 0
jle 0x14014f73f
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
mov rsi, qword [rbp + 0x70]
mov r12, qword [rbp - 0x68]
cmp dword [rbp], 0
jle 0x14014f756
mov rcx, qword [rbp - 8]
call fcn.1402bd0e0
mov rdi, qword [rbp + 0x88]
test r13b, r13b
je 0x14014f769
mov byte [rsi + 0xb8], 1
test r12, r12
je 0x14014f777
mov rcx, r12
call fcn.1402bcebc
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