Function at 0x404240
Capabilities:
Check internet connectivity via wininet
Download url
Read .ini file
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x42b398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x438968]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x80], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov al, byte [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test al, 7
je 0x4043d7
push 0x100
push 0x100
lea ecx, [esp + 0x18]
call fcn.0041fd4d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041fd9c
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041d313
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0041d29b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.0041fa7d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0
call fcn.0041f944
lea eax, [esp + 0x10]
push str._ver.ini
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041fbd9
mov eax, dword [eax]
push 0
push 0
push eax
push str.http:__up.wanyx.com_wanyx.htm
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x1c]
call fcn.0041f944
mov edx, dword [0x438968]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x10]
push str._ver.ini
lea ecx, [esp + 0x20]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x84], bl
call fcn.0041fbd9
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x100
push 0x100
mov byte [esp + 0x84], 3
call fcn.0041fd4d
push eax
push 0x43c9d4
push str.image
push str.tpgg
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], bl
call fcn.0041f944
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041fd9c
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x4043c9
lea eax, [esp + 0x10]
push str._tpgg.png
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041fbd9
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
push 0
push 0
push eax
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x1c]
call fcn.0041f944
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0
call fcn.0041f944
lea ecx, [esp + 0x54]
call fcn.00406c28
lea eax, [esp + 0x10]
push str._tpgg.png
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x84], 4
call fcn.0041fbd9
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 5
call fcn.00406ceb
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x78], 4
call fcn.0041f944
test esi, esi
je 0x4044ca
lea edx, [esp + 0x10]
push str._tpgg.png
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0041fbd9
mov eax, dword [eax]
push 0
push eax
mov byte [esp + 0x80], 6
call fcn.00402190
add esp, 8
lea ecx, [esp + 0x1c]
mov ebx, eax
mov byte [esp + 0x78], 4
call fcn.0041f944
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40448b
lea eax, [esi + 4]
mov dword [esi], 0x42d934
push eax
push ebx
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
jmp 0x40448d
xor esi, esi
test esi, esi
mov dword [ebp + 0xb0], esi
je 0x4044ca
lea ecx, [esp + 0x10]
push str._tpgg.png
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0041fbd9
push eax
lea ecx, [ebp + 0x98]
mov byte [esp + 0x7c], 7
call fcn.0041fa7d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 4
call fcn.0041f944
lea eax, [esp + 0x10]
push str._ver.ini
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041fbd9
mov eax, dword [eax]
lea esi, [ebp + 0x9c]
push eax
push 0x100
push 0x100
mov ecx, esi
mov byte [esp + 0x84], 8
call fcn.0041fd4d
push eax
push 0x43c9d4
push 0x438530
push str.tpgg
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 4
call fcn.0041f944
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041fd9c
lea ecx, [esp + 0x40]
call fcn.0041da7e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 9
call fcn.0041da7e
lea edx, [esp + 0x10]
push str._ver.ini
lea eax, [esp + 0x20]
mov bl, 0xa
push edx
push eax
mov byte [esp + 0x84], bl
call fcn.0041fbd9
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
push str.wzgg
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x88], 0xb
call fcn.004013d0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x78], bl
call fcn.0041f944
cmp esi, 4
jge 0x404619
push str.http:__www.2010yuncheng.cn__webownerId14320childid10000
lea ecx, [ebp + 0x1f0]
call fcn.0041facd
push str.http:__huangguan.yijia.com_huangguan__unid061843sort01
lea ecx, [ebp + 0x1f8]
call fcn.0041facd
push str.http:__p.yiqifa.com_c_s2ddc739bw39916c4199i4142l0ethttp:__bto.youxiya.com_yiqifa.html
lea ecx, [ebp + 0x200]
call fcn.0041facd
push str.http:__p.yiqifa.com_c_s73961431w39916c4368i5082l0ethttp:__home.3gm.com.cn_do.php_acdfh
lea ecx, [ebp + 0x208]
call fcn.0041facd
push 0x4383d4
lea ecx, [ebp + 0x1ec]
call fcn.0041facd
push 0x4383c8
lea ecx, [ebp + 0x1f4]
call fcn.0041facd
push 0x4383b8
lea ecx, [ebp + 0x1fc]
call fcn.0041facd
push 0x4383a8
lea ecx, [ebp + 0x204]
call fcn.0041facd
jmp 0x40464b
xor esi, esi
lea edi, [ebp + 0x1f0]
mov eax, dword [esp + 0x44]
lea ecx, [esi + eax]
push ecx
lea ecx, [edi - 4]
call fcn.0041fa7d
mov edx, dword [esp + 0x30]
mov ecx, edi
lea eax, [esi + edx]
push eax
call fcn.0041fa7d
add esi, 4
add edi, 8
cmp esi, 0x10
jl 0x404621
lea ecx, [esp + 0x10]
push str._ver.ini
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0041fbd9
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push eax
lea eax, [esp + 0x30]
push str.rmyx
push eax
push ecx
mov byte [esp + 0x88], 0xc
call fcn.004013d0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x78], bl
call fcn.0041f944
cmp esi, 3
jge 0x4046fa
push str.http:__www.wanyx.com_game_638.html
lea ecx, [ebp + 0x1d8]
call fcn.0041facd
push str.http:__www.wanyx.com_game_945.html
lea ecx, [ebp + 0x1e0]
call fcn.0041facd
push str.http:__www.wanyx.com_game_159.html
lea ecx, [ebp + 0x1e8]
call fcn.0041facd
push 0x438318
lea ecx, [ebp + 0x1d4]
call fcn.0041facd
push 0x438300
lea ecx, [ebp + 0x1dc]
call fcn.0041facd
push 0x4382dc
lea ecx, [ebp + 0x1e4]
call fcn.0041facd
jmp 0x40477d
xor ebx, ebx
xor edx, edx
mov edi, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
cmp ebx, edi
je 0x404718
cmp edi, edx
je 0x404718
cmp ebx, edx
jne 0x404742
call fcn.0040e8dd
cdq
idiv esi
mov ebx, edx
mov dword [esp + 0x20], ebx
call fcn.0040e8dd
cdq
idiv esi
mov edi, edx
mov dword [esp + 0x24], edi
call fcn.0040e8dd
cdq
idiv esi
mov dword [esp + 0x28], edx
jmp 0x40470c
lea edi, [ebp + 0x1d8]
lea ebx, [esp + 0x20]
mov ebp, 3
mov esi, dword [ebx]
mov edx, dword [esp + 0x44]
shl esi, 2
lea ecx, [edi - 4]
lea eax, [esi + edx]
push eax
call fcn.0041fa7d
mov ecx, dword [esp + 0x30]
add esi, ecx
mov ecx, edi
push esi
call fcn.0041fa7d
add edi, 8
add ebx, 4
dec ebp
jne 0x404751
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 9
call fcn.0041dab1
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 4
call fcn.0041dab1
lea ecx, [esp + 0x54]
mov byte [esp + 0x78], 0
call fcn.00406c65
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041f944
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret