Function at 0x14014d320
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r15d, edx
mov r13, rcx
mov qword [rsp + 0x58], rcx
xor r12b, r12b
lea rax, [rcx + 0x18]
mov qword [rbp - 0x30], rax
lea rdi, [rax + 8]
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [r13 + 0xb0]
mov rbx, qword [rax + 0x18]
test rbx, rbx
je 0x14014d3b7
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 8
je 0x14014d3b7
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14014d3a0
lea rax, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x28], r14
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.1401ff260
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.1402bd21c
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.140200570
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140206e10
test eax, eax
setg bl
cmp dword [rsp + 0x28], r14d
jle 0x14014d438
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
mov rsi, qword [rsp + 0x78]
test bl, bl
je 0x14014d718
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.14014cb50
nop
mov edi, r14d
mov r14d, dword [rsp + 0x70]
test r14d, r14d
jle 0x14014d6f7
nop dword [rax]
nop word [rax + rax]
mov r13, qword [rsi]
lea r8, [0x14030c634]
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140204010
nop
cmp dword [rsp + 0x44], 0
je 0x14014d4cc
mov rbx, qword [rsp + 0x38]
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1402bd028
mov rdx, qword [rsp + 0x20]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x44]
cmp rdx, rcx
jne 0x14014d4cc
lea ecx, [rax + 0x7fffffff]
cmp ecx, 0xfffffffd
ja 0x14014d4cc
cmp eax, r15d
je 0x14014d4ee
cmp dword [rsp + 0x40], 0
jle 0x14014d4dd
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
inc edi
add rsi, 8
cmp edi, r14d
jge 0x14014d6ed
jmp 0x14014d470
lea rsi, vtable.Core::Collection_class_Core::Xml::XmlElement____ptr64_.0
mov qword [rbp - 0x80], rsi
xor r14d, r14d
mov dword [rbp - 0x78], r14d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x28], r14
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.1401ff260
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r9d, [r14 + 4]
lea r8, str.File
mov rcx, qword [rsp + 0x20]
call fcn.1402bd21c
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.140200570
nop
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140206fc0
nop
cmp dword [rsp + 0x28], r14d
jle 0x14014d56b
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
lea rax, vtable.Core::Collection_class_Core::Xml::XmlElement____ptr64_::Enumerator.0
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x48], rax
mov rbx, qword [rbp - 0x70]
mov qword [rbp - 0x40], rbx
test rbx, rbx
je 0x14014d659
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
mov qword [rbp - 0x40], rbx
lea r8, [0x1403568ec]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140204010
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14014d644
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14014d5c1
test rax, rax
je 0x14014d644
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400d2bd0
nop
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14014d62e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14014d62e
mov rcx, qword [rdi + 0x48]
call fcn.140214cf0
test rax, rax
je 0x14014d62e
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
cmp dword [rsp + 0x50], 0
jle 0x14014d63f
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
mov rcx, qword [rsp + 0x20]
cmp dword [rsp + 0x28], 0
jle 0x14014d586
call fcn.1402b9c20
jmp 0x14014d586
lea r8, str.Deleted
lea rdx, str.action
mov rcx, r13
call fcn.140204060
lea rcx, [rsp + 0x20]
call fcn.1400cafe0
nop
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1400cb0d0
nop
mov r8, qword [rax]
lea rdx, [0x1403568f0]
mov rcx, r13
call fcn.140204060
nop
cmp dword [rsp + 0x50], 0
jle 0x14014d6ad
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
nop
mov r12b, 1
mov qword [rbp - 0x80], rsi
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14014d6d0
nop dword [rax]
mov rbx, qword [rcx]
call fcn.1402177e0
mov rcx, rbx
test rbx, rbx
jne 0x14014d6c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x78], r14d
cmp dword [rsp + 0x40], 0
jle 0x14014d6ed
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
mov rsi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x58]
cmp dword [rbp - 0x58], 0
jle 0x14014d706
mov rcx, qword [rbp - 0x60]
call fcn.1402b9c20
mov rdi, qword [rsp + 0x60]
test r12b, r12b
je 0x14014d718
mov byte [r13 + 0xb8], 1
test rsi, rsi
je 0x14014d726
mov rcx, rsi
call fcn.1402b99fc
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, r12b
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret