Function at 0x140216650
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa8
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r15, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rbp + 0x6f]
mov r12, qword [rbp + 0x77]
mov r13, qword [rbp + 0x7f]
lea rdx, [case.0x1400bf494.25]
lea rcx, [rbp - 0x51]
call fcn.14002b3a0
nop
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], ax
mov rax, qword [rbx + 8]
lea rdx, [rax + 0x28]
add rax, 0x48
cmp qword [r14 + 0x18], 8
jb 0x1402166c8
mov r14, qword [r14]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402166d5
mov rcx, qword [rdi]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
lea r9, [rbp - 0x51]
mov r8, r15
mov rdx, r14
call fcn.14021b490
test al, al
jne 0x140216752
cmp qword [rdi + 0x18], 8
jb 0x140216714
mov rdi, qword [rdi]
mov qword [rsp + 0x28], rdi
lea rax, str.Unable_to_download__s
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_WSAGetLastError
lea r8, str.XMLUpdater::v2::CDownloadCommand::DownloadCommand
lea rdx, str.E:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterDownloadCommand.cpp
lea ecx, [r9 - 0x6e]
call fcn.140213350
cmp qword [rbp - 0x41], 0
je 0x140216852
jmp 0x14021683e
lea rcx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rcx, qword [rbp - 0x51]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rbx, rax
mov r8d, 4
lea rdx, [0x140326e88]
mov rcx, rax
call fcn.1402c7dfc
test eax, eax
je 0x14021679b
mov r8d, 4
lea rdx, str..cab
mov rcx, rbx
call fcn.1402c7dfc
test eax, eax
jne 0x1402167d4
lea rcx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rcx, qword [rbp - 0x51]
call fcn.140237030
test al, al
jne 0x1402167d4
lea rax, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rax, qword [rbp - 0x51]
mov qword [rsp + 0x28], rax
lea rax, str.Unable_to_verify_signature__deleting_file:__s
mov r9d, 0x7c
jmp 0x140216821
mov r8, qword [rsi + 0x10]
test r8, r8
je 0x140216856
lea rdx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdx, qword [rbp - 0x31]
cmp qword [rsi + 0x18], 8
jb 0x1402167f5
mov rsi, qword [rsi]
mov rcx, rsi
call fcn.1402c7dfc
test eax, eax
je 0x140216856
lea rax, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rax, qword [rbp - 0x51]
mov qword [rsp + 0x28], rax
lea rax, str.Unable_to_verify_MD5__deleting_file:__s
mov r9d, 0x86
mov qword [rsp + 0x20], rax
lea r8, str.XMLUpdater::v2::CDownloadCommand::DownloadCommand
lea rdx, str.E:BT0a209782_47a3_49ff_a189_59d4c06152f0WebAdvisor_XmlUpdater_srcXmlUpdaterDownloadCommand.cpp
mov ecx, 1
call fcn.140213350
lea rcx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x140216858
mov bl, 1
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140216894
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14021688f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14021690b
call fcn.140296f94
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], ax
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x1402168e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1402168dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140216905
call fcn.140296f94
movzx eax, bl
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140296f70
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1402ba3ec
nop
call fcn.1402ba3ec
nop
int3