Function at 0x435962
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.00460740
push 0xffffffffffffffff
push 0x46d902
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x493350]
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]
mov dword [ebp - 0x20], eax
xor ebx, ebx
lea eax, [ebp]
mov esi, ecx
mov dword [ebp - 0x40], ebx
call fcn.0040bcf0
push 4
pop eax
push 0x50
pop ecx
push eax
push dword [0x475ce8]
mov dword [ebp + 0x2454], eax
lea eax, [ebp]
push 0x21
push eax
mov dword [ebp + 0x2450], 2
mov word [ebp + 0x244c], cx
call fcn.0044db77
push eax
call fcn.0040b450
add esp, 0x14
mov ecx, esi
lea edi, [ebp - 0x3c]
call fcn.00431734
cmp dword [eax + 0x18], 8
jb 0x435a07
mov esi, dword [eax + 4]
jmp 0x435a0a
lea esi, [eax + 4]
lea eax, [ebp]
call fcn.0040bcf0
mov ecx, esi
lea edx, [ebp]
call fcn.0040b830
lea esi, [ebp - 0x3c]
call fcn.00406e40
cmp dword [ebp + 0x2450], 3
push ebx
push ebx
push ebx
push ebx
push 0x475d7c
sete byte [ebp - 0xd]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
cmp eax, ebx
jne 0x435a78
push str.httpGetString___InternetOpen_ERROR
lea ecx, [ebp - 0x3c]
call fcn.00406ce0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401340
push 0x486be4
lea eax, [ebp - 0x70]
push eax
call fcn.00450dab
push ebx
push ebx
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 - 0x18], eax
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x435ab9
push str.httpGetString___InternetConnect_ERROR
lea ecx, [ebp - 0x3c]
call fcn.00406ce0
mov byte [ebp - 4], 4
jmp 0x435a5d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x448]
call fcn.0040ece0
lea edx, [ebp + 0x144a]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040c4a0
movzx eax, byte [ebp - 0xd]
push ebx
neg eax
sbb eax, eax
and eax, 0x800000
push eax
push ebx
push 0x475c54
push str.HTTP_1.0
push dword [ebp - 0x14]
push 0x476088
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 6
cmp esi, ebx
jne 0x435b28
push str.httpGetString___HttpOpenRequest_ERROR
lea ecx, [ebp - 0x3c]
call fcn.00406ce0
mov byte [ebp - 4], 7
jmp 0x435a5d
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x435b4d
push str.httpGetString___HttpSendRequest_ERROR
lea ecx, [ebp - 0x3c]
call fcn.00406ce0
mov byte [ebp - 4], 8
jmp 0x435a5d
lea eax, [ebp - 0xf4]
push eax
call fcn.00437c08
mov byte [ebp - 4], 9
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x435b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x435bf4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x435b5d
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x435c0a
cmp eax, 0xffffffff
je 0x435c86
inc eax
push eax
call fcn.0044d317
lea ecx, [ebp - 0x3c]
mov edi, eax
mov dword [esp], str.InternetReadFile_failed
call fcn.00406ce0
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xc
push dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
jne 0x435bcc
lea eax, [ebp - 0x3c]
call fcn.0042f9de
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.00406d50
push dword [ebp - 0x48]
lea eax, [ebp - 0xf4]
push edi
push eax
call fcn.0043129b
push edi
call fcn.0044d00c
pop ecx
jmp 0x435b5d
push str.httpGetString___InternetQueryDataAvailable_ERROR
lea ecx, [ebp - 0x3c]
call fcn.00406ce0
mov byte [ebp - 4], 0xa
jmp 0x435a5d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xf4]
call fcn.00437c9d
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x40], 1
mov byte [ebp - 4], 6
call fcn.00437c5e
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.0044bb00
pop ecx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
lea eax, [ebp - 0x14]
call fcn.0040c440
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x44]
call esi
mov eax, dword [ebp - 0x20]
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.0044cced
add ebp, 0x2470
leave
ret
push str.httpGetString___No_Settings_ERROR
lea ecx, [ebp - 0x3c]
call fcn.00406ce0
mov byte [ebp - 4], 0xb
jmp 0x435a5d