Function at 0x42a745
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x2470]
mov eax, 0x2470
call fcn.00455890
push 0xffffffffffffffff
push 0x4607cd
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4861f4]
xor eax, ebp
mov dword [ebp + 0x246c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2478]
xor edi, edi
lea esi, [ebp]
mov dword [ebp - 0x24], eax
mov ebx, ecx
mov dword [ebp - 0x4c], edi
call fcn.0040d443
mov edx, ebx
lea ecx, [ebp - 0x40]
call fcn.00427515
cmp dword [eax + 0x18], 8
jb 0x42a7b2
mov esi, dword [eax + 4]
jmp 0x42a7b5
lea esi, [eax + 4]
lea eax, [ebp]
call fcn.0040da95
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040d6a9
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x40]
call fcn.00409415
cmp dword [ebp + 0x2450], 3
push edi
push edi
push edi
push edi
push 0x46ab94
sete byte [ebp - 0xd]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], ebx
cmp eax, edi
jne 0x42a825
push str.httpGetString___InternetOpen_ERROR
lea ecx, [ebp - 0x40]
call fcn.00407e54
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00401281
push 0x47a040
lea eax, [ebp - 0x74]
push eax
call fcn.004468ed
push edi
push edi
push 3
lea ecx, [ebp + 0x346]
push ecx
lea ecx, [ebp + 0x244]
push ecx
push dword [ebp + 0x244c]
lea ecx, [ebp + 0x42]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
cmp eax, edi
jne 0x42a866
push str.httpGetString___InternetConnect_ERROR
lea ecx, [ebp - 0x40]
call fcn.00407e54
mov byte [ebp - 4], 4
jmp 0x42a80a
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041c5af
lea eax, [ebp + 0x144a]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.0040df8a
movzx eax, byte [ebp - 0xd]
push edi
neg eax
sbb eax, eax
and eax, 0x800000
push eax
push edi
push 0x46a89c
push str.HTTP_1.0
push dword [ebp - 0x18]
push 0x470c4c
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
cmp eax, edi
jne 0x42a8d6
push str.httpGetString___HttpOpenRequest_ERROR
lea ecx, [ebp - 0x40]
call fcn.00407e54
mov byte [ebp - 4], 7
jmp 0x42a80a
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, edi
jne 0x42a8fb
push str.httpGetString___HttpSendRequest_ERROR
lea ecx, [ebp - 0x40]
call fcn.00407e54
mov byte [ebp - 4], 8
jmp 0x42a80a
lea eax, [ebp - 0xf4]
push eax
call fcn.0042ce0b
mov byte [ebp - 4], 9
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x42a939
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42a9b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42a90b
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42a9c6
cmp eax, 0xffffffff
je 0x42aa40
inc eax
push eax
call fcn.00443253
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [esp], str.InternetReadFile_failed
call fcn.00407e54
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xc
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, edi
jne 0x42a986
lea eax, [ebp - 0x40]
call fcn.004255a9
push edi
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.0040917d
push dword [ebp - 0x44]
lea eax, [ebp - 0xf4]
push esi
push eax
call fcn.00427087
push esi
call fcn.00442b35
pop ecx
jmp 0x42a90b
push str.httpGetString___InternetQueryDataAvailable_ERROR
lea ecx, [ebp - 0x40]
call fcn.00407e54
mov byte [ebp - 4], 0xa
jmp 0x42a80a
push dword [ebp - 0x24]
lea eax, [ebp - 0xf4]
call fcn.0042cea0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 6
call fcn.0042ce61
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.00441f2d
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x18]
call fcn.0040e1db
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x246c]
xor ecx, ebp
call fcn.004428bd
add ebp, 0x2470
leave
ret
push str.httpGetString___No_Settings_ERROR
lea ecx, [ebp - 0x40]
call fcn.00407e54
mov byte [ebp - 4], 0xb
jmp 0x42a80a