Function at 0x1804cffb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x14], 0
push ebx
push esi
mov ebx, ecx
mov ecx, 0x18210870
push edi
mov dword [ebp - 0x10], ebx
call fcn.1801f0d2
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.18012e1c
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18009e91
lea ecx, [eax + 0x10]
xor eax, eax
inc eax
mov dword [ebp - 0xc], ecx
cmp dword [ecx - 0xc], 0
mov ebx, eax
mov dword [ebp - 8], eax
je 0x1804d078
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.18009e91
push 3
pop ebx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
je 0x1804d07b
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.18009e91
add eax, 0x10
push 7
pop ebx
cmp dword [eax - 0xc], 0
je 0x1804d07e
mov byte [ebp + 0xb], 0
jmp 0x1804d087
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov byte [ebp + 0xb], 1
test bl, 4
je 0x1804d092
lea ecx, [eax - 0x10]
and ebx, 0xfffffffb
call fcn.1800687d
test bl, 2
je 0x1804d0a2
lea ecx, [esi - 0x10]
and ebx, 0xfffffffd
call fcn.1800687d
mov ecx, dword [ebp - 0xc]
push 0xfffffffffffffffe
pop esi
and ebx, esi
add ecx, 0xfffffff0
mov dword [ebp - 0x14], ebx
call fcn.1800687d
cmp byte [ebp + 0xb], 0
je 0x1804d11b
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1804d111
push 7
pop eax
push esi
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
call fcn.18008988
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
call fcn.18006ac3
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push str._PackageCache_invalid_key__source_file__s_
push eax
call fcn.18006aa4
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ebx, 0x80070057
jmp 0x1804d541
lea ecx, [ebp + 8]
call fcn.18009c8e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push edi
call fcn.1804db06
mov edi, dword [ebp + 8]
mov ebx, eax
test ebx, ebx
jns 0x1804d17d
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1804d539
push 7
pop eax
push esi
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
call fcn.18008988
push ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._Failed_to_build_cache_filename__0x_08x_
push eax
call fcn.18006aa4
add esp, 0xc
jmp 0x1804d539
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1801396f
mov ecx, dword [eax]
call fcn.1800bb9e
mov ecx, dword [ebp - 0x10]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.1800687d
test ebx, ebx
jns 0x1804d1f4
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1804d539
push 7
pop eax
push esi
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
call fcn.18008988
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
call fcn.18006ac3
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push ebx
push str._failed_to_create_cache_directory__0x_08x___s_
push eax
call fcn.18006aa4
mov ecx, dword [ebp + 0xc]
add esp, 0x10
jmp 0x1804d531
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.1800e6f7
mov bl, al
test bl, bl
je 0x1804d28f
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
call fcn.1804dc38
test eax, eax
js 0x1804d28c
lea ecx, [ebp + 8]
call fcn.1804dcaa
test eax, eax
js 0x1804d28c
movzx ecx, byte [0x18217983]
mov edi, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1804d27b
push 7
pop eax
push 3
pop edx
push edx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.18008988
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
call fcn.18006ac3
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push str._PackageCache::Put__destination_file__s_already_cached_
push eax
call fcn.18006aa4
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, 0x18210890
call fcn.1801f0d2
xor ebx, ebx
jmp 0x1804d539
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea edx, [esi + 4]
call fcn.1801396f
lea ecx, [ebp - 0xc]
push dword [eax]
call fcn.18006d98
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.1800687d
test bl, bl
jne 0x1804d2d8
call fcn.1801a8a4
push 8
pop ebx
lea eax, [ebp - 0x14]
push eax
call fcn.1801ab46
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
je 0x1804d2db
jmp 0x1804d2e5
mov ebx, dword [ebp - 0x14]
xor al, al
mov dword [ebp - 8], eax
test bl, 8
je 0x1804d2f3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, dword [ebp - 8]
test al, al
je 0x1804d3c9
push 0
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
movzx ecx, byte [0x18217983]
test eax, eax
je 0x1804d370
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x1804d361
push 7
pop eax
push 3
pop edx
push edx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.18008988
mov edx, dword [esi + 4]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x20], eax
call fcn.18006ac3
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push str._PackageCache::Put__hardlinked___source_file__s_
push eax
call fcn.18006aa4
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, 0x18210890
call fcn.1801f0d2
jmp 0x1804d52c
neg ecx
mov edi, 0x18217880
sbb ecx, ecx
and ecx, edi
je 0x1804d3ce
or dword [ebp - 0x24], 0xffffffff
push 7
pop eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
call fcn.18008988
mov edx, dword [esi + 4]
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], eax
call fcn.18006ac3
mov esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea eax, [ebp - 0x2c]
push str._PackageCache::Get__hardlink_failed__GLE:_0x_08X__source_file__s_
push eax
call fcn.18006aa4
mov ecx, dword [ebp - 8]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.1800687d
jmp 0x1804d3ce
mov edi, 0x18217880
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 8]
call fcn.1804cdbf
mov ebx, eax
test ebx, ebx
jns 0x1804d45a
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp + 8]
je 0x1804d52e
push 7
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.18008988
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 8]
call fcn.18006ac3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [eax + 4]
call fcn.18006ac3
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push ebx
push str._failed_to_copy_file_to_cache__0x_08x___s___s_
push eax
call fcn.18006aa4
mov ecx, dword [ebp + 0x10]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1800687d
jmp 0x1804d52e
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 8]
mov edx, esi
call fcn.1804dc38
mov ebx, eax
test ebx, ebx
jns 0x1804d4b3
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp + 8]
je 0x1804d516
push 7
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.18008988
mov esi, dword [esi]
lea ecx, [ebp + 0xc]
mov edx, edi
mov dword [ebp - 0x20], eax
call fcn.18006ac3
push esi
push dword [ebp + 0xc]
push str._failed_to_verify_hash_for_file__s__expected_hash__s_
jmp 0x1804d4ff
lea ecx, [ebp + 8]
call fcn.1804dcaa
mov ebx, eax
test ebx, ebx
jns 0x1804d51f
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp + 8]
je 0x1804d516
push 7
pop eax
push 0xfffffffffffffffe
pop edx
push edx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.18008988
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
call fcn.18006ac3
push dword [ebp + 0xc]
push ebx
push str._failed_to_verify_Microsoft_signature_for_file__0x_08x___s_
lea eax, [ebp - 0x2c]
push eax
call fcn.18006aa4
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.1800687d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1804d52e
mov ecx, 0x18210890
call fcn.1801f0d2
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.1800687d
lea ecx, [edi - 0x10]
call fcn.1800687d
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc