Function at 0x408080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d388
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x40828a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x10], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x10]
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4080e4
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
mov ebx, dword [esi - 0x10]
lea edx, [esi - 0x10]
or eax, 0xffffffff
cmp dword [edx + 4], 0
je 0x408146
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x408128
cmp dword [esi - 8], 0
jl 0x4081cc
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x408146
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408139
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov ecx, dword [edi + 0x4c]
lea edx, [ebp - 0x38]
call fcn.00428520
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
mov esi, dword [ebp - 0x38]
test eax, eax
jne 0x408266
push 0
push esi
push dword [edi + 0x4c]
lea ecx, [edi + 0x24]
call fcn.00426e30
mov ebx, eax
test ebx, ebx
jne 0x408243
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
push esi
test eax, eax
jne 0x40823b
call dword [sym.imp.msi.dll_MsiViewGetErrorA]
test eax, eax
je 0x4081d6
push eax
push esi
push str.Failed_to_verify_MSI_package__Path___s__err___d
push 3
push 3
push 0x64
push str.CInstActionMsiInstaller::Download
push str.InstActionMsiInstaller.cpp
lea ecx, [ebp - 0x48]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [edi + 0x50], ebx
jmp 0x4080f8
push 0x80070057
call fcn.004039a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
push ebx
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
cmovne ebx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ebx
push dword [ebp - 0x3c]
mov ebx, dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x10]
lea ecx, [ebp - 0x48]
push eax
push ebx
push str.Presequisite__s_DOWNLOADED__time_spent:__u__size:__u
push 1
push 3
push 0x71
push str.CInstActionMsiInstaller::Download
push str.InstActionMsiInstaller.cpp
call fcn.00457220
push eax
call fcn.004573f0
mov dword [edi + 0x50], 0x2710
add esp, 0x1c
mov edi, 0x2710
jmp 0x408269
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408266
cmp ebx, 1
je 0x408266
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
call fcn.0042f230
cmp dword [edi + 8], 0
je 0x408261
mov ebx, 0x2710
jmp 0x408263
neg ebx
mov dword [edi + 0x50], ebx
mov edi, dword [edi + 0x50]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408288
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret