Function at 0x402c10
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
sub esp, 0x19c
mov eax, dword [0x41c040]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [esp + 8], 0x7530
jne 0x402d75
cmp dword [esi + 0x30], 0
push 0
je 0x402c56
push str._local_
push str.proxy
push 3
jmp 0x402c5e
mov eax, dword [esi + 0x54]
push 0
push 0
push eax
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98__Rising_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
jne 0x402c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0040531f
add esp, 0x19c
ret
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp dword [esi + 0x30], eax
je 0x402d62
push 0x103
push eax
lea ecx, [esp + 0xa5]
push ecx
mov byte [esp + 0xa8], al
call fcn.00406ac0
mov eax, dword [esi + 0x28]
add esp, 0xc
push 3
lea edx, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 3
mov dword [esp + 0x20], edx
call fcn.00401e50
movzx ecx, word [esi + 0x2c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0xa4]
push str._s:_d
push eax
call fcn.00405d26
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
add esp, 0x10
cmp eax, ecx
je 0x402d19
push eax
call fcn.004055c8
add esp, 4
mov ecx, dword [esi + 4]
push 0xc
lea eax, [esp + 0x10]
push eax
push 0x26
lea edx, [esp + 0xa8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x402d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
call fcn.00404520
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0040531f
add esp, 0x19c
ret
mov eax, dword [esi + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 2
push eax
call edi
test eax, eax
je 0x402d3b
cmp dword [esi + 8], 0
jne 0x402e3a
cmp dword [esi + 0x18], 0
push 0
push 0
push 3
jne 0x402d9e
movzx ecx, word [esi + 0x14]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
push 0
push 0
push ecx
push eax
push edx
jmp 0x402db3
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
push eax
movzx eax, word [esi + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 8], eax
test eax, eax
je 0x402d3b
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x402d3b
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0xc]
push edx
push 5
push eax
call edi
test eax, eax
je 0x402d3b
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0xc]
push ecx
push 6
push edx
call edi
test eax, eax
je 0x402d3b
cmp dword [esi + 0x34], 0
je 0x402e3a
mov eax, dword [esi + 0x38]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [esi + 8]
push 0x2b
push eax
call edi
test eax, eax
je 0x402d3b
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [esi + 8]
push eax
push 0x2c
push ecx
call edi
test eax, eax
je 0x402d3b
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040531f
add esp, 0x19c
ret