Function at 0x4114fb
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 0x28]
push edi
push eax
lea eax, [ebp - 0x24]
call fcn.00425d0d
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
pop ecx
lea edi, [ebx + 0x34]
je 0x411573
lea eax, [ebp - 0x24]
call fcn.00408901
cmp byte [0x45ae9c], 0
je 0x41155d
push str.Newer_version_is_at_a_local_URL.
lea eax, [ebp + 8]
call fcn.00416d25
push eax
call fcn.00416d36
push eax
mov eax, 0x45ae6c
call fcn.004160b3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404644
mov bl, 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00404644
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
lea esi, [ebp - 0x10]
mov dword [ebp - 0x28], edi
call fcn.00411810
call fcn.00408901
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404644
mov esi, edi
call fcn.00409d6b
push edi
lea eax, [ebp - 0x5c]
call fcn.0041e8d4
lea eax, [ebx + 0x30]
push edi
call fcn.00409c38
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push edi
push dword [ebx + 0x2c]
lea eax, [ebx + 0x28]
push eax
lea eax, [ebp - 0x5c]
add esi, 0x10
push eax
mov dword [ebp - 0x10], esi
call fcn.0041e9a1
lea eax, [esi - 0x10]
call fcn.00404644
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.ole32.dll_CoInitialize]
neg eax
sbb al, al
inc al
mov byte [ebp - 0x11], al
mov eax, dword [ebx + 4]
push edi
call fcn.00415786
push eax
lea ecx, [ebp - 0x5c]
lea esi, [ebp - 0xb4]
call fcn.00425dd1
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [ebp - 0xb4]
call fcn.00425e74
inc dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41167c
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41164f
push eax
jmp 0x411665
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x411660
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x41166b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x2c]
je 0x41167c
mov byte [ebp - 5], 1
jmp 0x411686
cmp dword [ebp - 0x10], 0
mov byte [ebp - 5], 0
jne 0x411696
cmp dword [ebp - 0xc], 1
jne 0x411696
cmp byte [ebp - 5], 0
je 0x41177a
push dword [edi]
mov byte [ebp - 6], 0
call esi
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409cf1
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x453914
lea eax, [ebp - 0xc]
push eax
call fcn.00402120
mov ebx, dword [ebp - 0xc]
push ebx
call esi
cmp dword [ebp - 0x20], 2
jge 0x411790
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp - 5], 0
mov dword [ebp - 0xc], eax
je 0x4116f5
push 0x111
lea eax, [ebp - 0xc]
push eax
call fcn.00404387
jmp 0x411714
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.00422605
pop ecx
lea edi, [ebp - 0xc]
call fcn.00408901
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
mov edi, dword [ebp - 0xc]
add eax, 0x10
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x102
push eax
call fcn.0040975d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add esp, 0xc
push 0x45
push 0
call fcn.00415786
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004157fb
cmp eax, 2
mov eax, dword [ebp - 0x18]
je 0x411780
add eax, 0xfffffff0
call fcn.00404644
lea eax, [edi - 0x10]
call fcn.00404644
lea eax, [ebx - 0x10]
call fcn.00404644
jmp 0x41160c
mov byte [ebp - 6], 1
jmp 0x4117e9
add eax, 0xfffffff0
call fcn.00404644
lea eax, [edi - 0x10]
call fcn.00404644
cmp byte [0x45ae9c], 0
je 0x4117e1
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.00422605
pop ecx
push dword [eax]
lea eax, [ebp + 8]
push str.Failed_to_download_a_newer_version._Error:
call fcn.00416d25
push eax
call fcn.00416d36
push eax
call fcn.00416d36
push eax
mov eax, 0x45ae6c
call fcn.004160b3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [ebx - 0x10]
call fcn.00404644
lea eax, [ebp - 0xb4]
call fcn.00425e36
cmp byte [ebp - 0x11], 0
je 0x411800
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ebx, [ebp - 0x5c]
call fcn.0041e920
mov bl, byte [ebp - 6]
jmp 0x41155f