Function at 0x404da0
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 0x4280b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x34]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov eax, dword [0x4346e4]
mov dword [esp + 0x14], eax
mov cl, byte [esp + 0x34]
mov dword [esp + 0x114], ebx
test cl, 7
je 0x404e7e
push 0x100
lea ecx, [esp + 0x18]
call fcn.0041f383
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041f3d2
lea ecx, [esp + 0x14]
push str._ver.ini
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0041f1e8
mov eax, dword [eax]
push ebx
push ebx
push eax
push str.http:__new.pp4000.com_sky_soft.htm
push ebx
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0041ef53
cmp esi, ebx
jge 0x404e79
lea eax, [esp + 0x14]
push str._ver.ini
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0041f1e8
mov eax, dword [eax]
push ebx
push ebx
push eax
push str.http:__new.pp1234.cn_sky_soft.htm
push ebx
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0041ef53
cmp esi, ebx
jl 0x405165
mov eax, dword [0x4346e4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x100
push 0x100
lea ecx, [esp + 0x20]
mov byte [esp + 0x11c], 2
call fcn.0041f383
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.0041f3d2
push ebx
mov edx, dword [esp + 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x405144
push edi
call fcn.0041f4a7
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3c]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x48], ebx
call sub.VERSION.dll_VerQueryValueA
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 0x3c]
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x4c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x40]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x44]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041f0dc
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.0041e062
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x118], 3
call fcn.0041f08c
lea ecx, [esp + 0x10]
mov byte [esp + 0x114], 2
call fcn.0041ef53
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040f664
mov ecx, dword [0x4346e4]
add esp, 4
mov esi, eax
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x14]
push str._ver.ini
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x120], 4
call fcn.0041f1e8
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
push 0x100
push 0x100
mov byte [esp + 0x120], 5
call fcn.0041f383
push eax
push 0x438170
push 0x432aa8
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x114], 4
call fcn.0041ef53
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.0041f3d2
lea ecx, [esp + 0x14]
push str._ver.ini
lea edx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], ebx
call fcn.0041f1e8
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebx
push 0x432aa4
push str.main
call edi
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.0041ef53
cmp ebp, esi
jle 0x40504a
mov dword [esp + 0x10], 1
mov eax, dword [0x4346e4]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x11c], 6
call fcn.00404a90
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push str._ver.ini
push eax
push ecx
call fcn.0041f1e8
mov eax, dword [eax]
push eax
push ebx
push str.fuwu
push str.main
call edi
lea ecx, [esp + 0x20]
call fcn.0041ef53
call fcn.004049e0
mov ebp, eax
lea edx, [esp + 0x14]
push str._ver.ini
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0041f1e8
mov eax, dword [eax]
push eax
push ebx
push 0x432a98
push str.main
call edi
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0041ef53
cmp esi, ebp
mov edi, 1
jg 0x4050e0
mov edi, dword [esp + 0x30]
push esi
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0041ecc8
mov eax, dword [esp + 0x18]
push edi
push ebx
push eax
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x130], 7
call fcn.0041ecc8
mov byte [esp + 0x12c], 6
call fcn.004043f0
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x114], 4
call fcn.0041ef53
lea ecx, [esp + 0x24]
mov byte [esp + 0x114], 2
call fcn.0041ef53
lea ecx, [esp + 0x1c]
mov byte [esp + 0x114], 1
call fcn.0041ef53
lea ecx, [esp + 0x18]
mov byte [esp + 0x114], bl
call fcn.0041ef53
lea ecx, [esp + 0x14]
mov dword [esp + 0x114], 0xffffffff
call fcn.0041ef53
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x108
ret 4