Function at 0x40ec20
Capabilities:
Check internet connectivity via wininet
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x539486
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x58bcc0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x58bcc0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00424ea4
mov eax, dword [edi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00427644
mov esi, eax
test esi, esi
je 0x40ed22
call fcn.00413432
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ec9d
push 0x80004005
call fcn.004026c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
push 0x65
mov dword [esp + 0x284], 0
call fcn.004142e3
test eax, eax
je 0x40ecd3
push 0x65
push eax
lea ecx, [esp + 0x18]
call fcn.00402040
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 0xc], 0
je 0x40ecfb
mov ecx, dword [esi + 4]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [esi + 4]
push ebx
push 0x10
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [ebx - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x94]
mov ecx, dword [edi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call ebx
mov eax, dword [edi + 0x94]
mov edx, dword [edi + 0x20]
push eax
push 0
push 0x80
push edx
call ebx
call fcn.0040fec0
call fcn.0040f950
push 0xffffffffffffffff
push 2
lea ecx, [edi + 0x684]
mov dword [edi + 0x69c], 0
call fcn.0041fe95
cmp dword [edi + 0x68c], 0
jg 0x40ed81
call fcn.00414196
mov eax, dword [edi + 0x688]
mov dword [eax], 0x965b3e
cmp dword [edi + 0x68c], 1
jg 0x40ed9b
call fcn.00414196
mov ecx, dword [edi + 0x688]
push 0
push 1
mov dword [ecx + 4], 0x965b3e
mov edx, dword [edi + 0x630]
push 0x404
push edx
call ebx
push 0xffffffffffffffff
push 2
lea ecx, [edi + 0x73c]
mov dword [edi + 0x754], 0
call fcn.0041fe95
cmp dword [edi + 0x744], 0
jg 0x40ede1
call fcn.00414196
mov eax, dword [edi + 0x740]
mov dword [eax], 0x454297
cmp dword [edi + 0x744], 1
jg 0x40edfb
call fcn.00414196
mov ecx, dword [edi + 0x740]
push 0
push 1
mov dword [ecx + 4], 0x454297
mov edx, dword [edi + 0x6e8]
push 0x404
push edx
call ebx
mov esi, edi
call fcn.0040faa0
cmp dword [edi + 0x84c], 0
jne 0x40ee8d
push 1
push 0x5697b8
push str.Settings
mov ecx, 0x593b38
call fcn.004244e6
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push str.L2Updater.exe
lea ecx, [edi + 0x83c]
push ecx
push eax
xor esi, esi
call fcn.00403900
add esp, 8
lea edx, [edi + 0x848]
mov dword [esp + 0x1c], esp
mov ecx, esp
push edx
mov dword [esp + 0x28c], 1
call fcn.00401d30
mov ecx, esi
mov dword [esp + 0x288], 0xffffffff
call fcn.00404a10
push str.OldExecutable.bak
lea esi, [edi + 0x83c]
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00403900
mov ebx, dword [eax]
push 0x250
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.00516740
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40eece
xor bl, bl
jmp 0x40eed7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eef7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40ef37
push str.OldExecutable.bak
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00403900
mov edx, dword [eax]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40ef73
mov edx, dword [edi + 0x840]
push 0
push 0
push 0
push 0
push edx
push str._bLLLL
push 0
push 0
push 1
lea eax, [edi + 0x268]
push 0x68
push eax
call fcn.0041de84
add esp, 0x2c
mov ecx, dword [edi + 0x20]
push 0
push 0x3e8
push 0x7c5
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00513242
mov esp, ebp
pop ebp
ret