Function at 0x49a676
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xb8
mov eax, 0x50e849
call fcn.004d0de3
mov edi, ecx
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x2c]
call fcn.00492d97
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
je 0x49a70e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x34]
call fcn.0044d0c3
xor ebx, ebx
inc ebx
cmp byte [0x5735e0], 0
je 0x49aa41
lea ecx, [ebp - 0x10]
call fcn.0040c77f
push str.Newer_version_is_at_a_local_URL.
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0041069b
lea eax, [ebp - 0x10]
mov ecx, 0x5735ac
push eax
call fcn.0049abcf
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040ca45
mov byte [ebp - 4], 0
jmp 0x49aa41
xor eax, eax
lea edx, [ebp]
mov word [ebp], ax
call fcn.004a16b0
test al, al
je 0x49a735
cmp word [ebp], 0
je 0x49a735
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d264
jmp 0x49a73d
lea ecx, [ebp - 0x10]
call fcn.00474110
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
lea esi, [edi + 0x34]
push eax
mov ecx, esi
call fcn.0044d0c3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040ca45
mov ecx, esi
call fcn.004740e0
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.00492efc
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.004106c3
lea ecx, [ebp - 0x24]
call fcn.0040c77f
push eax
push ecx
push 0
push esi
mov byte [ebp - 4], 5
lea eax, [edi + 0x28]
push dword [edi + 0x2c]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00493028
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0040ca45
xor eax, eax
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ole32.dll_CoInitialize]
neg eax
sbb al, al
inc al
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x25], al
mov byte [ebp - 4], 6
mov ecx, dword [edi + 4]
push 0
call fcn.00490aad
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004a13ad
mov byte [ebp - 4], 7
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0
push 0
lea ecx, [ebp - 0xbc]
mov esi, eax
call fcn.00409798
test eax, eax
jne 0x49a813
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 0x24], 0xffffffff
jmp 0x49a842
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.004097dc
push 0
push 0x42b4ef
push esi
push 0xd8
push dword [0x5722d8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x94], 0
inc dword [ebp - 0x18]
mov esi, dword [ebp - 0x4c]
test esi, esi
jne 0x49a887
lea edx, [ebp - 0x38]
lea ecx, [edi + 0x34]
call fcn.00476900
mov eax, dword [ebp - 0x38]
cmp eax, dword [edi + 0x2c]
je 0x49a887
mov al, bl
mov byte [ebp - 0x11], al
jmp 0x49a890
xor al, al
mov byte [ebp - 0x11], al
test esi, esi
jne 0x49a89d
cmp dword [ebp - 0x24], ebx
jne 0x49a89d
test al, al
je 0x49a99f
push dword [edi + 0x34]
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.004069f3
push str..part
mov byte [ebp - 4], 8
call fcn.004d5c34
pop ecx
push eax
push str..part
lea ecx, [ebp - 0x10]
call fcn.004106c3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
cmp eax, 2
jge 0x49a9a3
lea ecx, [ebp - 0x1c]
call fcn.0040c77f
cmp byte [ebp - 0x11], 0
mov byte [ebp - 4], 9
je 0x49a909
push 0x111
lea ecx, [ebp - 0x1c]
call fcn.0040ceac
jmp 0x49a92e
push ecx
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.004728f0
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.0044d0c3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.0040ca45
lea ecx, [ebp - 0x20]
call fcn.0040c77f
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x20]
push dword [ebp - 0x1c]
push 0x102
push eax
call fcn.004856c0
mov ecx, dword [edi + 4]
add esp, 0xc
push 0
call fcn.00490aad
mov esi, eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push 0x45
push esi
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.00471df0
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
mov esi, eax
call fcn.0040ca45
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.0040ca45
cmp esi, 2
je 0x49a9a3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040ca45
jmp 0x49a7ea
mov al, bl
jmp 0x49aa14
cmp byte [0x5735e0], 0
je 0x49aa05
push ecx
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.004728f0
pop ecx
mov esi, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.0040c77f
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x18]
mov esi, dword [esi]
push str.Failed_to_download_a_newer_version._Error:
call fcn.0041069b
push esi
lea ecx, [ebp - 0x18]
call fcn.00490d37
push eax
mov ecx, 0x5735ac
call fcn.0049abcf
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.0040ca45
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0040ca45
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040ca45
mov al, byte [ebp - 0x12]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
mov bl, al
call fcn.004a1430
cmp byte [ebp - 0x3c], 0
mov byte [ebp - 4], 4
je 0x49aa35
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.00492f63
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040ca45
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0x20c]
pop ebp
ret