Function at 0x1806a531
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x181ce00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x40], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x34], ecx
mov ecx, 0x181cf9b0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
call fcn.180269b1
and dword [ebp - 0x18], 0
lea eax, [ebx + 0x14]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
push eax
call fcn.1801581d
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.1800a0ba
lea ecx, [eax + 0x10]
xor eax, eax
inc eax
mov dword [ebp - 0x10], ecx
cmp dword [ecx - 0xc], 0
mov ebx, eax
mov dword [ebp - 0x38], eax
je 0x1806a5cc
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.1800a0ba
push 3
pop ebx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
je 0x1806a5cf
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.1800a0ba
add eax, 0x10
push 7
pop ebx
cmp dword [eax - 0xc], 0
je 0x1806a5d2
mov byte [ebp - 0x19], 0
jmp 0x1806a5e0
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x40], ebx
inc ecx
mov byte [ebp - 0x19], cl
test bl, 4
je 0x1806a5eb
lea ecx, [eax - 0x10]
and ebx, 0xfffffffb
call fcn.18006f52
test bl, 2
je 0x1806a5fb
lea ecx, [esi - 0x10]
and ebx, 0xfffffffd
call fcn.18006f52
mov ecx, dword [ebp - 0x10]
push 0xfffffffffffffffe
pop esi
and ebx, esi
add ecx, 0xfffffff0
mov dword [ebp - 0x40], ebx
call fcn.18006f52
cmp byte [ebp - 0x19], 0
je 0x1806a674
movzx ecx, byte [0x181d4056]
neg ecx
sbb ecx, ecx
and ecx, 0x181d3f50
je 0x1806a66a
push 7
pop eax
push esi
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call fcn.18008b3f
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0xc]
call fcn.1800722f
push dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push str._PackageCache_invalid_key__source_file__s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ebx, 0x80070057
jmp 0x1806aaf3
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.1806b1aa
mov ebx, eax
test ebx, ebx
jns 0x1806a6df
movzx ecx, byte [0x181d4056]
neg ecx
sbb ecx, ecx
and ecx, 0x181d3f50
je 0x1806a6d7
push 7
pop eax
lfence
push esi
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call fcn.18008b3f
push ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push str._Failed_to_build_cache_filename__0x_08x_
push eax
call fcn.18007210
add esp, 0xc
mov edi, dword [ebp - 0xc]
jmp 0x1806aaeb
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x3c]
call fcn.180165cb
mov ecx, dword [eax]
call fcn.1800c9d0
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
test ebx, ebx
jns 0x1806a758
movzx ecx, byte [0x181d4056]
neg ecx
sbb ecx, ecx
and ecx, 0x181d3f50
je 0x1806a6d7
push 7
pop eax
lfence
push esi
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call fcn.18008b3f
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0x34]
mov edx, edi
mov dword [ebp - 0x24], eax
call fcn.1800722f
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push ebx
push str._failed_to_create_cache_directory__0x_08x___s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0x34]
add esp, 0x10
jmp 0x1806aae3
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.180108ab
mov bl, al
test bl, bl
je 0x1806a7f3
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
call fcn.1806b30e
test eax, eax
js 0x1806a7f0
lea ecx, [ebp - 0xc]
call fcn.1806b394
test eax, eax
js 0x1806a7f0
movzx ecx, byte [0x181d4056]
mov edi, dword [ebp - 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0x181d3f50
je 0x1806a7df
push 7
pop eax
push 3
pop edx
push edx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.18008b3f
mov edx, edi
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x34]
call fcn.1800722f
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push str._PackageCache::Put__destination_file__s_already_cached_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0x34]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, 0x181cf9d0
call fcn.180269b1
xor ebx, ebx
jmp 0x1806aaeb
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
and dword [ebp - 0x10], 0
lea edx, [edx + 4]
call fcn.180165cb
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.180074da
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
test bl, bl
jne 0x1806a847
call fcn.1801fada
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
or ebx, 8
call fcn.1801fea2
push esi
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
je 0x1806a84a
jmp 0x1806a84e
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 0x38], 0
test bl, 8
je 0x1806a85e
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp byte [ebp - 0x38], 0
je 0x1806a928
mov ebx, dword [ebp - 0x34]
push 0
push dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
movzx ecx, byte [0x181d4056]
test eax, eax
je 0x1806a8cf
neg ecx
sbb ecx, ecx
and ecx, 0x181d3f50
je 0x1806aad4
push 7
pop eax
push 3
pop edx
push edx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.18008b3f
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
call fcn.1800722f
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push str._PackageCache::Put__hardlinked___source_file__s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0x38]
jmp 0x1806aac9
neg ecx
mov edi, 0x181d3f50
sbb ecx, ecx
and ecx, edi
je 0x1806a92d
or dword [ebp - 0x28], 0xffffffff
push 7
pop eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
call fcn.18008b3f
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
call fcn.1800722f
mov esi, dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea eax, [ebp - 0x30]
push str._PackageCache::Get__hardlink_failed__GLE:_0x_08X__source_file__s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0x38]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.18006f52
jmp 0x1806a92d
mov edi, 0x181d3f50
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0xc]
call fcn.1806a295
mov ebx, eax
test ebx, ebx
jns 0x1806a9bc
movzx ecx, byte [0x181d4056]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp - 0xc]
je 0x1806aae0
push 7
pop eax
push 0xfffffffffffffffe
pop edx
lfence
push edx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.18008b3f
mov edx, edi
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x40]
call fcn.1800722f
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x38]
call fcn.1800722f
push esi
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push ebx
push str._failed_to_copy_file_to_cache__0x_08x___s___s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0x38]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.18006f52
jmp 0x1806aae0
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
mov edx, esi
call fcn.1806b30e
mov ebx, eax
test ebx, ebx
jns 0x1806aa18
movzx ecx, byte [0x181d4056]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp - 0xc]
je 0x1806aa7e
push 7
pop eax
push 0xfffffffffffffffe
pop edx
lfence
push edx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.18008b3f
mov esi, dword [esi]
lea ecx, [ebp - 0x20]
mov edx, edi
mov dword [ebp - 0x24], eax
call fcn.1800722f
push esi
push dword [ebp - 0x20]
push str._failed_to_verify_hash_for_file__s__expected_hash__s_
jmp 0x1806aa67
lea ecx, [ebp - 0xc]
call fcn.1806b394
movzx ecx, byte [0x181d4056]
mov ebx, eax
test ebx, ebx
jns 0x1806aa87
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp - 0xc]
je 0x1806aa7e
push 7
pop eax
push 0xfffffffffffffffe
pop edx
lfence
push edx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.18008b3f
mov edx, edi
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
call fcn.1800722f
push dword [ebp - 0x20]
push ebx
push str._failed_to_verify_Microsoft_signature_for_file__0x_08x___s_
lea eax, [ebp - 0x30]
push eax
call fcn.18007210
mov ecx, dword [ebp - 0x20]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.18006f52
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1806aae0
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp - 0xc]
je 0x1806aad4
push 7
pop eax
push 3
pop edx
push edx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.18008b3f
mov edx, edi
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
call fcn.1800722f
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push str._PackageCache::Put__Cache_succeeded__destination_file__s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, 0x181cf9d0
call fcn.180269b1
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [edi - 0x10]
call fcn.18006f52
lea ecx, [ebp - 0x18]
call fcn.18015848
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811aa48
leave
ret 0xc