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

Disassembly:
push 0xffffffffffffffff
push 0x42a2e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x437818]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x7c], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [esp + 0x18], 7
je 0x402b98
lea esi, [edi + 0x60]
push pe_nt_image_headers32
mov ecx, esi
call fcn.0041ef01
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push pe_nt_image_headers32
call ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041ef50
mov ebp, dword [esi]
push pe_nt_image_headers32
mov ecx, esi
call fcn.0041ef01
push eax
push 0
push 0x437268
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call ebp
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041ef50
mov eax, dword [esi]
push 0
push 0
push eax
push str.http:__up.wanyx.com_wanyx.htm
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov edx, dword [0x437818]
mov dword [esp + 0x14], edx
mov esi, dword [esi]
lea ecx, [esp + 0x14]
push esi
push pe_nt_image_headers32
push pe_nt_image_headers32
mov byte [esp + 0x80], 1
call fcn.0041ef01
push eax
push 0x43b864
push str.image
push str.tpgg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041ef50
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402b8a
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
call fcn.0041ef01
push eax
push pe_nt_image_headers32
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041ef50
mov esi, dword [esp + 0x10]
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
call fcn.0041ef01
push eax
push 0
push 0x437268
push esi
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041ef50
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push 0
push ecx
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0
call fcn.0041eaf8
lea ecx, [esp + 0x50]
call fcn.00405de5
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 2
call fcn.00405ea8
test eax, eax
je 0x402c0f
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00402100
add esp, 8
mov ebx, eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x402bf3
lea eax, [esi + 4]
mov dword [esi], 0x42c918
push eax
push ebx
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
jmp 0x402bf5
xor esi, esi
test esi, esi
mov dword [edi + 0x178], esi
je 0x402c0f
lea edx, [esp + 0x10]
lea ecx, [edi + 0x9c]
push edx
call fcn.0041ec31
mov eax, dword [edi + 0x60]
lea esi, [edi + 0xa0]
push eax
push pe_nt_image_headers32
push pe_nt_image_headers32
mov ecx, esi
call fcn.0041ef01
push eax
push 0x43b864
push 0x437398
push str.tpgg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041ef50
lea ecx, [esp + 0x3c]
call fcn.0041cc2e
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 3
call fcn.0041cc2e
mov eax, dword [edi + 0x60]
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push str.rmyx
push eax
push ecx
mov byte [esp + 0x84], 4
call fcn.004013d0
mov esi, eax
add esp, 0x10
cmp esi, 3
jge 0x402cef
push str.http:__www.wanyx.com_game_638.html
lea ecx, [edi + 0x194]
call fcn.0041ec81
push str.http:__www.wanyx.com_game_945.html
lea ecx, [edi + 0x19c]
call fcn.0041ec81
push str.http:__www.wanyx.com_game_159.html
lea ecx, [edi + 0x1a4]
call fcn.0041ec81
push 0x437308
lea ecx, [edi + 0x190]
call fcn.0041ec81
push 0x4372f0
lea ecx, [edi + 0x198]
call fcn.0041ec81
push 0x4372cc
lea ecx, [edi + 0x1a0]
call fcn.0041ec81
jmp 0x402d73
xor ebp, ebp
xor edx, edx
mov ebx, edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebx
cmp ebp, ebx
je 0x402d0d
cmp ebx, edx
je 0x402d0d
cmp ebp, edx
jne 0x402d37
call fcn.0040da7d
cdq
idiv esi
mov ebp, edx
mov dword [esp + 0x1c], ebp
call fcn.0040da7d
cdq
idiv esi
mov ebx, edx
mov dword [esp + 0x20], ebx
call fcn.0040da7d
cdq
idiv esi
mov dword [esp + 0x24], edx
jmp 0x402d01
lea ebp, [esp + 0x1c]
add edi, 0x194
mov ebx, 3
mov esi, dword [ebp]
mov edx, dword [esp + 0x40]
shl esi, 2
lea ecx, [edi - 4]
lea eax, [esi + edx]
push eax
call fcn.0041ec31
mov ecx, dword [esp + 0x2c]
add esi, ecx
mov ecx, edi
push esi
call fcn.0041ec31
add ebp, 4
add edi, 8
dec ebx
jne 0x402d46
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 3
call fcn.0041cc61
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.0041cc61
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], 0
call fcn.00405e22
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.0041eaf8
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret