Function at 0x140044f80
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1a8
movaps xmmword [rsp + 0x190], xmm6
mov r15, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x218]
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x188], rax
movaps xmm6, xmmword [0x1402825c0]
lea r12, [rsp + 0xe0]
movaps xmmword [r12 + 0x60], xmm6
movaps xmmword [r12 + 0x50], xmm6
movaps xmmword [r12 + 0x40], xmm6
movaps xmmword [r12 + 0x30], xmm6
movaps xmmword [r12 + 0x20], xmm6
movaps xmmword [r12 + 0x10], xmm6
movaps xmmword [r12], xmm6
mov rcx, r12
call fcn.1400405e0
mov rcx, r12
mov rdx, rdi
mov r8, rbx
call fcn.140040610
cmp dword [rbx], 0
je 0x140045060
mov rcx, rsi
call fcn.1401be760
lea rcx, [rsp + 0xe0]
call fcn.140041c20
mov rcx, rdi
call fcn.1401c5d60
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsp + 0x210]
xor ebp, ebp
mov dword [r15], ebp
mov eax, dword [rsp + 0x114]
mov dword [r15 + 8], eax
mov dword [r15 + 0xc], ebp
mov rcx, r12
mov rdx, r15
mov r8, rbx
call fcn.14002dcf0
cmp dword [rbx], ebp
jne 0x140045014
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd0], rax
movaps xmmword [rsp + 0xc0], xmm6
movsx rax, byte [rsp + 0x137]
test rax, rax
js 0x1400450c0
lea rcx, [rsp + 0x120]
jmp 0x1400450d0
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
test rax, rax
js 0x140045576
sete al
test rcx, rcx
setne cl
or cl, al
je 0x140045576
lea r13, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov rcx, r13
call fcn.1401b4b90
movsx rax, byte [r13 + 0x17]
test rax, rax
jns 0x14004512c
mov rax, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xb8], rax
test rax, rax
js 0x140045576
sete al
test r13, r13
setne cl
or cl, al
je 0x140045576
lea r13, [rsp + 0xc0]
lea r8, [rsp + 0xb0]
mov rcx, r14
mov rdx, r13
call fcn.1401bf380
cmp byte [rsp + 0xa7], 0
jns 0x140045188
mov rcx, qword [rsp + 0x90]
call fcn.1401ef41c
cmp byte [rsp + 0xd7], 0
jns 0x14004519a
mov r13, qword [rsp + 0xc0]
lea rdx, [0x1402a0404]
mov rcx, r13
call fcn.1402178d8
test rax, rax
je 0x14004544e
mov r14, rax
lea r13, [rsp + 0xe0]
mov rcx, r13
mov rdx, rbx
call fcn.140041cc0
test al, al
je 0x140045377
movsxd rbp, dword [rsp + 0x118]
mov dword [r15], 1
mov eax, dword [rsp + 0x11c]
mov dword [r15 + 0xc], eax
mov rcx, r12
mov rdx, r15
mov r8, rbx
call fcn.14002dcf0
cmp dword [rbx], 0
jne 0x140045377
mov rcx, qword [rsp + 0x138]
mov r8d, 1
mov rdx, rbp
mov r9, r14
call fcn.14021aa3c
cmp rax, 1
je 0x1400451bd
lea rcx, [rsp + 0xc0]
lea r12, [rsp + 0x90]
mov rdx, r12
call fcn.1400691b0
mov edx, dword [r15 + 0xc]
lea r15, [rsp + 0x28]
mov rcx, r15
call fcn.1401adaa0
lea r8, str.Cannot_write
xor r13d, r13d
mov r9d, SafeArrayGetDim
mov rcx, r15
xor edx, edx
call fcn.1401ac340
movups xmm0, xmmword [rax]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
mov qword [rax + 0x10], r13
xorps xmm6, xmm6
movups xmmword [rax], xmm6
lea rdx, str._bytes_to_the_update_file
mov r8d, 0x1a
call fcn.1401ac9d0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
mov qword [rax + 0x10], r13
movups xmmword [rax], xmm6
movsx r8, byte [r12 + 0x17]
test r8, r8
jns 0x1400452c5
mov r8, qword [rsp + 0x98]
mov r12, qword [rsp + 0x90]
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.1401ac9d0
mov bpl, byte [rax]
mov rcx, qword [rax + 0xf]
mov qword [rsp + 0x15e], rcx
movups xmm0, xmmword [rax + 1]
movaps xmmword [rsp + 0x150], xmm0
mov r15b, byte [rax + 0x17]
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r13
mov dword [rbx], 3
cmp byte [rbx + 0x1f], 0
jns 0x14004530d
mov rcx, qword [rbx + 8]
call fcn.1401ef41c
mov byte [rbx + 8], bpl
movaps xmm0, xmmword [rsp + 0x150]
movups xmmword [rbx + 9], xmm0
mov rax, qword [rsp + 0x15e]
mov qword [rbx + 0x17], rax
mov byte [rbx + 0x1f], r15b
cmp byte [rsp + 0x77], 0
jns 0x14004533e
mov rcx, qword [rsp + 0x60]
call fcn.1401ef41c
cmp byte [rsp + 0x57], 0
jns 0x14004534f
mov rcx, qword [rsp + 0x40]
call fcn.1401ef41c
cmp byte [rsp + 0x3f], 0
jns 0x140045360
mov rcx, qword [rsp + 0x28]
call fcn.1401ef41c
cmp byte [rsp + 0xa7], 0
jns 0x140045377
mov rcx, qword [rsp + 0x90]
call fcn.1401ef41c
mov eax, dword [rbx]
mov ecx, dword [rsp + 0x11c]
or ecx, eax
jne 0x140045412
mov ecx, 0x30
call fcn.1401ef3e0
mov r15, rax
add rax, 0x2a
lea rcx, str.No_data_was_downloaded_for_the_update_file
cmp r15, rcx
seta dl
cmp rax, rcx
setbe al
or al, dl
je 0x140045576
movups xmm0, xmmword [0x1402a0473]
movups xmmword [r15 + 0x1a], xmm0
movups xmm0, xmmword [0x1402a0469]
movups xmmword [r15 + 0x10], xmm0
movups xmm0, xmmword [str.No_data_was_downloaded_for_the_update_file]
movups xmmword [r15], xmm0
mov byte [r15 + 0x2a], 0
mov dword [rbx], 4
mov eax, 4
cmp byte [rbx + 0x1f], 0
jns 0x1400453f8
mov rcx, qword [rbx + 8]
call fcn.1401ef41c
mov eax, dword [rbx]
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], 0x2a
movabs rcx, 0x8000000000000030
mov qword [rbx + 0x18], rcx
test eax, eax
je 0x14004555c
mov rcx, r14
call fcn.14020f7a4
mov ecx, eax
xor edx, edx
call fcn.14020bbe8
mov rcx, r14
call fcn.140219b34
cmp byte [rsp + 0xd7], 0
js 0x140045534
lea rcx, [rsp + 0xc0]
jmp 0x14004553c
lea rcx, [rsp + 0xc0]
lea r14, [rsp + 0x60]
mov rdx, r14
call fcn.1400691b0
lea r8, str.Cannot_open_update_file
xor r15d, r15d
mov r9d, 0x18
mov rcx, r14
xor edx, edx
call fcn.1401ac340
movups xmm0, xmmword [rax]
lea rcx, [rsp + 0x90]
movaps xmmword [rcx], xmm0
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
mov qword [rax + 0x10], r15
xorps xmm6, xmm6
movups xmmword [rax], xmm6
lea rdx, str._for_writing
mov r8d, SafeArrayGetDim
call fcn.1401ac9d0
mov bpl, byte [rax]
mov rcx, qword [rax + 0xf]
mov qword [rsp + 0x17e], rcx
movups xmm0, xmmword [rax + 1]
movaps xmmword [rsp + 0x170], xmm0
mov r14b, byte [rax + 0x17]
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r15
mov dword [rbx], 3
cmp byte [rbx + 0x1f], 0
jns 0x1400454ea
mov rcx, qword [rbx + 8]
call fcn.1401ef41c
mov byte [rbx + 8], bpl
movaps xmm0, xmmword [rsp + 0x170]
movups xmmword [rbx + 9], xmm0
mov rax, qword [rsp + 0x17e]
mov qword [rbx + 0x17], rax
mov byte [rbx + 0x1f], r14b
cmp byte [rsp + 0xa7], 0
jns 0x140045521
mov rcx, qword [rsp + 0x90]
call fcn.1401ef41c
cmp byte [rsp + 0x77], 0
jns 0x140045542
mov rcx, qword [rsp + 0x60]
call fcn.1401ef41c
jmp 0x140045542
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call fcn.1401be760
lea rcx, [rsp + 0xc0]
call fcn.1401be900
jmp 0x14004501c
mov rcx, r14
call fcn.140219b34
lea rdx, [rsp + 0xc0]
mov rcx, rsi
call fcn.140067b30
jmp 0x14004554a
ud2