Function at 0x40e870
Capabilities:
Check internet connectivity via wininet
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4de725
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56e01c]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
setne al
cmp byte [esi + 0x11], 0
mov byte [esi + 0x18], al
jne 0x40e8ea
test al, al
je 0x40e8ce
mov ecx, dword [esi + 8]
cmp dword [ecx + 8], edi
jne 0x40e8ea
call fcn.0040eea0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push str.HKEY_LOCAL_MACHINESOFTWARENokiaPCSuite
lea ecx, [esp + 0x34]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push edi
push edi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x9c], edi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSettings::constructor_class_QString_const___enum_QSettings::Format__class_QObject__]
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str.noPathInRegistry
lea ecx, [esp + 0x58]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
lea eax, [esp + 0x54]
push eax
lea ebp, [esi + 0x14]
push ebp
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 3
call dword [sym.imp.QtCore4.dll_public:_class_QVariant___thiscall_QSettings::value_class_QString_const___class_QVariant_const__]
lea edx, [esp + 0x24]
push edx
mov ecx, eax
mov byte [esp + 0x94], 4
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QVariant::toString_void_]
mov byte [esp + 0x90], 6
mov ebx, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [esp + 0x74]
call ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x90], 7
call ebx
push str.noPathInRegistry
lea ecx, [esp + 0x28]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::operator__char_const__const]
test al, al
je 0x40e9c0
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Already_decided_that_application_is_no_longer_supported
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
call fcn.004ae030
add esp, 4
call fcn.0040eea0
jmp 0x40ecbd
mov eax, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esp + 0x20], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edi, [esp + 0x20]
mov byte [esp + 0x90], 8
call fcn.004acdb0
mov byte [esp + 0x38], 0x20
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x1e]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
lea eax, [esp + 0x1a]
push eax
push 0
mov ecx, edi
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, 0x571a24
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa0], 9
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40ea44
call fcn.0040eea0
jmp 0x40ec99
cmp byte [esi + 0x11], 0
jne 0x40ec89
push 0
push SysReAllocString
push 0
lea edi, [esi + 8]
push 0
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x40ec89
cmp byte [esi + 0x11], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 4
jne 0x40ec89
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40ec89
mov byte [esp + 0x1c], 0x20
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push str.size_on_server:__1
lea ecx, [esp + 0x44]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push ecx
mov ecx, esp
mov byte [esp + 0x94], 0xa
mov dword [esp + 0x48], esp
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push 0xa
push 0
push edx
push ecx
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_unsigned_int__int__int__class_QChar_const__]
call fcn.004ae030
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x90], 9
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov byte [esp + 0x40], 0x20
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push str.size_of_buffer:__1
lea ecx, [esp + 0x44]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push ecx
mov ecx, esp
mov byte [esp + 0x94], 0xb
mov dword [esp + 0x48], esp
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x3c]
push 0xa
push 0
push edx
push ecx
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_unsigned_int__int__int__class_QChar_const__]
call fcn.004ae030
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x90], 9
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp dword [esp + 0x28], 0x3e8
jae 0x40ec10
push str.HKEY_LOCAL_MACHINESOFTWARENokiaPCSuite
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x9c], 0xc
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSettings::constructor_class_QString_const___enum_QSettings::Format__class_QObject__]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], 0xe
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str.no_longer_offered
lea ecx, [esp + 0x68]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
lea ecx, [esp + 0x64]
push ecx
push ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSettings::setValue_class_QString_const___class_QVariant_const__]
lea ecx, [esp + 0x64]
mov byte [esp + 0x90], 0xe
call ebx
call fcn.0040eea0
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], 9
call dword [sym.imp.QtCore4.dll_public_virtual:_void___thiscall_QSettings::destructor_void_]
jmp 0x40ec8e
mov byte [esp + 0x40], 0x20
mov edx, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push str.link_ok_:__1
lea ecx, [esp + 0x44]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push ecx
mov ecx, esp
mov byte [esp + 0x94], 0x10
mov dword [esp + 0x48], esp
lea edx, [esp + 0x20]
push edx
push 0
push edi
push ecx
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
call fcn.004ae030
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x90], 9
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push 1
mov edx, esi
mov byte [esi + 0x10], 0
call fcn.004c08d0
push 0x4f81e4
mov ecx, ebp
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::operator_char_const__]
jmp 0x40ec8e
call fcn.0040eea0
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x90], 8
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x90], 0xffffffff
call dword [sym.imp.QtCore4.dll_public_virtual:_void___thiscall_QSettings::destructor_void_]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret