Function at 0x4913ca
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x5c
push 0x58
mov eax, 0x509179
call fcn.004cc273
mov edi, ecx
lea ebx, [edi + 0x28]
mov edx, ebx
lea ecx, [ebp + 0x3c]
call fcn.0048cdd0
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x3c]
cmp dword [eax - 0xc], 0
je 0x49144d
lea eax, [ebp + 0x3c]
push eax
lea ecx, [edi + 0x34]
call fcn.00446083
xor ebx, ebx
inc ebx
cmp byte [0x56f62c], 0
je 0x491731
lea ecx, [ebp + 0x58]
call fcn.00406bcb
push str.Newer_version_is_at_a_local_URL.
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], bl
call fcn.0040706a
lea eax, [ebp + 0x58]
mov ecx, 0x56f5fc
push eax
call fcn.0049190a
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 2
call fcn.004068bc
mov byte [ebp - 4], 0
jmp 0x491731
lea eax, [ebp + 0x4c]
push eax
call fcn.00491752
lea esi, [edi + 0x34]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00446083
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 0
call fcn.004068bc
mov ecx, esi
call fcn.00473210
push ecx
push esi
lea ecx, [ebp]
call fcn.0048cf35
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.00407092
lea ecx, [ebp + 0x4c]
call fcn.00406bcb
push eax
push ecx
push 0
push esi
mov byte [ebp - 4], 5
lea ecx, [ebp]
push dword [edi + 0x2c]
push ebx
call fcn.0048d061
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 4
call fcn.004068bc
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.0048aaf3
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x64]
call fcn.0049a1d9
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.00406ddf
test eax, eax
jne 0x491521
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp + 0x4c], 0xffffffff
jmp 0x49154a
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00423388
push 0
push 0x42333b
push esi
push 0xd8
push dword [0x56e360]
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 0x491586
lea edx, [ebp + 0x34]
lea ecx, [edi + 0x34]
call fcn.004754f0
mov eax, dword [ebp + 0x34]
cmp eax, dword [edi + 0x2c]
je 0x491586
mov al, bl
mov byte [ebp + 0x5f], al
jmp 0x49158f
xor al, al
mov byte [ebp + 0x5f], al
test esi, esi
jne 0x49159c
cmp dword [ebp + 0x4c], ebx
jne 0x49159c
test al, al
je 0x491692
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.00407175
push str..part
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 8
call fcn.0040706a
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0x50]
cmp eax, 2
jge 0x491696
lea ecx, [ebp + 0x48]
call fcn.00406bcb
cmp byte [ebp + 0x5f], 0
mov byte [ebp - 4], 9
je 0x4915fc
push 0x111
lea ecx, [ebp + 0x48]
call fcn.004098ad
jmp 0x491621
push ecx
mov edx, esi
lea ecx, [ebp + 0x38]
call fcn.00471300
pop ecx
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xa
call fcn.00446083
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 9
call fcn.004068bc
lea ecx, [ebp + 0x44]
call fcn.00406bcb
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x44]
push dword [ebp + 0x48]
push 0x102
push eax
call fcn.0047fab7
mov ecx, dword [edi + 4]
add esp, 0xc
push 0
call fcn.0048aaf3
mov esi, eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0x45
push esi
lea edx, [ebp + 0x44]
mov ecx, eax
call fcn.0046f770
pop ecx
pop ecx
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 9
mov esi, eax
call fcn.004068bc
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 8
call fcn.004068bc
cmp esi, 2
je 0x491696
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 7
call fcn.004068bc
jmp 0x4914fb
mov al, bl
jmp 0x491707
cmp byte [0x56f62c], 0
je 0x4916f8
push ecx
mov edx, esi
lea ecx, [ebp + 0x38]
call fcn.00471300
pop ecx
mov esi, eax
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0xc
call fcn.00406bcb
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x50]
mov esi, dword [esi]
push str.Failed_to_download_a_newer_version._Error:
call fcn.0040706a
push esi
lea ecx, [ebp + 0x50]
call fcn.0048ada7
push eax
mov ecx, 0x56f5fc
call fcn.0049190a
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 0xe
call fcn.004068bc
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 8
call fcn.004068bc
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 7
call fcn.004068bc
mov al, byte [ebp + 0x57]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
mov bl, al
call fcn.0049a25d
cmp byte [ebp + 0x30], 0
mov byte [ebp - 4], 4
je 0x491725
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0048cf9c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004068bc
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