Function at 0x41fac4
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa68
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a44
mov eax, dword [ebp - 8]
call fcn.00404a44
mov eax, dword [ebp - 0xc]
call fcn.00404a44
mov eax, dword [ebp + 0x10]
call fcn.00404a44
mov eax, dword [ebp + 0xc]
call fcn.00404a44
xor eax, eax
push ebp
push 0x41fd90
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0041f9f4
xor ebx, ebx
push 0
lea eax, [ebp - 0x24]
push eax
call sub.wininet.dll_InternetGetConnectedState
test al, al
je 0x41fd3a
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x184]
call fcn.00402d60
mov edx, 1
lea eax, [ebp - 0x184]
call fcn.00403124
call fcn.004027ec
mov bl, 1
push 0
push 0
push 0
push 0
push 0x41fda4
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, 0x41fdb8
call fcn.004049a0
jne 0x41fc3b
push 0
push 0
push 3
push 0x41fdc0
push 0x41fdc0
push 0x50
mov eax, dword [ebp - 0x2c]
call fcn.00404a54
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x18], eax
push 0
push 0x80000000
push 0
push 0x41fdc0
push 0x41fdc4
mov eax, dword [ebp - 0x30]
call fcn.00404a54
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404a54
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
lea eax, [ebp - 0x28]
mov edx, 0x41fdd8
call fcn.0040463c
cmp dword [ebp + 0x10], 0
je 0x41fc0f
push dword [ebp - 0x28]
push 0x41fe14
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040491c
mov eax, dword [ebp - 8]
call fcn.0040485c
push eax
mov eax, dword [ebp - 8]
call fcn.00404a54
push eax
mov eax, dword [ebp - 0x28]
call fcn.0040485c
push eax
mov eax, dword [ebp - 0x28]
call fcn.00404a54
push eax
push esi
call sub.wininet.dll_HttpSendRequestA
jmp 0x41fc9c
cmp dword [ebp + 0x10], 0
je 0x41fc51
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov edx, 0x41fe14
call fcn.004048a8
push 0x41fe28
push dword [ebp - 0x2c]
push 0x41fe38
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040491c
push 0
push 0x84000000
mov eax, dword [ebp - 0x28]
call fcn.00404a54
mov esi, eax
mov eax, esi
call fcn.00411520
push eax
push esi
mov eax, dword [ebp - 0x10]
call fcn.00404a54
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0xa
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x598]
push eax
push 0x13
push esi
call sub.wininet.dll_HttpQueryInfoA
lea edi, [ebp - 0x598]
mov eax, dword [ebp + 8]
mov edx, edi
call fcn.00404794
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x584]
push eax
push esi
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x41fd03
lea eax, [ebp - 0x184]
call fcn.00402edc
call fcn.004027ec
xor ebx, ebx
jmp 0x41fd5b
push 0
lea edx, [ebp - 0x584]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x184]
call fcn.00402ebc
call fcn.004027ec
cmp dword [ebp - 0x14], 0
je 0x41fd28
test bl, bl
jne 0x41fccf
lea eax, [ebp - 0x184]
call fcn.00402edc
call fcn.004027ec
mov bl, 1
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fd97
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004045c8
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004045c8
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004045c8
ret