Function at 0x1401402c0
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 0x14014033a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 8
je 0x14014033a
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140140323
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.1401e9030
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.14029b4d8
lea edx, [r14 + 4]
lea rcx, [rsp + 0x20]
call fcn.1401ea290
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1401f0b30
test eax, eax
setg bl
cmp dword [rsp + 0x28], r14d
jle 0x1401403b7
mov rcx, qword [rsp + 0x20]
call fcn.140298600
mov r12, qword [rbp - 0x68]
test bl, bl
je 0x140140869
lea rdx, [rbp - 8]
mov rcx, rsi
call fcn.14013f6a0
nop
mov edi, r14d
mov r14d, dword [rbp - 0x70]
test r14d, r14d
jle 0x140140847
mov rsi, r12
nop dword [rax]
nop word [rax + rax]
mov r12, qword [rsi]
mov qword [rsp + 0x20], r12
lea r8, [0x1402e90d4]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1401edd30
nop
cmp dword [rsp + 0x5c], 0
je 0x140140451
mov rbx, qword [rsp + 0x50]
mov r8d, 0xa
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14029b2e4
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x5c]
cmp rdx, rcx
jne 0x140140451
lea ecx, [rax + 0x7fffffff]
cmp ecx, 0xfffffffd
ja 0x140140451
cmp eax, r15d
je 0x140140476
cmp dword [rsp + 0x58], 0
jle 0x140140462
mov rcx, qword [rsp + 0x50]
call fcn.140298600
inc edi
add rsi, 8
cmp edi, r14d
jge 0x14014083f
jmp 0x1401403f0
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.1401e9030
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.14029b4d8
lea edx, [r15 + 4]
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
lea r8, [rbp - 0x28]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.1401f0ce0
nop
cmp dword [rsp + 0x38], r15d
jle 0x140140507
mov rcx, qword [rsp + 0x30]
call fcn.140298600
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, [0x140323de0]
test rbx, rbx
je 0x1401406a7
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
mov qword [rbp + 0x18], rbx
lea r8, [0x140330e14]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401edd30
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140140692
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140140570
test rax, rax
je 0x140140692
lea r8, str.path
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.1401edd30
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x60]
call fcn.1400d1690
nop
mov edx, dword [rsp + 0x6c]
test edx, edx
jle 0x14014066c
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x70]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x6c]
lea rcx, [rsp + 0x70]
call fcn.1401ea290
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.140119b80
mov qword [rsp + 0x38], r15
mov edx, dword [rbp - 0x54]
test edx, edx
jne 0x140140615
mov qword [rsp + 0x30], r12
jmp 0x14014063d
lea rcx, [rsp + 0x30]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbp - 0x54]
lea rcx, [rsp + 0x30]
call fcn.1401ea290
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140140e40
test al, al
je 0x14014066c
lea rdx, [rbp - 0x60]
mov rcx, r14
call fcn.1401187d0
mov r13b, 1
cmp dword [rsp + 0x68], 0
jle 0x14014067e
mov rcx, qword [rsp + 0x60]
call fcn.140298600
nop
cmp dword [rbp - 0x58], 0
jle 0x14014068d
mov rcx, qword [rbp - 0x60]
call fcn.140298600
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 0
jle 0x140140534
call fcn.140298600
jmp 0x140140534
test r13b, r13b
mov r12, qword [rsp + 0x20]
je 0x1401407ba
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, [0x140323de0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r15
test rbx, rbx
je 0x140140755
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0x1c]
lea rcx, [rsp + 0x20]
call fcn.1401ea290
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 0x1401406e3
mov rcx, qword [rdi + 0x48]
call fcn.1401fe7d0
test rax, rax
je 0x1401406e3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
jmp 0x1401406e3
lea r8, str.Restored
lea rdx, str.action
mov rcx, r12
call fcn.1401edd80
lea rcx, [rbp - 0x60]
call fcn.1400d1620
nop
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400ca9e0
nop
mov r8, qword [rax]
lea rdx, [0x140330de4]
mov rcx, r12
call fcn.1401edd80
nop
cmp dword [rsp + 0x48], 0
jle 0x1401407a8
mov rcx, qword [rsp + 0x40]
call fcn.140298600
nop
cmp dword [rsp + 0x28], 0
jle 0x1401407ba
mov rcx, qword [rsp + 0x20]
call fcn.140298600
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 0x1401407e0
nop
mov rbx, qword [rcx]
call fcn.1402012c0
mov rcx, rbx
test rbx, rbx
jne 0x1401407d0
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 0x140140822
mov rdi, qword [rbx]
cmp dword [rbx + 0x18], 0
jle 0x140140812
mov rcx, qword [rbx + 0x10]
call fcn.140298600
mov rcx, rbx
call fcn.1402012c0
mov rbx, rdi
test rdi, rdi
jne 0x140140800
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], r15d
cmp dword [rsp + 0x58], 0
jle 0x14014083f
mov rcx, qword [rsp + 0x50]
call fcn.140298600
mov rsi, qword [rbp + 0x70]
mov r12, qword [rbp - 0x68]
cmp dword [rbp], 0
jle 0x140140856
mov rcx, qword [rbp - 8]
call fcn.140298600
mov rdi, qword [rbp + 0x88]
test r13b, r13b
je 0x140140869
mov byte [rsi + 0xb8], 1
test r12, r12
je 0x140140877
mov rcx, r12
call fcn.1402983dc
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