Function at 0x495081
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x5c
push 0x58
mov eax, 0x50c135
call fcn.004cea03
mov edi, ecx
lea ebx, [edi + 0x28]
mov edx, ebx
lea ecx, [ebp + 0x3c]
call fcn.0048d97d
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x3c]
cmp dword [eax - 0xc], 0
je 0x495104
lea eax, [ebp + 0x3c]
push eax
lea ecx, [edi + 0x34]
call fcn.00446330
xor ebx, ebx
inc ebx
cmp byte [0x5736d4], 0
je 0x4953e8
lea ecx, [ebp + 0x58]
call fcn.00406bd2
push str.Newer_version_is_at_a_local_URL.
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], bl
call fcn.004070ba
lea eax, [ebp + 0x58]
mov ecx, 0x5736a4
push eax
call fcn.004955c1
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 2
call fcn.004068c3
mov byte [ebp - 4], 0
jmp 0x4953e8
lea eax, [ebp + 0x4c]
push eax
call fcn.00495409
lea esi, [edi + 0x34]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00446330
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0
call fcn.004068c3
mov ecx, esi
call fcn.004737f0
push ecx
push esi
lea ecx, [ebp]
call fcn.0048dae2
mov byte [ebp - 4], 4
lea esi, [edi + 0x30]
mov eax, dword [esi]
lea ecx, [edi + 0x34]
push dword [eax - 0xc]
push eax
call fcn.004070e2
lea ecx, [ebp + 0x4c]
call fcn.00406bd2
push eax
push ecx
push 0
push esi
mov byte [ebp - 4], 5
lea ecx, [ebp]
push dword [edi + 0x2c]
push ebx
call fcn.0048dc0e
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 4
call fcn.004068c3
xor eax, eax
push eax
mov dword [ebp + 0x50], eax
call dword [sym.imp.ole32.dll_CoInitialize]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp + 0x30], ecx
mov byte [ebp + 0x43], cl
mov byte [ebp - 4], 6
mov ecx, dword [edi + 4]
push 0
call fcn.0048b56e
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x64]
call fcn.0049bc51
xor ebx, ebx
mov byte [ebp - 4], 7
inc ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
push 0
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00406da5
test eax, eax
jne 0x4951d8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp + 0x4c], 0xffffffff
jmp 0x495201
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00423443
push 0
push 0x4233f6
push esi
push 0xd8
push dword [0x5723f0]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp + 0x4c], eax
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x34], 0
inc dword [ebp + 0x50]
mov esi, dword [ebp + 0x20]
test esi, esi
jne 0x49523d
lea edx, [ebp + 0x34]
lea ecx, [edi + 0x34]
call fcn.00475ad0
mov eax, dword [ebp + 0x34]
cmp eax, dword [edi + 0x2c]
je 0x49523d
mov al, bl
mov byte [ebp + 0x5f], al
jmp 0x495246
xor al, al
mov byte [ebp + 0x5f], al
test esi, esi
jne 0x495253
cmp dword [ebp + 0x4c], ebx
jne 0x495253
test al, al
je 0x495349
push dword [edi + 0x34]
mov byte [ebp + 0x57], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 0x34]
push eax
lea ecx, [ebp + 0x58]
call fcn.004071c5
push str..part
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 8
call fcn.004070ba
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0x50]
cmp eax, 2
jge 0x49534d
lea ecx, [ebp + 0x48]
call fcn.00406bd2
cmp byte [ebp + 0x5f], 0
mov byte [ebp - 4], 9
je 0x4952b3
push 0x111
lea ecx, [ebp + 0x48]
call fcn.00409d16
jmp 0x4952d8
push ecx
mov edx, esi
lea ecx, [ebp + 0x38]
call fcn.00471600
pop ecx
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xa
call fcn.00446330
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 9
call fcn.004068c3
lea ecx, [ebp + 0x44]
call fcn.00406bd2
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x44]
push dword [ebp + 0x48]
push 0x102
push eax
call fcn.0048024f
mov ecx, dword [edi + 4]
add esp, 0xc
push 0
call fcn.0048b56e
mov esi, eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0x45
push esi
lea edx, [ebp + 0x44]
mov ecx, eax
call fcn.0046fa80
pop ecx
pop ecx
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 9
mov esi, eax
call fcn.004068c3
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 8
call fcn.004068c3
cmp esi, 2
je 0x49534d
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 7
call fcn.004068c3
jmp 0x4951b2
mov al, bl
jmp 0x4953be
cmp byte [0x5736d4], 0
je 0x4953af
push ecx
mov edx, esi
lea ecx, [ebp + 0x38]
call fcn.00471600
pop ecx
mov esi, eax
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0xc
call fcn.00406bd2
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x50]
mov esi, dword [esi]
push str.Failed_to_download_a_newer_version._Error:
call fcn.004070ba
push esi
lea ecx, [ebp + 0x50]
call fcn.0048b7e8
push eax
mov ecx, 0x5736a4
call fcn.004955c1
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0xe
call fcn.004068c3
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 8
call fcn.004068c3
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 7
call fcn.004068c3
mov al, byte [ebp + 0x57]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
mov bl, al
call fcn.0049bcd5
cmp byte [ebp + 0x30], 0
mov byte [ebp - 4], 4
je 0x4953dc
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0048db49
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004068c3
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x60]
pop ebp
ret