Function at 0x14014d770
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 0x14014d7ea
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 8
je 0x14014d7ea
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14014d7d3
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.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, [rbp - 0x78]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140206e10
test eax, eax
setg bl
cmp dword [rsp + 0x28], r14d
jle 0x14014d867
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
mov r12, qword [rbp - 0x68]
test bl, bl
je 0x14014dd19
lea rdx, [rbp - 8]
mov rcx, rsi
call fcn.14014cb50
nop
mov edi, r14d
mov r14d, dword [rbp - 0x70]
test r14d, r14d
jle 0x14014dcf7
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov r12, qword [rsi]
mov qword [rsp + 0x20], r12
lea r8, [0x14030c634]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140204010
nop
cmp dword [rsp + 0x5c], 0
je 0x14014d901
mov rbx, qword [rsp + 0x50]
mov r8d, 0xa
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1402bd028
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x5c]
cmp rdx, rcx
jne 0x14014d901
lea ecx, [rax + 0x7fffffff]
cmp ecx, 0xfffffffd
ja 0x14014d901
cmp eax, r15d
je 0x14014d926
cmp dword [rsp + 0x58], 0
jle 0x14014d912
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
inc edi
add rsi, 8
cmp edi, r14d
jge 0x14014dcef
jmp 0x14014d8a0
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.1401ff260
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.1402bd21c
lea edx, [r15 + 4]
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea r8, [rbp - 0x28]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140206fc0
nop
cmp dword [rsp + 0x38], r15d
jle 0x14014d9b7
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
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, [0x140348ca0]
test rbx, rbx
je 0x14014db57
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
mov qword [rbp + 0x18], rbx
lea r8, [0x1403568ec]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140204010
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14014db42
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14014da20
test rax, rax
je 0x14014db42
lea r8, str.path
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140204010
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x60]
call fcn.1400d2bd0
nop
mov edx, dword [rsp + 0x6c]
test edx, edx
jle 0x14014db1c
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x70]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.140200570
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.14011a070
mov qword [rsp + 0x38], r15
mov edx, dword [rbp - 0x54]
test edx, edx
jne 0x14014dac5
mov qword [rsp + 0x30], r12
jmp 0x14014daed
lea rcx, [rsp + 0x30]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbp - 0x54]
lea rcx, [rsp + 0x30]
call fcn.140200570
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14014e2f0
test al, al
je 0x14014db1c
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.140118cc0
mov r13b, 1
cmp dword [rsp + 0x68], 0
jle 0x14014db2e
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x58], 0
jle 0x14014db3d
mov rcx, qword [rbp - 0x60]
call fcn.1402b9c20
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 0
jle 0x14014d9e4
call fcn.1402b9c20
jmp 0x14014d9e4
test r13b, r13b
mov r12, qword [rsp + 0x20]
je 0x14014dc6a
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, [0x140348ca0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r15
test rbx, rbx
je 0x14014dc05
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.140200570
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 0x14014db93
mov rcx, qword [rdi + 0x48]
call fcn.140214cf0
test rax, rax
je 0x14014db93
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
jmp 0x14014db93
lea r8, str.Restored
lea rdx, str.action
mov rcx, r12
call fcn.140204060
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, [0x1403568f0]
mov rcx, r12
call fcn.140204060
nop
cmp dword [rsp + 0x48], 0
jle 0x14014dc58
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x28], 0
jle 0x14014dc6a
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
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 0x14014dc90
nop
mov rbx, qword [rcx]
call fcn.1402177e0
mov rcx, rbx
test rbx, rbx
jne 0x14014dc80
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 0x14014dcd2
mov rdi, qword [rbx]
cmp dword [rbx + 0x18], 0
jle 0x14014dcc2
mov rcx, qword [rbx + 0x10]
call fcn.1402b9c20
mov rcx, rbx
call fcn.1402177e0
mov rbx, rdi
test rdi, rdi
jne 0x14014dcb0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], r15d
cmp dword [rsp + 0x58], 0
jle 0x14014dcef
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
mov rsi, qword [rbp + 0x70]
mov r12, qword [rbp - 0x68]
cmp dword [rbp], 0
jle 0x14014dd06
mov rcx, qword [rbp - 8]
call fcn.1402b9c20
mov rdi, qword [rbp + 0x88]
test r13b, r13b
je 0x14014dd19
mov byte [rsi + 0xb8], 1
test r12, r12
je 0x14014dd27
mov rcx, r12
call fcn.1402b99fc
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