Function at 0x18050ecb
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, 0x1822c850
push edi
mov dword [ebp - 0x10], ebx
call fcn.18025ba7
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1801396e
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18009f92
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 0x18050f48
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.18009f92
push 3
pop ebx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
je 0x18050f4b
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.18009f92
add eax, 0x10
push 7
pop ebx
cmp dword [eax - 0xc], 0
je 0x18050f4e
mov byte [ebp + 0xb], 0
jmp 0x18050f57
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov byte [ebp + 0xb], 1
test bl, 4
je 0x18050f62
lea ecx, [eax - 0x10]
and ebx, 0xfffffffb
call fcn.1800694d
test bl, 2
je 0x18050f72
lea ecx, [esi - 0x10]
and ebx, 0xfffffffd
call fcn.1800694d
mov ecx, dword [ebp - 0xc]
push 0xfffffffffffffffe
pop esi
and ebx, esi
add ecx, 0xfffffff0
mov dword [ebp - 0x14], ebx
call fcn.1800694d
cmp byte [ebp + 0xb], 0
je 0x18050feb
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x18050fe1
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.18008a16
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
call fcn.18006b93
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push str._PackageCache_invalid_key__source_file__s_
push eax
call fcn.18006b74
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ebx, 0x80070057
jmp 0x18051411
lea ecx, [ebp + 8]
call fcn.18009d8f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push edi
call fcn.180519d6
mov edi, dword [ebp + 8]
mov ebx, eax
test ebx, ebx
jns 0x1805104d
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x18051409
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.18008a16
push ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._Failed_to_build_cache_filename__0x_08x_
push eax
call fcn.18006b74
add esp, 0xc
jmp 0x18051409
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.180144c1
mov ecx, dword [eax]
call fcn.1800bca2
mov ecx, dword [ebp - 0x10]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.1800694d
test ebx, ebx
jns 0x180510c4
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x18051409
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.18008a16
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
call fcn.18006b93
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push ebx
push str._failed_to_create_cache_directory__0x_08x___s_
push eax
call fcn.18006b74
mov ecx, dword [ebp + 0xc]
add esp, 0x10
jmp 0x18051401
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.1800f1f5
mov bl, al
test bl, bl
je 0x1805115f
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
call fcn.18051b08
test eax, eax
js 0x1805115c
lea ecx, [ebp + 8]
call fcn.18051b7a
test eax, eax
js 0x1805115c
movzx ecx, byte [0x182340f3]
mov edi, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x1805114b
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.18008a16
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
call fcn.18006b93
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push str._PackageCache::Put__destination_file__s_already_cached_
push eax
call fcn.18006b74
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, 0x1822c870
call fcn.18025ba7
xor ebx, ebx
jmp 0x18051409
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea edx, [esi + 4]
call fcn.180144c1
lea ecx, [ebp - 0xc]
push dword [eax]
call fcn.18006e68
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.1800694d
test bl, bl
jne 0x180511a8
call fcn.1801c0e3
push 8
pop ebx
lea eax, [ebp - 0x14]
push eax
call fcn.1801c3c2
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
je 0x180511ab
jmp 0x180511b5
mov ebx, dword [ebp - 0x14]
xor al, al
mov dword [ebp - 8], eax
test bl, 8
je 0x180511c3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, dword [ebp - 8]
test al, al
je 0x18051299
push 0
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
movzx ecx, byte [0x182340f3]
test eax, eax
je 0x18051240
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x18051231
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.18008a16
mov edx, dword [esi + 4]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x20], eax
call fcn.18006b93
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push str._PackageCache::Put__hardlinked___source_file__s_
push eax
call fcn.18006b74
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, 0x1822c870
call fcn.18025ba7
jmp 0x180513fc
neg ecx
mov edi, 0x18233ff0
sbb ecx, ecx
and ecx, edi
je 0x1805129e
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.18008a16
mov edx, dword [esi + 4]
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], eax
call fcn.18006b93
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.18006b74
mov ecx, dword [ebp - 8]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.1800694d
jmp 0x1805129e
mov edi, 0x18233ff0
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 8]
call fcn.18050c8f
mov ebx, eax
test ebx, ebx
jns 0x1805132a
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp + 8]
je 0x180513fe
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.18008a16
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 8]
call fcn.18006b93
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [eax + 4]
call fcn.18006b93
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.18006b74
mov ecx, dword [ebp + 0x10]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
jmp 0x180513fe
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 8]
mov edx, esi
call fcn.18051b08
mov ebx, eax
test ebx, ebx
jns 0x18051383
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp + 8]
je 0x180513e6
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.18008a16
mov esi, dword [esi]
lea ecx, [ebp + 0xc]
mov edx, edi
mov dword [ebp - 0x20], eax
call fcn.18006b93
push esi
push dword [ebp + 0xc]
push str._failed_to_verify_hash_for_file__s__expected_hash__s_
jmp 0x180513cf
lea ecx, [ebp + 8]
call fcn.18051b7a
mov ebx, eax
test ebx, ebx
jns 0x180513ef
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, edi
mov edi, dword [ebp + 8]
je 0x180513e6
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.18008a16
mov edx, edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
call fcn.18006b93
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.18006b74
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.1800694d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180513fe
mov ecx, 0x1822c870
call fcn.18025ba7
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [edi - 0x10]
call fcn.1800694d
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