Function at 0x411820
Capabilities:
Check internet connectivity via wininet
Download url
Get common file path
Get file version info
Read .ini file
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x413fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x38]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov al, byte [esp + 0x38]
mov dword [esp + 0x118], ebx
test al, 7
je 0x4118c1
push 0x100
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
push str._ver.ini
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push ebx
push ebx
push eax
push str.http:__new.pp1234.cn_soft1.htm
push ebx
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
jl 0x411bd2
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 1
call sub.MFC42.DLL_CString::CString_4
push 0x100
push 0x100
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
push ebx
mov eax, dword [esp + 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x411bb1
push edi
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x3c]
lea eax, [esp + 0x40]
push edx
push eax
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x4c], ebx
call sub.VERSION.dll_VerQueryValueA
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 0x40]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x50]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x44]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x48]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x54], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x11c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x118], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
push str._ver.ini
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x124], 4
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
push 0x100
push 0x100
mov byte [esp + 0x124], 5
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x41a6e8
push 0x41a688
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x118], 4
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp + 0x10]
push str._ver.ini
lea ecx, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebx
push 0x41a684
push str.main
call ebp
lea ecx, [esp + 0x20]
mov edi, eax
call sub.MFC42.DLL_CString::CString
cmp edi, esi
jle 0x411aa3
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x120], 6
call fcn.00411510
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
mov esi, eax
push str._ver.ini
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
push ebx
push str.fuwu
push str.main
call ebp
lea ecx, [esp + 0x20]
mov edi, eax
call sub.MFC42.DLL_CString::CString
cmp edi, esi
jle 0x411b06
mov dword [esp + 0x30], 1
call fcn.00411460
mov edi, eax
lea eax, [esp + 0x10]
push str._ver.ini
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
push ebx
push 0x41a5c0
push str.main
call ebp
lea ecx, [esp + 0x20]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, edi
mov edi, 1
jg 0x411b49
mov edi, dword [esp + 0x34]
push esi
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x134], 7
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x130], 6
call fcn.00410970
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x118], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x118], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x118], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x10c
ret 4