Function at 0x14000135c
Capabilities:
Delete file

Disassembly:
jmp 0x1400b2160
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401475c0]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rdi, rcx
add rcx, 0x48
call qword [sym.imp.Qt5Core.dll_public:_static_bool___cdecl_QFile::exists_class_QString_const____ptr64_]
test al, al
jne 0x1400b21de
call fcn.140003a8f
mov r10, qword [rax]
lea rcx, str.delete_old_pkgs__current_pkg_not_exist.
mov qword [rsp + 0x20], rcx
mov r9d, 0x1fa
lea r8, str.UpgradeMgr::DeleteOldPkgs
lea rdx, str.UpgradeMgr.cpp
mov rcx, rax
call qword [r10 + Ordinal_26]
jmp 0x1400b25e2
lea rdx, [0x140115f58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x80]
lea rdx, [rdi + 0x48]
lea rcx, [rbp - 0x68]
call fcn.1400023b0
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [0x140115f68]
lea rcx, [rbp - 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x60]
lea rdx, [rdi + 0x48]
lea rcx, [rbp - 0x78]
call fcn.1400023b0
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor r12d, r12d
mov qword [rsp + 0x60], r12
lea rdx, [0x1400cf658]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r9d, [r12 + 1]
or r8d, 0xffffffff
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_int___cdecl_QString::lastIndexOf_class_QString_const____ptr64__int__enum_Qt::CaseSensitivity_const___ptr64]
lea r8d, [rax + 1]
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::left_int____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, str..exe
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.1400026a8
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rcx, [rdi + 0x50]
lea rdx, [rbp - 8]
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
nop
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140002405
nop
cmp qword [rbp + 0x10], 8
jb 0x1400b22f4
mov rcx, qword [rbp - 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromStdWString_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_]
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt5Core.dll_bool___cdecl_operator_class_QString_const____ptr64__class_QString_const____ptr64_]
test al, al
jne 0x1400b235c
lea rdx, str..exe
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.1400026a8
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
sub rcx, rax
sar rcx, 3
test ecx, ecx
jle 0x1400b2542
mov rsi, r12
mov r15d, ecx
lea r13, str.delete_old_pkg__s___s___ret__d_.
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsi + rax]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
nop
lea rdx, [0x140115f58]
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x58]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.1400023b0
nop
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [0x140115f68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1400023b0
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call qword [sym.imp.Qt5Core.dll_bool___cdecl_operator_class_QString_const____ptr64__class_QString_const____ptr64_]
test al, al
je 0x1400b250c
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x40]
call fcn.140003ad5
test eax, eax
jns 0x1400b250c
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x1400b2446
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne r14b
cmp qword [rbp - 0x30], 8
jb 0x1400b2465
mov rcx, qword [rbp - 0x48]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
call fcn.140003a8f
mov rdi, rax
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_QString::toStdString_void____ptr64]
mov rbx, rax
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_QString::toStdString_void____ptr64]
mov rcx, rax
cmp qword [rbx + 0x18], 0x10
jb 0x1400b249b
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 0x10
jb 0x1400b24a5
mov rcx, qword [rax]
mov r10, qword [rdi]
movzx eax, r14b
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r13
mov r9d, 0x21c
lea r8, str.UpgradeMgr::DeleteOldPkgs
lea rdx, str.UpgradeMgr.cpp
mov rcx, rdi
call qword [r10 + reloc.WS2_32.dll_recv]
nop
cmp qword [rbp - 0x30], 0x10
jb 0x1400b24eb
mov rcx, qword [rbp - 0x48]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], r12
mov byte [rbp - 0x48], 0
cmp qword [rbp + 0x30], 0x10
jb 0x1400b250c
mov rcx, qword [rbp + 0x18]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
add rsi, 8
dec r15
je 0x1400b2542
mov rax, qword [rsp + 0x50]
jmp 0x1400b2390
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
cmp qword [rbp - 0x10], 8
jb 0x1400b255e
mov rcx, qword [rbp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
cmp qword [rsp + 0x50], 0
je 0x1400b25cd
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP120.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp rbx, rdi
je 0x1400b25b7
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
add rbx, 8
cmp rbx, rdi
jne 0x1400b25a0
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
lea rcx, [rbp - 0x78]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400bcf10
lea r11, [rsp + 0x140]
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