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

Disassembly:
push 0xffffffffffffffff
push 0x427ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x433720]
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 0x402b08
lea esi, [edi + 0x5c]
push pe_nt_image_headers32
mov ecx, esi
call fcn.0041e12a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push pe_nt_image_headers32
call ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041e179
mov ebp, dword [esi]
push pe_nt_image_headers32
mov ecx, esi
call fcn.0041e12a
push eax
push 0
push 0x433238
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call ebp
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041e179
mov eax, dword [esi]
push 0
push 0
push eax
push str.http:__up.newyx.net_newyx.htm
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov edx, dword [0x433720]
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.0041e12a
push eax
push 0x437614
push str.image
push str.tpgg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041e179
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402afa
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
call fcn.0041e12a
push eax
push pe_nt_image_headers32
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041e179
mov esi, dword [esp + 0x10]
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
call fcn.0041e12a
push eax
push 0
push 0x433238
push esi
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041e179
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.0041dd21
lea ecx, [esp + 0x50]
call fcn.00405895
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 2
call fcn.00405958
test eax, eax
je 0x402b7f
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00402070
add esp, 8
mov ebx, eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x402b63
lea eax, [esi + 4]
mov dword [esi], 0x4298e0
push eax
push ebx
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
jmp 0x402b65
xor esi, esi
test esi, esi
mov dword [edi + 0x174], esi
je 0x402b7f
lea edx, [esp + 0x10]
lea ecx, [edi + 0x98]
push edx
call fcn.0041de5a
mov eax, dword [edi + 0x5c]
lea esi, [edi + 0x9c]
push eax
push pe_nt_image_headers32
push pe_nt_image_headers32
mov ecx, esi
call fcn.0041e12a
push eax
push 0x437614
push 0x433344
push str.tpgg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041e179
lea ecx, [esp + 0x3c]
call fcn.0041be7c
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 3
call fcn.0041be7c
mov eax, dword [edi + 0x5c]
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push str.rmyx
push eax
push ecx
mov byte [esp + 0x84], 4
call fcn.004013b0
mov esi, eax
add esp, 0x10
cmp esi, 3
jge 0x402c5f
push str.http:__www.newyx.net_games_4348.htm
lea ecx, [edi + 0x190]
call fcn.0041deaa
push str.http:__www.newyx.net_games_4385.htm
lea ecx, [edi + 0x198]
call fcn.0041deaa
push str.http:__www.newyx.net_games_4387.htm
lea ecx, [edi + 0x1a0]
call fcn.0041deaa
push 0x4332c0
lea ecx, [edi + 0x18c]
call fcn.0041deaa
push 0x4332ac
lea ecx, [edi + 0x194]
call fcn.0041deaa
push 0x4332a0
lea ecx, [edi + 0x19c]
call fcn.0041deaa
jmp 0x402ce3
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 0x402c7d
cmp ebx, edx
je 0x402c7d
cmp ebp, edx
jne 0x402ca7
call fcn.0040d45d
cdq
idiv esi
mov ebp, edx
mov dword [esp + 0x1c], ebp
call fcn.0040d45d
cdq
idiv esi
mov ebx, edx
mov dword [esp + 0x20], ebx
call fcn.0040d45d
cdq
idiv esi
mov dword [esp + 0x24], edx
jmp 0x402c71
lea ebp, [esp + 0x1c]
add edi, 0x190
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.0041de5a
mov ecx, dword [esp + 0x2c]
add esi, ecx
mov ecx, edi
push esi
call fcn.0041de5a
add edi, 8
add ebp, 4
dec ebx
jne 0x402cb6
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 3
call fcn.0041beaf
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 2
call fcn.0041beaf
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], 0
call fcn.004058d2
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.0041dd21
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret