Function at 0x41146f
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.00425c98
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
pop ecx
lea edi, [ebx + 0x34]
je 0x4114e7
lea eax, [ebp - 0x24]
call fcn.00408905
cmp byte [0x45ae9c], 0
je 0x4114d1
push str.Newer_version_is_at_a_local_URL.
lea eax, [ebp + 8]
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
mov eax, 0x45ae6c
call fcn.0041601d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404645
mov bl, 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00404645
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
lea esi, [ebp - 0x10]
mov dword [ebp - 0x28], edi
call fcn.00411784
call fcn.00408905
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404645
mov esi, edi
call fcn.00409cf7
push edi
lea eax, [ebp - 0x5c]
call fcn.0041e846
lea eax, [ebx + 0x30]
push edi
call fcn.00409bc4
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.0041e913
lea eax, [esi - 0x10]
call fcn.00404645
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.004156d0
push eax
lea ecx, [ebp - 0x5c]
lea esi, [ebp - 0xb4]
call fcn.00425d5c
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [ebp - 0xb4]
call fcn.00425dff
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 0x4115f0
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 0x4115c3
push eax
jmp 0x4115d9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4115d4
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x4115df
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 0x4115f0
mov byte [ebp - 5], 1
jmp 0x4115fa
cmp dword [ebp - 0x10], 0
mov byte [ebp - 5], 0
jne 0x41160a
cmp dword [ebp - 0xc], 1
jne 0x41160a
cmp byte [ebp - 5], 0
je 0x4116ee
push dword [edi]
mov byte [ebp - 6], 0
call esi
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409c7d
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x45391c
lea eax, [ebp - 0xc]
push eax
call fcn.00402105
mov ebx, dword [ebp - 0xc]
push ebx
call esi
cmp dword [ebp - 0x20], 2
jge 0x411704
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 0x411669
push 0x111
lea eax, [ebp - 0xc]
push eax
call fcn.00404378
jmp 0x411688
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.00422593
pop ecx
lea edi, [ebp - 0xc]
call fcn.00408905
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404645
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.00409717
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add esp, 0xc
push 0x45
push 0
call fcn.004156d0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00415745
cmp eax, 2
mov eax, dword [ebp - 0x18]
je 0x4116f4
add eax, 0xfffffff0
call fcn.00404645
lea eax, [edi - 0x10]
call fcn.00404645
lea eax, [ebx - 0x10]
call fcn.00404645
jmp 0x411580
mov byte [ebp - 6], 1
jmp 0x41175d
add eax, 0xfffffff0
call fcn.00404645
lea eax, [edi - 0x10]
call fcn.00404645
cmp byte [0x45ae9c], 0
je 0x411755
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.00422593
pop ecx
push dword [eax]
lea eax, [ebp + 8]
push str.Failed_to_download_a_newer_version._Error:
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
call fcn.00416ca0
push eax
mov eax, 0x45ae6c
call fcn.0041601d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [ebx - 0x10]
call fcn.00404645
lea eax, [ebp - 0xb4]
call fcn.00425dc1
cmp byte [ebp - 0x11], 0
je 0x411774
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ebx, [ebp - 0x5c]
call fcn.0041e892
mov bl, byte [ebp - 6]
jmp 0x4114d3