Function at 0x140088f50
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402120d8]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r14, rdx
movdqa xmm0, xmmword [0x1401e3790]
movdqu xmmword [rbp - 0x10], xmm0
xor r15d, r15d
mov word [rbp - 0x20], r15w
lea r8d, [r15 + 0xa]
lea rdx, str.OldVersion
lea rcx, [rbp - 0x20]
call fcn.1400550f0
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0xa0]
call fcn.14008ce50
nop
lea rcx, [rbp - 0x20]
call fcn.140050da0
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x60]
call fcn.140089ce0
nop
lea rcx, [rbp]
call fcn.14008b390
nop
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x140089047
mov rax, qword [rax]
mov rsi, qword [rax]
lea rdi, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdi, qword [rbp]
lea rbx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rbx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea r8, str._INFO___d___upgrade__install_ok__old_version__s___new_version__s_.
lea edx, [r15 + 3]
mov rcx, qword [0x14021d9a8]
call rsi
call fcn.140073c40
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8, [rbp]
lea rdx, [rbp + 0x60]
mov rcx, rax
call fcn.140075350
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140089df0
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xc0]
call fcn.140175ab0
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0xc0]
call fcn.14008dcb0
mov rax, qword [rbp + 0xc0]
movsxd rax, dword [rax + 4]
mov ebx, dword [rbp + rax + 0xd0]
lea rcx, [rbp + 0xc0]
call fcn.14006df00
test ebx, ebx
jne 0x1400894b2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc0]
call fcn.140175ab0
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movdqa xmm0, xmmword [0x1401e3790]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r15w
lea rax, [rbp + 0xc0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140089120
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x40]
call fcn.1400550f0
nop
movdqa xmm0, xmmword [0x1401e3790]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r15w
mov r8d, ioctlsocket
lea rdx, [0x1401dd9a0]
lea rcx, [rsp + 0x40]
call fcn.1400550f0
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x20]
call fcn.14008b0b0
nop
lea rcx, [rsp + 0x40]
call fcn.140050da0
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140089ce0
nop
lea rcx, [rbp + 0x20]
call fcn.140050da0
nop
lea rcx, [rbp - 0x40]
call fcn.140050da0
nop
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov qword [rbp - 0x48], r15
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140089ef0
nop
mov r8d, 1
lea rdx, [0x1401dd7e4]
mov rcx, rax
call fcn.140067fe0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rsp + 0x68]
call fcn.140050da0
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x20]
call fcn.14008a410
mov rbx, qword [rbp - 0x58]
cmp rbx, qword [rbp - 0x50]
je 0x140089438
mov r13, qword [rbp - 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008922f
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 4
lea r9, str..exe
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
call fcn.140086970
cmp rax, 0xffffffffffffffff
je 0x14008942a
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r15w
mov r8d, ioctlsocket
lea rdx, [0x1401dd9a0]
lea rcx, [rbp - 0x40]
call fcn.1400550f0
nop
lea r8, [rbp - 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.14008b0b0
nop
lea rcx, [rbp - 0x40]
call fcn.140050da0
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140089ce0
nop
lea rcx, [rbp + 0x80]
call fcn.140050da0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rcx, qword [rbp - 0x20]
cmp r13, qword [rsp + 0x50]
jne 0x1400892ef
mov r8, r13
call fcn.140175d80
test eax, eax
jne 0x1400892ef
mov dil, 1
jmp 0x1400892f2
xor dil, dil
lea rcx, [rsp + 0x40]
call fcn.140050e10
test dil, dil
je 0x14008942a
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
mov r8d, reloc.WSOCK32.dll_ntohl
lea rdx, [0x1401dd9b8]
lea rcx, [rsp + 0x40]
call fcn.1400550f0
nop
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.14008b0b0
nop
lea rcx, [rsp + 0x40]
call fcn.140050da0
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x40]
call fcn.140089ce0
nop
lea rcx, [rbp + 0x80]
call fcn.140050da0
nop
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.14008d0c0
test eax, eax
jns 0x140089421
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140089390
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne r14b
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x140089421
mov rax, qword [rax]
mov r15, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140089ce0
mov rsi, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400893d0
mov rsi, qword [rax]
lea rdi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdi, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, r14b
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
mov r9d, eax
lea r8, str._INFO___d___delete_old_pkg__s___s___ret__d___err__d_.
mov edx, 3
mov rcx, qword [0x14021d9a8]
call r15
nop
lea rcx, [rbp - 0x78]
call fcn.140050e10
xor r15d, r15d
lea rcx, [rbp - 0x40]
call fcn.140050e10
add rbx, 0x20
cmp rbx, qword [rbp - 0x50]
jne 0x140089222
lea rcx, [rbp + 0x20]
call fcn.140050da0
nop
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x1400894a8
mov rsi, qword [rbp - 0x50]
cmp rdi, rsi
je 0x140089468
mov rbx, rdi
mov rcx, rbx
call fcn.140050da0
add rbx, 0x20
cmp rbx, rsi
jne 0x140089457
mov rdx, qword [rbp - 0x48]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x140089494
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14008950c
mov rdi, rcx
mov rcx, rdi
call fcn.14015757c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
lea rcx, [rbp - 0x20]
call fcn.140050e10
nop
lea rcx, [rbp + 0x40]
call fcn.140050da0
nop
lea rcx, [rbp]
call fcn.140050e10
nop
lea rcx, [rbp + 0x60]
call fcn.140050e10
nop
lea rcx, [rbp + 0xa0]
call fcn.140050da0
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1401571e0
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14017a820
nop
int3