Function at 0x40ee3c
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 0x24]
push edi
push eax
lea eax, [ebp - 0x14]
call fcn.00423246
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
pop ecx
lea edi, [ebx + 0x30]
je 0x40eeb4
lea eax, [ebp - 0x14]
call fcn.0040872e
cmp byte [0x456c38], 0
je 0x40ee9e
push str.Newer_version_is_at_a_local_URL.
lea eax, [ebp + 8]
call fcn.004141f6
push eax
call fcn.00414207
push eax
mov eax, 0x456c08
call fcn.004134f0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046a2
mov bl, 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046a2
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
lea esi, [ebp - 0x10]
mov dword [ebp - 0x20], edi
call fcn.0040f0ee
call fcn.0040872e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046a2
mov esi, edi
call fcn.00409ad4
push edi
lea eax, [ebp - 0x54]
call fcn.0041886e
lea eax, [ebx + 0x2c]
push edi
call fcn.004099a1
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push esi
push dword [ebx + 0x28]
lea eax, [ebx + 0x24]
push eax
lea eax, [ebp - 0x54]
add edi, 0x10
push eax
mov dword [ebp - 0x10], edi
call fcn.0041893b
lea eax, [edi - 0x10]
call fcn.004046a2
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CoInitialize]
neg eax
sbb al, al
inc al
mov byte [ebp - 6], al
mov eax, dword [ebx]
push esi
call fcn.00412bfc
push eax
lea ecx, [ebp - 0x54]
lea edi, [ebp - 0xac]
call fcn.0042330a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [ebp - 0xac]
call fcn.004233ad
mov ecx, dword [ebp - 0x34]
inc dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x40efbf
cmp eax, 1
jne 0x40efbf
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
push ecx
push 0x80
push 3
push ecx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ef8f
push eax
jmp 0x40efa5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x40efa0
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x40efab
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x28]
jne 0x40efc2
mov byte [ebp - 5], 1
jmp 0x40f0c7
mov edi, dword [ebp - 0x20]
push dword [edi]
mov byte [ebp - 5], 0
call esi
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409a5a
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x44f430
lea eax, [ebp - 0xc]
push eax
call fcn.0040217a
mov edi, dword [ebp - 0xc]
push edi
call esi
cmp dword [ebp - 0x1c], 2
jge 0x40f06e
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
push dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
call fcn.0041df40
pop ecx
push dword [eax]
lea eax, [ebp - 0xc]
push 0x102
push eax
call fcn.0040950d
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0x45
push 0
call fcn.00412bfc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412c71
cmp eax, 2
mov eax, dword [ebp - 0xc]
je 0x40f066
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [edi - 0x10]
call fcn.004046a2
jmp 0x40ef4c
add eax, 0xfffffff0
call fcn.004046a2
cmp byte [0x456c38], 0
je 0x40f0bf
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.0041df40
pop ecx
push dword [eax]
lea eax, [ebp + 8]
push str.Failed_to_download_a_newer_version._Error:
call fcn.004141f6
push eax
call fcn.00414207
push eax
call fcn.00414207
push eax
mov eax, 0x456c08
call fcn.004134f0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [edi - 0x10]
call fcn.004046a2
lea eax, [ebp - 0xac]
call fcn.0042336f
cmp byte [ebp - 6], 0
je 0x40f0de
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ebx, [ebp - 0x54]
call fcn.004188ba
mov bl, byte [ebp - 5]
jmp 0x40eea0