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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x539936
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x58bc40]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0042c0d9
mov eax, dword [edi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0042f514
mov esi, eax
test esi, esi
je 0x40f1d2
call fcn.00413912
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f14d
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.004147ca
test eax, eax
je 0x40f183
push 0x65
push eax
lea ecx, [esp + 0x18]
call fcn.00402040
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 0xc], 0
je 0x40f1ab
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 0x40f1d2
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.00410330
call fcn.0040fdc0
push 0xffffffffffffffff
push 2
lea ecx, [edi + 0x4b4]
mov dword [edi + 0x4cc], 0
call fcn.004b4771
cmp dword [edi + 0x4bc], 0
jg 0x40f231
call fcn.0041467d
mov eax, dword [edi + 0x4b8]
mov dword [eax], 0x965b3e
cmp dword [edi + 0x4bc], 1
jg 0x40f24b
call fcn.0041467d
mov ecx, dword [edi + 0x4b8]
push 0
push 1
mov dword [ecx + 4], 0x965b3e
mov edx, dword [edi + 0x460]
push 0x404
push edx
call ebx
push 0xffffffffffffffff
push 2
lea ecx, [edi + 0x56c]
mov dword [edi + 0x584], 0
call fcn.004b4771
cmp dword [edi + 0x574], 0
jg 0x40f291
call fcn.0041467d
mov eax, dword [edi + 0x570]
mov dword [eax], 0x454297
cmp dword [edi + 0x574], 1
jg 0x40f2ab
call fcn.0041467d
mov ecx, dword [edi + 0x570]
push 0
push 1
mov dword [ecx + 4], 0x454297
mov edx, dword [edi + 0x518]
push 0x404
push edx
call ebx
mov esi, edi
call fcn.0040ff10
cmp dword [edi + 0x67c], 0
jne 0x40f33d
push 1
push 0x569f00
push str.Settings
mov ecx, 0x593bf8
call fcn.0042b72a
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push str.Auris_Updater.exe
lea ecx, [edi + 0x66c]
push ecx
push eax
xor esi, esi
call fcn.00404010
add esp, 8
lea edx, [edi + 0x678]
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.004050b0
push str.OldExecutable.bak
lea esi, [edi + 0x66c]
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00404010
mov ebx, dword [eax]
push 0x250
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.00516840
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40f37e
xor bl, bl
jmp 0x40f387
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 0x40f3a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40f3e7
push str.OldExecutable.bak
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00404010
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 0x40f3e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x670]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40f430
mov eax, dword [edi + 0x670]
push 0
push 0
push 0
push 0
push eax
push str._bLLLL
push 0
push 0
push 1
lea ecx, [edi + 0x98]
push 0x68
push ecx
call fcn.00425488
add esp, 0x2c
mov edx, dword [edi + 0x20]
push 0
push 0x3e8
push 0x7c5
push edx
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.00513700
mov esp, ebp
pop ebp
ret